Dmitry V. Levin
4ccdbd698e
* tests/chown.c: New file. * tests/chown.test: New test. * tests/xchownx.c: New file. * tests/.gitignore: Add chown. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add chown.test. (EXTRA_DIST): Add xchownx.c.
20 lines
292 B
C
20 lines
292 B
C
#include "tests.h"
|
|
#include <sys/syscall.h>
|
|
|
|
#ifdef __NR_chown
|
|
|
|
# define SYSCALL_NR __NR_chown
|
|
# define SYSCALL_NAME "chown"
|
|
|
|
# if defined __NR_chown32 && __NR_chown != __NR_chown32
|
|
# define UGID_TYPE_IS_SHORT
|
|
# endif
|
|
|
|
# include "xchownx.c"
|
|
|
|
#else
|
|
|
|
SKIP_MAIN_UNDEFINED("__NR_chown")
|
|
|
|
#endif
|