From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 10 05:56:10 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F15016A84D for ; Wed, 10 Aug 2005 05:55:09 +0000 (GMT) (envelope-from keramida@linux.gr) Received: from nic.ach.sch.gr (nic.sch.gr [194.63.238.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E46144916 for ; Tue, 9 Aug 2005 23:09:51 +0000 (GMT) (envelope-from keramida@linux.gr) Received: (qmail 4977 invoked by uid 207); 9 Aug 2005 23:09:50 -0000 Received: from keramida@linux.gr by nic by uid 201 with qmail-scanner-1.21 (sophie: 3.04/2.19/3.81. Clear:RC:1(81.186.70.51):. Processed in 0.547416 secs); 09 Aug 2005 23:09:50 -0000 Received: from dialup51.ach.sch.gr (HELO gothmog.gr) ([81.186.70.51]) (envelope-sender ) by nic.sch.gr (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 9 Aug 2005 23:09:48 -0000 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.4/8.13.4) with ESMTP id j79N9fdI001068; Wed, 10 Aug 2005 02:09:41 +0300 (EEST) (envelope-from keramida@linux.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.4/8.13.4/Submit) id j79N9eF5001067; Wed, 10 Aug 2005 02:09:40 +0300 (EEST) (envelope-from keramida@linux.gr) Date: Wed, 10 Aug 2005 02:09:40 +0300 From: Giorgos Keramidas To: Dirk GOUDERS Message-ID: <20050809230940.GC618@gothmog.gr> References: <20050809220121.GB15004@odin.ac.hmc.edu> <200508092222.j79MM1DR013799@sora.hank.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200508092222.j79MM1DR013799@sora.hank.home> Cc: hackers@freebsd.org Subject: Re: Include files that depend on include files X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2005 05:56:11 -0000 On 2005-08-10 00:22, Dirk GOUDERS wrote: >> This is intentational. We try to avoid having headers bring in more >> then absolutly required when included. I'm not sure what your second >> question means. > > With my second question I wanted to ask if this intention is only for > kernel level code or a general one. I am asking this, because > somewhen in a project that I was not actually participating in I heard > or read a rule that roughly said: "all include files have to include > all files they depend on and compile cleanly", but that project was on > a user space program. Well, first of all "include files" do not "compile". Then, there are two different schools of thought on this matter: a) the "purity and clean state of the namespace" school, and b) the "keep the header files a userlevel program has to include as few as possible" school Both approaches have their advantages and drawbacks. AFAIK, in FreeBSD the first is preferred. - Giorgos