docs/76056: /usr/lib entry in hier(7) man page
Giorgos Keramidas
keramida at ceid.upatras.gr
Mon Jan 10 15:20:30 UTC 2005
The following reply was made to PR docs/76056; it has been noted by GNATS.
From: Giorgos Keramidas <keramida at ceid.upatras.gr>
To: Enrique =?iso-8859-7?Q?Mat=EDas?= Sanchez <cronopios at gmail.com>
Cc: bug-followup at freebsd.org
Subject: Re: docs/76056: /usr/lib entry in hier(7) man page
Date: Mon, 10 Jan 2005 17:15:06 +0200
On 2005-01-10 14:33, Enrique Matías Sánchez <cronopios at gmail.com> wrote:
>
> [N.B.: I am not a native English speaker, so this might actually be my problem].
>
> I don't really understand the /usr/lib entry in the hier man page:
>
> lib/ archive libraries
Libraries *are* 'archives'. Archives of object files.
> The FHS explanation seems more clear:
>
> /usr/lib : Libraries for programming and packages
>
> /usr/lib includes object files, libraries, and internal binaries
> that are not intended to be executed directly by users or shell
> scripts.
``object files and libraries'' matches the state of /usr/lib in
FreeBSD. There are AFAIK _no_ binaries that are "not intented to be
executed by users or shell scripts".
The object files are, indeed, not what the every day user may want to
use, but they *are* used indirectly when a C program is linked:
$ find /usr/lib | \
grep -v '\.a$' | grep -v '\.so$' | grep -v '\.so.[0-9][0-9]*$' | \
xargs ls -ld
drwxr-xr-x 4 root wheel 8704 Jan 10 16:38 /usr/lib
drwxr-xr-x 2 root wheel 512 Jul 21 18:41 /usr/lib/aout
drwxr-xr-x 3 root wheel 512 Oct 12 12:56 /usr/lib/compat
drwxr-xr-x 2 root wheel 2048 Oct 11 14:30 /usr/lib/compat/aout
-r--r--r-- 1 root wheel 1360 Jan 10 16:35 /usr/lib/crt1.o
-r--r--r-- 1 root wheel 1856 Jan 10 16:36 /usr/lib/crtbegin.o
-r--r--r-- 1 root wheel 2220 Jan 10 16:36 /usr/lib/crtbeginS.o
-r--r--r-- 1 root wheel 1212 Jan 10 16:36 /usr/lib/crtend.o
-r--r--r-- 1 root wheel 1260 Jan 10 16:36 /usr/lib/crtendS.o
-r--r--r-- 1 root wheel 876 Jan 10 16:35 /usr/lib/crti.o
-r--r--r-- 1 root wheel 832 Jan 10 16:35 /usr/lib/crtn.o
-r--r--r-- 1 root wheel 1524 Jan 10 16:35 /usr/lib/gcrt1.o
-r--r--r-- 1 root wheel 8410 Jan 10 16:37 /usr/lib/kgzldr.o
$
The description of hier(7) is a bit terse, but it is true IMHO.
- Giorgos
More information about the freebsd-doc
mailing list