[PATCH]: Prototypes for seteuid, setegid

Corinna Vinschen vinschen@cygnus.com
Fri Jun 16 07:03:00 GMT 2000


I need to patch libc/include/sys/unistd.h to include prototypes
for seteuid() and setegid() because this functionality will
be part of the next Cygwin version. Both functions were always
defined in Cygwin but from now on they will make sense.



Index: libc/include/sys/unistd.h
RCS file: /cvs/src/src/newlib/libc/include/sys/unistd.h,v
retrieving revision 1.3
diff -u -p -r1.3 unistd.h
--- unistd.h    2000/05/30 17:18:05     1.3
+++ unistd.h    2000/06/16 11:05:08
@@ -58,6 +58,8 @@ int     _EXFUN(pipe, (int __fildes[2] ))
 int     _EXFUN(read, (int __fildes, void *__buf, size_t __nbyte ));
 int     _EXFUN(rmdir, (const char *__path ));
 void *  _EXFUN(sbrk,  (size_t __incr));
+int     _EXFUN(setegid, (gid_t __gid ));
+int     _EXFUN(seteuid, (uid_t __uid ));
 int     _EXFUN(setgid, (gid_t __gid ));
 int     _EXFUN(setpgid, (pid_t __pid, pid_t __pgid ));
 pid_t   _EXFUN(setsid, (void ));

Corinna Vinschen
Cygwin Developer
Cygnus Solutions, a Red Hat company

More information about the Newlib mailing list