From: Mike F. <va...@us...> - 2006-05-26 06:49:02
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/setresgid In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv4957/setresgid Modified Files: setresgid01.c setresgid02.c setresgid03.c Log Message: pull the [gs]etre* prototypes from headers rather than defining them ourself Index: setresgid03.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/setresgid/setresgid03.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** setresgid03.c 27 Mar 2003 20:46:09 -0000 1.2 --- setresgid03.c 26 May 2006 06:48:55 -0000 1.3 *************** *** 75,78 **** --- 75,79 ---- ****************************************************************/ + #define _GNU_SOURCE 1 #include <errno.h> #include <pwd.h> *************** *** 87,92 **** extern int Tst_count; - extern int setresgid(gid_t, gid_t, gid_t); - extern int getresgid(gid_t*, gid_t*, gid_t*); struct test_case_t { /* test case structure */ --- 88,91 ---- Index: setresgid01.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/setresgid/setresgid01.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** setresgid01.c 27 Mar 2003 20:46:06 -0000 1.2 --- setresgid01.c 26 May 2006 06:48:55 -0000 1.3 *************** *** 70,73 **** --- 70,74 ---- ****************************************************************/ + #define _GNU_SOURCE 1 #include <errno.h> #include <pwd.h> *************** *** 80,85 **** extern int Tst_count; - extern int setresgid(gid_t, gid_t, gid_t); - extern int getresgid(gid_t*, gid_t*, gid_t*); struct test_case_t { /* test case structure */ --- 81,84 ---- Index: setresgid02.c =================================================================== RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/setresgid/setresgid02.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** setresgid02.c 9 Apr 2003 15:59:13 -0000 1.4 --- setresgid02.c 26 May 2006 06:48:55 -0000 1.5 *************** *** 75,78 **** --- 75,79 ---- ****************************************************************/ + #define _GNU_SOURCE 1 #include <errno.h> #include <pwd.h> *************** *** 84,90 **** #define EXP_RET_VAL 0 - extern int setresgid(gid_t, gid_t, gid_t); - extern int getresgid(gid_t*, gid_t*, gid_t*); - extern int Tst_count; --- 85,88 ---- |