Path: utzoo!attcan!uunet!auspex!guy From: guy@auspex.UUCP (Guy Harris) Newsgroups: comp.std.c Subject: Re: __STDC__ and POSIX Message-ID: <886@auspex.UUCP> Date: 20 Jan 89 22:46:13 GMT References: <9391@smoke.BRL.MIL> <8731@megaron.arizona.edu> <9405@smoke.BRL.MIL> <860@auspex.UUCP> <866@auspex.UUCP> <9436@smoke.BRL.MIL> <399@jhereg.Jhereg.MN.ORG> Reply-To: guy@auspex.UUCP (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 20 >> The new default compilation environment predefines >> _POSIX_SOURCE "on behalf of the application", i.e. it is >> NOT considered as being provided by the official >> "implementation" but by the "program" being compiled. > >I would rather have the implementation provide it. The implementation *is* providing it, if you're thinking about it reasonably; the intent is to *say* that it's being done "on behalf of the application", if you're thinking about it legalistically, instead, so as to keep excessively legalistic types from playing "dog in the manger." Basically, if you say "cc -Q posix", or whatever, it'll predefine it. "cc" by itself may end up giving you the "complete" environment, whatever that be (probably ANSI C + POSIX +, on a modern UNIX system, additional error numbers in and the like), and "cc -Q ansi" may end up giving you ANSI C, no more, no less, no "fdopen", no "fileno", etc..