From owner-freebsd-hackers Wed Jan 8 04:32:03 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id EAA02306 for hackers-outgoing; Wed, 8 Jan 1997 04:32:03 -0800 (PST) Received: from hda.hda.com (ip30-max1-fitch.ziplink.net [199.232.245.30]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id EAA02293 for ; Wed, 8 Jan 1997 04:31:57 -0800 (PST) Received: (from dufault@localhost) by hda.hda.com (8.6.12/8.6.12) id HAA03877; Wed, 8 Jan 1997 07:26:29 -0500 From: Peter Dufault Message-Id: <199701081226.HAA03877@hda.hda.com> Subject: Re: #include file xref philosophy In-Reply-To: <19970108121529.5416.qmail@suburbia.net> from "proff@suburbia.net" at "Jan 8, 97 11:15:29 pm" To: proff@suburbia.net Date: Wed, 8 Jan 1997 07:26:28 -0500 (EST) Cc: dufault@hda.com, hackers@freebsd.org X-Mailer: ELM [version 2.4ME+ PL25 (25)] 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 > > How about "POSIX.1 sometimes requires that > > be included before including some POSIX headers". They sprinkle > > size_t all over the place so that old programs don't break. > > > > Frankly it is painful... Just to make it clear: I think headers should stand alone and include anything they need. Above I'm saying that POSIX isn't as clear as Bruce was. So IMHO: 1. Yes, headers should include all prerequisites; 2. For portability, our man pages should match what POSIX says, even if we don't require it. For example, lseek needs both and but our man page says . (I hope that the POSIX tests don't do things such as include only unistd.h and verify that something referencing off_t fails.) -- Peter Dufault (dufault@hda.com) Realtime Machine Control and Simulation HD Associates, Inc. Voice: 508 433 6936