fhs

Conform with File Hierarchy Standard on Linux: where to put binary examples for a library?

China☆狼群 提交于 2019-12-24 15:33:12
问题 I am creating a debian package for a library and would like to install binary samples. I was thinking to put them under /usr/share/libname , but lintian complains (arch-dependent-file-in-usr-share). According FHS this correct, but where can put those files? 回答1: It's actually not correct according to the FHS; /usr/share is quite explicitly for "architecture-independent data". /usr/lib is the arch-dependent equivalent, and that's probably what you want ( /usr/lib/libname ). See http://www

Where to place Unix Domain (AF_UNIX) sockets' end points (files)?

僤鯓⒐⒋嵵緔 提交于 2019-11-27 10:17:39
问题 Is there a convention where to place the 'files' representing the end points to Unix domain sockets? I tend to put them to /tmp/some-application-specific-subdir-name/ , but I wonder if there is a more common place. The background is, that POSIX is not clear about the maximum path length to access such 'files': 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