This is the mail archive of the newlib@sourceware.cygnus.com mailing list for the newlib project.


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

Re: [PATCH]: Prototypes for seteuid, setegid


Corinna Vinschen wrote:
> 
> "J. Johnston" wrote:
> >
> > DJ Delorie wrote:
> > >
> > > Since these functions aren't in newlib itself, do we want to surround
> > > them with ifdefs for cygwin?
> >
> > Yes.
> 
> That would be the first time! Why now? Many other functions
> prototyped in unistd.h aren't in newlib, too, and they
> have no ifdef as well. What is the difference?
> 

This isn't the first time.  Check out usleep() (and company) in the middle of sys/unistd.h which
are protected by __CYGWIN__ or __rtems__.  There are also examples in sys/time.h and sys/signal.h.
While there may be examples of cygwin-supported routines that are not in newlib but are not flagged
as such; no-one's asking you to find and change them.  Regarding your patch, it is helpful to
clarify that the code is in CYGWIN and there is precedence for doing so.

-- Jeff J.

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