[uClibc-cvs] uClibc/include unistd.h,1.24,1.25

Erik Andersen andersen at uclibc.org
Sun Nov 2 10:01:14 UTC 2003


Update of /var/cvs/uClibc/include
In directory winder:/tmp/cvs-serv10559/include

Modified Files:
	unistd.h 
Log Message:
Add some missing prototypes


Index: unistd.h
===================================================================
RCS file: /var/cvs/uClibc/include/unistd.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- unistd.h	8 Sep 2003 20:33:04 -0000	1.24
+++ unistd.h	2 Nov 2003 10:01:11 -0000	1.25
@@ -641,6 +641,24 @@
 extern int setegid (__gid_t __gid) __THROW;
 #endif /* Use BSD.  */
 
+#ifdef __USE_GNU
+/* Fetch the effective user ID, real user ID, and saved-set user ID,
+   of the calling process.  */
+extern int getresuid (__uid_t *__euid, __uid_t *__ruid, __uid_t *__suid);
+
+/* Fetch the effective group ID, real group ID, and saved-set group ID,
+   of the calling process.  */
+extern int getresgid (__gid_t *__egid, __gid_t *__rgid, __gid_t *__sgid);
+
+/* Set the effective user ID, real user ID, and saved-set user ID,
+   of the calling process to EUID, RUID, and SUID, respectively.  */
+extern int setresuid (__uid_t __euid, __uid_t __ruid, __uid_t __suid);
+
+/* Set the effective group ID, real group ID, and saved-set group ID,
+   of the calling process to EGID, RGID, and SGID, respectively.  */
+extern int setresgid (__gid_t __egid, __gid_t __rgid, __gid_t __sgid);
+#endif
+
 
 /* Clone the calling process, creating an exact copy.
    Return -1 for errors, 0 to the new process,
@@ -728,7 +746,7 @@
 #endif
 
 
-#if defined __USE_BSD || defined __USE_XOPEN2K
+#if defined __USE_BSD || defined __USE_UNIX98
 /* Put the name of the current host in no more than LEN bytes of NAME.
    The result is null-terminated if LEN is large enough for the full
    name and the terminator.  */




More information about the uClibc-cvs mailing list