This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
[PATCH] Define getpeereid for Cygwin.
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sources dot redhat dot com
- Date: Wed, 23 Feb 2005 18:43:38 +0100
- Subject: [PATCH] Define getpeereid for Cygwin.
- Reply-to: newlib at sources dot redhat dot com
FYI, I've applied the below patch.
Corinna
* libc/include/sys/unistd.h: Define getpeereid for Cygwin.
Index: libc/include/sys/unistd.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/sys/unistd.h,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -p -r1.54 -r1.55
--- libc/include/sys/unistd.h 22 Feb 2005 15:31:51 -0000 1.54
+++ libc/include/sys/unistd.h 23 Feb 2005 17:42:07 -0000 1.55
@@ -73,6 +73,9 @@ int _EXFUN(getlogin_r, (char *name, size
#endif
char _EXFUN(*getpass, (const char *__prompt));
size_t _EXFUN(getpagesize, (void));
+#if defined(__CYGWIN__)
+int _EXFUN(getpeereid, (int, uid_t *, gid_t *));
+#endif
pid_t _EXFUN(getpgid, (pid_t));
pid_t _EXFUN(getpgrp, (void ));
pid_t _EXFUN(getpid, (void ));
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat, Inc.