This is the mail archive of the newlib@sources.redhat.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]
Other format: [Raw text]

[PATCH] Add rresvport declaration to unistd.h for cygwin


I've added setregid() and setreuid() for Cygwin.

Corinna


2003-01-24  Corinna Vinschen  <corinna@vinschen.de>

        * libc/include/sys/unistd.h: Add setregid and setreuid declarations
        for Cygwin.


Index: libc/include/sys/unistd.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/unistd.h,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -p -r1.38 -r1.39
--- libc/include/sys/unistd.h   20 Jan 2003 15:28:02 -0000      1.38
+++ libc/include/sys/unistd.h   24 Jan 2003 15:25:24 -0000      1.39
@@ -106,6 +106,10 @@ int        _EXFUN(setgroups, (int ngroups, cons
 #endif
 int     _EXFUN(setpgid, (pid_t __pid, pid_t __pgid ));
 int     _EXFUN(setpgrp, (void ));
+#if defined(__CYGWIN__)
+int    _EXFUN(setregid, (gid_t __rgid, gid_t __egid));
+int    _EXFUN(setreuid, (uid_t __ruid, uid_t __euid));
+#endif
 pid_t   _EXFUN(setsid, (void ));
 int     _EXFUN(setuid, (uid_t __uid ));
 #if defined(__CYGWIN__)


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