Dmitry V. Levin
91119e5306
* tests/getresgid.c: New file. * tests/getresgid.test: New test. * tests/.gitignore: Add getresgid. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add getresgid.test.
22 lines
351 B
C
22 lines
351 B
C
#include "tests.h"
|
|
#include <sys/syscall.h>
|
|
|
|
#ifdef __NR_getresgid
|
|
|
|
# define SYSCALL_NR __NR_getresgid
|
|
# define SYSCALL_NAME "getresgid"
|
|
|
|
# if defined __NR_getresgid32 && __NR_getresgid != __NR_getresgid32
|
|
# define UGID_TYPE short
|
|
# else
|
|
# define UGID_TYPE int
|
|
# endif
|
|
|
|
# include "getresugid.c"
|
|
|
|
#else
|
|
|
|
SKIP_MAIN_UNDEFINED("__NR_getresgid")
|
|
|
|
#endif
|