From: jenkins@jpl-devvax.jpl.nasa.gov (Steve Jenkins)
Subject: Re: Is DEC OSF stable?
Date: 1 Dec 92 17:27:59 GMT [thread overview]
Message-ID: <1992Dec1.172759.20835@jpl-devvax.jpl.nasa.gov> (raw)
In-Reply-To: JET.92Nov30174742@boxer.nas.nasa.gov
In article <JET.92Nov30174742@boxer.nas.nasa.gov> jet@boxer.nas.nasa.gov (J. Eric Townsend) writes:
>"jenkins" == Steve Jenkins <jenkins@fritz> writes:
>
>jenkins> Why not? POSIX.1 requires that certain header symbols be
>jenkins> made visible if, and only if, the feature test macro
>jenkins> _POSIX_SOURCE is defined. I suspect the same is true for
>jenkins> X/Open and OSF specifications. These macros are necessary to
>jenkins> avoid namespace collisions.
>
>0. If it's an OSF system, I shouldn't have to define any sort of
>"OSF" flags at compile time.
OSF/1 provides multiple standard or historical (e.g., BSD) application
programming interfaces. These API's are not entirely mutually
compatible, especially with regards to namespace. Some method *must*
be provided for the programmer to select the appropriate APIs. In the
case of ISO C, POSIX, XPG3, and the OSF AES, OSF/1 is providing
*exactly* the mechanism (feature test macros) required by the standards.
>1. Why not have seperate sets of include files instead of a mess of
>ifdefs? It'd make digging through the includes a bit more easy.
Neither ISO/IEC (ANSI) C nor POSIX require header files to even exist,
only that an "#include <header.h>" have the specified effects. If the
compiler can do it by internal magic, that's OK. The point is that
header files are not for human consumption. If you want to know what
header files are supposed to do, you should be reading the relevant
standards and specifications.
You certainly cannot judge anything about the commitment of a vendor
to an operating system from the structure of its header files. Solaris
2.0, for example, has #ifdef's all over, for exactly the same reasons.
--
Steve Jenkins jenkins@devvax.jpl.nasa.gov
Caltech/Jet Propulsion Laboratory (818) 306-6438
next prev parent reply other threads:[~1992-12-01 17:27 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
1992-11-22 21:16 Is DEC OSF stable? Dov Grobgeld
1992-11-24 20:04 ` Stephen Carpenter
1992-11-25 13:35 ` Fletcher Kittredge
1992-11-24 23:09 ` Michael T Pins
1992-11-24 23:53 ` Andrew Mullhaupt
1992-11-25 13:10 ` John Corne
1992-11-26 20:43 ` Andrew Mullhaupt
1992-11-27 15:38 ` John Corne
1992-11-27 22:00 ` Tony Carrato
1992-11-29 2:36 ` Andrew Mullhaupt
1992-11-30 2:01 ` MMAP on AIX; OSF performance Ronald G Minnich
1992-11-25 13:41 ` Is DEC OSF stable? Jim Gettys
1992-11-26 5:02 ` Tony Carrato
1992-11-27 15:59 ` J. Eric Townsend
1992-12-01 0:55 ` Steve Jenkins
1992-11-30 22:47 ` J. Eric Townsend
1992-12-01 17:27 ` Steve Jenkins [this message]
1992-11-30 20:04 ` Mike O'Connor
1992-12-01 18:08 ` Andrew Mullhaupt
1992-11-25 13:14 ` Ray Bellis
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox