X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=man%2Ffile-hierarchy.xml;h=6ef726ec0537b1dfdf69105b9fa1416559186686;hb=2f3d398a0546574a5a3c1b3fcae0cdbaae960753;hp=ff2ee3d4bb030e2c7800f1a6ae0a1e97670c3e97;hpb=9546c6ed678bf8fbb93b9be620c9727b0e3d58ae;p=elogind.git diff --git a/man/file-hierarchy.xml b/man/file-hierarchy.xml index ff2ee3d4b..6ef726ec0 100644 --- a/man/file-hierarchy.xml +++ b/man/file-hierarchy.xml @@ -130,7 +130,13 @@ network file systems, hence applications should not assume the full set of file API is available on - this directory. + this directory. Applications should + generally not reference this directory + directly, but via the per-user + $HOME environment + variable, or via the home directory + field of the user + database. @@ -165,7 +171,9 @@ usually mounted as tmpfs instance, and should hence not be used for larger - files. Since the directory is + files. (Use + /var/tmp for + larger files.) Since the directory is accessible to other users of the system it is essential that this directory is only written to with the @@ -175,7 +183,13 @@ usually flushed at boot-up. Also, files that are not accessed within a certain time are usually automatically - deleted. + deleted. If applications find the + environment variable + $TMP set they + should prefer using the directory + specified in it over directly + referencing + /tmp. @@ -268,21 +282,37 @@ /usr/lib - System libraries and - package-specific - data. - - - - /usr/lib64 - Secondary library - directory for placing 64bit versions - of system libraries in, if the primary - architecture of the system is - 32bit. This directory should not be - used for package-specific data, unless - this data requires 64bit-specific - versions, too. + Static vendor data + that is compatible with all + architectures (though not necessarily + architecture-independent). Note that + this includes internal + executables or other binaries that are + not regularly invoked from a + shell. Such binaries may be for any + architecture supported by the + system. Do not place public libraries + in this directory, use + $libdir (see + below), instead. + + + + $libdir + Location for placing + dynamic libraries in. The precise + location depends on the operating + system and the architecture, and is + sometimes + /usr/lib, + /use/lib64 or + /usr/lib/ + suffixed by an architecture + identifier. This directory should not + be used for package-specific data, + unless this data is + architecture-dependent, + too. @@ -291,7 +321,11 @@ betwen multiple packages, such as documentation, man pages, time zone information, fonts and other - resources. + resources. Usually, the precise + location and format of files stored + below this directory is subject to + specifications that ensure + interoperability. @@ -403,18 +437,26 @@ contrast to /tmp this directory is usually mounted from a persistent physical file system and - can thus accept larger files. This - directory is generally not flushed at - boot-up, but time-based cleanup of - files that have not been accessed for - a certain time is applied. The same - security restrictions as with + can thus accept larger files. (Use + /tmp for smaller + files.) This directory is generally + not flushed at boot-up, but time-based + cleanup of files that have not been + accessed for a certain time is + applied. The same security + restrictions as with /tmp apply, and hence only mkstemp3, mkdtemp3 or similar calls should be used to - make use of this directory. + make use of this directory. If + applications find the environment + variable $TMP set + they should prefer using the directory + specified in it over directly + referencing + /var/tmp. @@ -540,23 +582,23 @@ This compatibility symlink points to /usr/lib, - ensuring that binaries referencing + ensuring that programs referencing this legacy path correctly find - their libraries. + their resources. /lib64 - This compatibility - symlink points to - /usr/lib64, + On some architecture + ABIs this compatibility symlink points + to $libdir, ensuring that binaries referencing this legacy path correctly find their - libraries. This symlink only exists on - architectures whose ABI requires a - 64bit version of the library - directory. + dynamic loader. This symlink only + exists on architectures whose ABI + places the dynamic loader in this + path. @@ -595,23 +637,19 @@ /usr/bin - Package executables that shall appear in the $PATH executable search path. It is not recommended to place internal binaries or binaries that are not commonly invoked from the shell in this directory, such as daemon binaries. As this directory is shared with most other packages of the system special care should be take to pick unique names for files placed here, that are unlikely to clash with other package's files. + Package executables that shall appear in the $PATH executable search path, compiled for the primary architecture of the operating system. It is not recommended to place internal binaries or binaries that are not commonly invoked from the shell in this directory, such as daemon binaries. As this directory is shared with most other packages of the system special care should be take to pick unique names for files placed here, that are unlikely to clash with other package's files. - /usr/lib - Public shared libraries of the package, compiled for the primary architecture of the operating system. As above, be careful with using too generic names, and pick unique names for your libraries to place here to avoid name clashes. + $libdir + Public shared libraries of the package. As above, be careful with using too generic names, and pick unique names for your libraries to place here to avoid name clashes. /usr/lib/package - Private other vendor resources of the package, including private binaries and libraries, but also including any other kind of read-only vendor data. - - - /usr/lib64 - Public shared libraries of the package, compiled for the secondary, 64bit architecture, if this is part of the Operating System ABI. + Private static vendor resources of the package, including private binaries and libraries, or any other kind of read-only vendor data. - /usr/lib64/package - Private other vendor resources of the package that are architecture-specific and cannot be shared between primary and secondary architectures. Note that this generally does not include private binaries since binaries of the primary architecture may generally be invoked from secondary architecture code just fine. + $libdir/package + Private other vendor resources of the package that are architecture-specific and cannot be shared between architectures. Note that this generally does not include private exectuables since binaries of a specific architecture may be freely invoked from any other supported system architecture. /usr/include/package