Dmitry V. Levin
e6828b1102
* tests/fchown.c: New file. * tests/fchown.test: New test. * tests/.gitignore: Add fchown. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add fchown.test.
21 lines
329 B
C
21 lines
329 B
C
#include "tests.h"
|
|
#include <sys/syscall.h>
|
|
|
|
#ifdef __NR_fchown
|
|
|
|
# define SYSCALL_NR __NR_fchown
|
|
# define SYSCALL_NAME "fchown"
|
|
# define ACCESS_BY_DESCRIPTOR
|
|
|
|
# if defined __NR_fchown32 && __NR_fchown != __NR_fchown32
|
|
# define UGID_TYPE_IS_SHORT
|
|
# endif
|
|
|
|
# include "xchownx.c"
|
|
|
|
#else
|
|
|
|
SKIP_MAIN_UNDEFINED("__NR_fchown")
|
|
|
|
#endif
|