blob: 1c1cd5994e70a34eaaf57ba721401e86a2a723b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#define CONFIG HAVE_RENAMEAT
#define FUNC renameat
#define SFUNC "renameat"
#define FUNC_STR "%i, \"%s\", %i, \"%s\""
#define FUNC_IMP olddirfd, oldpath, newdirfd, newpath
#define ARG_CNT 4
#define ARG_USE "<dirfd>(old) <path>(old) <dirfd>(new) <path>(new)"
#define process_args() \
s = argv[i++]; \
int olddirfd = at_get_fd(s); \
\
s = argv[i++]; \
char *oldpath = s; \
\
s = argv[i++]; \
int newdirfd = at_get_fd(s); \
\
s = argv[i++]; \
char *newpath = s;
#include "test-skel-0.c"
|