From owner-freebsd-hackers Tue Jan 7 18:20:56 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id SAA05890 for hackers-outgoing; Tue, 7 Jan 1997 18:20:56 -0800 (PST) Received: from haywire.DIALix.COM (news@haywire.DIALix.COM [192.203.228.65]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id SAA05883 for ; Tue, 7 Jan 1997 18:20:51 -0800 (PST) Received: (from news@localhost) by haywire.DIALix.COM (8.8.4/8.8.2) id KAA10663 for freebsd-hackers@freebsd.org; Wed, 8 Jan 1997 10:20:37 +0800 (WST) X-Authentication-Warning: haywire.DIALix.COM: news set sender to usenet-request@haywire.dialix.com using -f Received: from GATEWAY by haywire.DIALix.COM with netnews for freebsd-hackers@freebsd.org (problems to: usenet@haywire.dialix.com) To: freebsd-hackers@freebsd.org Date: 8 Jan 1997 02:20:36 GMT From: peter@spinner.DIALix.COM (Peter Wemm) Message-ID: <5av09k$67a$1@haywire.DIALix.COM> Organization: DIALix Services, Perth, Australia. References: <199701072241.JAA17826@profane.iq.org> Subject: Re: #include file xref philosophy Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article , j@uriah.heep.sax.de (J Wunsch) writes: > As Julian Assange wrote: > >> What is the -current philosophy on intra #include file dependencies? >> >> Is there any reason for not following the posix line and having >> include files resolve all their own dependencies? I'm talking about >> things like needing the code that includes it, include >> before hand. > > IIRC, Bruce once mentioned that Posix allows it to require the > inclusion of (xor another which i > eventually forgot) before other things. > > Either way, the corresponding man pages should at least mention the > required include files, so your complaint about ``magical knowledge'' > would not be true. As I understand it, POSIX allows for a system to require to be a prerequisite for other include files, Bruce knows more about more than I do. However, the SVIDIII, X/Open XPG (4+), Spec 1170, Single-Unix spec, and the whatever-it-is-called-this-month line of standards apparently require the standard headers to be self sufficient. I believe NetBSD/OpenBSD/Linux comply with this, I remember NetBSD committing the missing includes some time back. Cheers, -Peter