Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!julius.cs.uiuc.edu!coolidge From: coolidge@cs.uiuc.edu (John Coolidge) Newsgroups: comp.unix.aux Subject: Re: Here are some useful patches to rn for A/UX Message-ID: <1990Dec7.002750.18989@julius.cs.uiuc.edu> Date: 7 Dec 90 00:27:50 GMT References: <#-1qg2.0-5@smurf.sub.org> <3112@unido.UUCP> <%4yrg2."da@smurf.sub.org> <4104@dftsrv.gsfc.nasa.gov> Sender: news@julius.cs.uiuc.edu (USENet News) Reply-To: coolidge@cs.uiuc.edu Organization: U of Illinois, Dept. of Computer Science, Systems Research Group Lines: 34 jim@jagubox.gsfc.nasa.gov (Jim Jagielski) writes: > ->< >Distinguished from this are the various defining flags for cc which make > ->< >your C code compile in the first place: > ->< > > ->< >-D_SYSV_SOURCE [...] > ->< > ->< NO! Your not supposed to define that youself! Why do you think that > ->< Apple was so nasty to put those annoying underscores in front of the > ->< defines ? > ->< > ->Probably to make sure that they don't collide with anything the program in > ->question might want to define for itself. >Yeah, but aren't -D_BSD_SOURCE and -D_SYSV_SOURCE "set" by default by cpp? >I think they are. Yes, you're right. In fact, all four (BSD, SYSV, AUX, and POSIX) are set by default by cpp. CC turns off the ones it doesn't like. Gnu cpp in the current version defines none of them by default. My opinion is that _AUX_SOURCE should turn on more things than it does, and that _BSD_SOURCE, _SYSV_SOURCE, and _POSIX_SOURCE should be reserved for things that are in fundamental confict with each other. The current situation, where _BSD_SOURCE and _SYSV_SOURCE both need to be defined in order to compile a number of programs, is wrong. --John -------------------------------------------------------------------------- John L. Coolidge Internet:coolidge@cs.uiuc.edu UUCP:uiucdcs!coolidge Of course I don't speak for the U of I (or anyone else except myself) Copyright 1990 John L. Coolidge. Copying allowed if (and only if) attributed. You may redistribute this article if and only if your recipients may as well.