🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.unix
Article #112

Query about multiple inclusion of a header

#112
From: Moderator, John S. Quarterman
Date: Wed, 22 Nov 1989 08:30
16 lines
1037 bytes
From: Andy Tanenbaum <uunet!cs.vu.nl!ast>

The ANSI C standard specifically states that it is legal for an
application program to include the ANSI headers (e.g., <limits.h>)
multiple times in a program.

What about the POSIX headers that are not in the ANSI std, such as
<unistd.h> and <sys/wait.h>.  Is an implementation required to behave
correctly if they are included multiple times?  If so, could somebody
point out the section in P1003.1 where this is stated.

Thanks.

Andy Tanenbaum (ast@cs.vu.nl)

Volume-Number: Volume 17, Number 64
Technical Details
Message-ID: <436@longway.TIC.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!longway!std-unix

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!longway!std-unix
From: std-unix@longway.TIC.COM (Moderator, John S. Quarterman)
Newsgroups: comp.std.unix
Subject: Query about multiple inclusion of a header
Message-ID: <436@longway.TIC.COM>
Date: 22 Nov 89 08:30:17 GMT
Reply-To: Andy Tanenbaum <uunet!cs.vu.nl!ast>
Organization: VU Informatica, Amsterdam
Lines: 16
Approved: jsq@longway.tic.com (Moderator, John S. Quarterman)