[BusyBox-cvs] busybox/libpwdgrp setgroups.c,1.3,1.4

Erik Andersen andersen at busybox.net
Tue Jul 22 08:57:22 UTC 2003


Update of /var/cvs/busybox/libpwdgrp
In directory winder:/tmp/cvs-serv29080/libpwdgrp

Modified Files:
	setgroups.c 
Log Message:
Remove remaining libc5 support code


Index: setgroups.c
===================================================================
RCS file: /var/cvs/busybox/libpwdgrp/setgroups.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- setgroups.c	14 Jul 2003 21:20:57 -0000	1.3
+++ setgroups.c	22 Jul 2003 08:56:48 -0000	1.4
@@ -30,12 +30,11 @@
    _syscall* defined.  */
 #define __LIBRARY__
 #include <sys/syscall.h>
-#if __GNU_LIBRARY__ < 5
-/* This is needed for libc5 */
-#include <asm/unistd.h>
-#endif
 #include "grp_.h"
 
-//#define __NR_setgroups        81
-_syscall2(int, setgroups, size_t, size, const gid_t *, list);
+int setgroups(size_t size, const gid_t * list)
+{
+	return(syscall(__NR_setgroups, size, list));
+}
+
 




More information about the busybox-cvs mailing list