From owner-freebsd-hackers Wed Jan 8 08:45:56 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id IAA16039 for hackers-outgoing; Wed, 8 Jan 1997 08:45:56 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id IAA16030 for ; Wed, 8 Jan 1997 08:45:53 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id JAA16433; Wed, 8 Jan 1997 09:34:13 -0700 From: Terry Lambert Message-Id: <199701081634.JAA16433@phaeton.artisoft.com> Subject: Re: #include file xref philosophy To: proff@suburbia.net Date: Wed, 8 Jan 1997 09:34:12 -0700 (MST) Cc: dufault@hda.com, hackers@FreeBSD.ORG In-Reply-To: <19970108121529.5416.qmail@suburbia.net> from "proff@suburbia.net" at Jan 8, 97 11:15:29 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Frankly it is painful. Include files should not break their encapsulation. > include/netinet/*.h are frightful. As a bunch of other things when > -DKERNEL is on. Next time you are writing/modifying an include file, please > keep this in mind. Not having an include file resolve its own dependencies > saves you nothing, but an open(), during CPP. I don't care if possix > says its sometimes ok. Posix is wrong. I agree. POSIX screws up in a number of places. Mandating update times for the getdents() interface (or mandating the getdents interface at all for that matter) is another example. Lack of a definite interface for setting file size up or down (ftruncate/fcntl-based) is yet another. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.