diff options
Diffstat (limited to 'tests/fchownat-0.c')
-rw-r--r-- | tests/fchownat-0.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/fchownat-0.c b/tests/fchownat-0.c new file mode 100644 index 0000000..eef70bb --- /dev/null +++ b/tests/fchownat-0.c @@ -0,0 +1,25 @@ +#define FUNC fchownat +#define SFUNC "fchownat" +#define FUNC_STR "%i, \"%s\", %i, %i, %x" +#define FUNC_IMP dirfd, file, uid, gid, flags +#define ARG_CNT 5 +#define ARG_USE "<dirfd> <file> <uid> <gid>, <flags>" + +#define process_args() \ + s = argv[i++]; \ + int dirfd = atoi(s); \ + \ + s = argv[i++]; \ + char *file = s; \ + \ + s = argv[i++]; \ + uid_t uid = atoi(s); \ + \ + s = argv[i++]; \ + gid_t gid = atoi(s); \ + \ + s = argv[i++]; \ + int flags = 0; \ + sscanf(s, "%i", &flags); + +#include "test-skel-0.c" |