This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs-19980425, system.h stuff part 3/6



  In message <199805041945.PAA09982@caip.rutgers.edu>you write:
  >  > From: John Carr <jfc@mit.edu>
  >  > 
  >  > > 	* system.h: Wrap time.h and sys/file.h in autoconf checks.
  >  > > 	Provide default definitions for O_RDONLY and O_WRONLY here.
  >  > 
  >  > What build systems supported by gcc need definitions of O_RDONLY and
  >  > O_WRONLY?
  > 
  > 	None that I have access to or am aware of.  However I suppose
  > they must exist somewhere else gcc wouldn't have had support for it
  > scattered amongst several files. 
I see a half-dozen or so occurences of the O_RDONLY stuff throughout
the sources.  O_WRONLY is less common.

I'd say let's go ahead and keep the code to provide default definitions
of O_RDONLY/O_WRONLY if none exist -- keeping that code can't hurt.

And burying it in system.h seems like the right place to work around
such lossage.


jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]