From owner-freebsd-doc@FreeBSD.ORG Mon Jan 10 15:20:30 2005 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3647C16A4CE for ; Mon, 10 Jan 2005 15:20:30 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00F8643D3F for ; Mon, 10 Jan 2005 15:20:30 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0AFKT4h031150 for ; Mon, 10 Jan 2005 15:20:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0AFKTOO031149; Mon, 10 Jan 2005 15:20:29 GMT (envelope-from gnats) Date: Mon, 10 Jan 2005 15:20:29 GMT Message-Id: <200501101520.j0AFKTOO031149@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org From: Giorgos Keramidas Subject: Re: docs/76056: /usr/lib entry in hier(7) man page X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Giorgos Keramidas List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jan 2005 15:20:30 -0000 The following reply was made to PR docs/76056; it has been noted by GNATS. From: Giorgos Keramidas To: Enrique =?iso-8859-7?Q?Mat=EDas?= Sanchez Cc: bug-followup@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 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