blob: 2717b85a70efacf824640afe91594a7a4721e9e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#define FUNC setxattr
#define SFUNC "setxattr"
#define FUNC_STR "\"%s\", \"%s\", \"%s\", %zu, %i"
#define FUNC_IMP path, name, value, size, flags
#define ARG_CNT 5
#define ARG_USE "<path> <name> <value> <size> <flags>"
#define process_args() \
s = argv[i++]; \
char *path = s; \
\
s = argv[i++]; \
char *name = s; \
\
s = argv[i++]; \
char *value = s; \
\
s = argv[i++]; \
size_t size = atoi(s); \
\
s = argv[i++]; \
int flags = atoi(s);
#include "test-skel-0.c"
|