This is the mail archive of the
newlib@sourceware.cygnus.com
mailing list for the newlib project.
[PATCH]: Prototypes for seteuid, setegid
- To: newlib <newlib at sourceware dot cygnus dot com>
- Subject: [PATCH]: Prototypes for seteuid, setegid
- From: Corinna Vinschen <vinschen at cygnus dot com>
- Date: Fri, 16 Jun 2000 16:03:12 +0200
Hi,
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.
Objections?
Corinna
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