[PATCH]: Prototypes for seteuid, setegid

J. Johnston jjohnstn@cygnus.com
Fri Jun 16 13:15:00 GMT 2000


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.


More information about the Newlib mailing list