是否有一个约定,将“文件”表示端点到Unix域套接字?
我倾向于把它们/ tmp / some-application-specific-subdir-name /,但我想知道是否有一个更常见的地方。
背景是,POSIX不清楚有关访问这样的“文件”的最大路径长度:
The size of sun_path has intentionally been left undefined. This is because different implementations use different sizes. For example,4.3 BSD uses a size of 108,and 4.4 BSD uses a size of 104. Since most implementations originate from BSD versions,the size is typically in the range 92 to 108.
Applications should not assume a particular length for sun_path or assume that it can hold {_POSIX_PATH_MAX} bytes (256).
因此,对路径长度的这种“限制”应该不在应用程序的文件/路径名配置之外。