[uClibc-cvs] uClibc/libc/sysdeps/linux/common getresgid.c, 1.1, 1.2 getresuid.c, 1.1, 1.2 setresgid.c, 1.1, 1.2 setresuid.c, 1.1, 1.2

Erik Andersen andersen at uclibc.org
Fri Mar 19 20:53:56 UTC 2004


Update of /var/cvs/uClibc/libc/sysdeps/linux/common
In directory nail:/tmp/cvs-serv31382/libc/sysdeps/linux/common

Modified Files:
	getresgid.c getresuid.c setresgid.c setresuid.c 
Log Message:
Per patch from Stefan Holst, do not try to compile these
syscalls if they are not supported.


Index: setresgid.c
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/common/setresgid.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/setresgid.c	21 Jan 2004 23:27:40 -0000	1.1
+++ b/setresgid.c	19 Mar 2004 20:53:54 -0000	1.2
@@ -9,6 +9,7 @@
 
 #include "syscalls.h"
 
+#ifdef __NR_setresgid
 #define __NR___syscall_setresgid __NR_setresgid
 static inline _syscall3(int, __syscall_setresgid,
 		__kernel_gid_t, rgid, __kernel_gid_t, egid, __kernel_gid_t, sgid);
@@ -23,3 +24,4 @@
 	}
 	return (__syscall_setresgid(rgid, egid, sgid));
 }
+#endif

Index: getresuid.c
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/common/getresuid.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/getresuid.c	21 Jan 2004 23:27:40 -0000	1.1
+++ b/getresuid.c	19 Mar 2004 20:53:54 -0000	1.2
@@ -9,6 +9,7 @@
 
 #include "syscalls.h"
 
+#ifdef __NR_getresuid
 #define __NR___syscall_getresuid __NR_getresuid
 static inline _syscall3(int, __syscall_getresuid, __kernel_uid_t *, ruid,
 		  __kernel_uid_t *, euid, __kernel_uid_t *, suid);
@@ -26,3 +27,4 @@
 	}
 	return result;
 }
+#endif

Index: getresgid.c
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/common/getresgid.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/getresgid.c	21 Jan 2004 23:27:40 -0000	1.1
+++ b/getresgid.c	19 Mar 2004 20:53:54 -0000	1.2
@@ -9,6 +9,7 @@
 
 #include "syscalls.h"
 
+#ifdef __NR_getresgid
 #define __NR___syscall_getresgid __NR_getresgid
 static inline _syscall3(int, __syscall_getresgid, __kernel_gid_t *, egid,
 		  __kernel_gid_t *, rgid, __kernel_gid_t *, sgid);
@@ -26,3 +27,4 @@
 	}
 	return result;
 }
+#endif

Index: setresuid.c
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/common/setresuid.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- a/setresuid.c	21 Jan 2004 23:27:40 -0000	1.1
+++ b/setresuid.c	19 Mar 2004 20:53:54 -0000	1.2
@@ -9,6 +9,7 @@
 
 #include "syscalls.h"
 
+#ifdef __NR_setresuid
 #define __NR___syscall_setresuid __NR_setresuid
 static inline _syscall3(int, __syscall_setresuid,
 		__kernel_uid_t, rgid, __kernel_uid_t, egid, __kernel_uid_t, sgid);
@@ -23,3 +24,4 @@
 	}
 	return (__syscall_setresuid(ruid, euid, suid));
 }
+#endif




More information about the uClibc-cvs mailing list