From owner-freebsd-questions@FreeBSD.ORG Tue Nov 30 17:16:09 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DDC1516A4CE for ; Tue, 30 Nov 2004 17:16:09 +0000 (GMT) Received: from nic.ach.sch.gr (nic.sch.gr [194.63.238.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id DECC843D5C for ; Tue, 30 Nov 2004 17:16:08 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: (qmail 7337 invoked by uid 207); 30 Nov 2004 17:16:07 -0000 Received: from keramida@ceid.upatras.gr by nic by uid 201 with qmail-scanner-1.21 (sophie: 3.04/2.19/3.81. Clear:RC:1(81.186.70.48):. Processed in 0.9793 secs); 30 Nov 2004 17:16:07 -0000 Received: from dialup48.ach.sch.gr (HELO gothmog.gr) ([81.186.70.48]) (envelope-sender ) by nic.sch.gr (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 30 Nov 2004 17:16:06 -0000 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id iAUHG2AC026705; Tue, 30 Nov 2004 19:16:02 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id iAUHG2FW026704; Tue, 30 Nov 2004 19:16:02 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 30 Nov 2004 19:16:02 +0200 From: Giorgos Keramidas To: Jonathon McKitrick Message-ID: <20041130171602.GF2610@gothmog.gr> References: <20041130153247.GB29674@dogma.freebsd-uk.eu.org> <20041130165434.GD2610@gothmog.gr> <20041130170149.GD29674@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041130170149.GD29674@dogma.freebsd-uk.eu.org> cc: freebsd-questions@freebsd.org Subject: Re: Source tree hierarchy X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Nov 2004 17:16:10 -0000 On 2004-11-30 17:01, Jonathon McKitrick wrote: > On Tue, Nov 30, 2004 at 06:54:35PM +0200, Giorgos Keramidas wrote: > : On 2004-11-30 15:32, Jonathon McKitrick wrote: > : > Why are there sometimes 2 levels of the same directory name, one beneath the > : > other? > : > > : > Like sys and i386, for example? > : > : They are different things: > : > : /usr/src/sys Kernel sources (entire source tree). > : > : /usr/src/sys/sys Kernel header files. These are installed as > : /usr/include/sys/* by the installation process. > > Ok, that makes sense. But src/sys/i386/i386 has source code, not just > headers. Is this code that is specific to i386 CPUs, while src/sys/i386 is > just specific to the system architecture? The /usr/src/sys/i386 directory is AFAIK an `architecture' directory, like src/sys/sparc64 or src/sys/amd64. The machine-dependent parts of the i386 architecure are all under this tree. Header files (include), configuration options (conf), BIOS support (bios), or anything else related to the i386 architecture is stored here. The src/sys/i386/i386 directory is a `machine' related subdirectory. The difference of architecture vs. machine becomes more apparent in src/sys/amd64 where you find subdirectories like ia32 and amd64 :-)