6 #define O_DIRECT 00040000
10 #define O_DIRECTORY 00200000
14 #define O_NOATIME 01000000
17 static size_t syscall_arg__scnprintf_open_flags(char *bf
, size_t size
,
18 struct syscall_arg
*arg
)
20 int printed
= 0, flags
= arg
->val
;
22 if (!(flags
& O_CREAT
))
23 arg
->mask
|= 1 << (arg
->idx
+ 1); /* Mask the mode parm */
26 return scnprintf(bf
, size
, "RDONLY");
28 if (flags & O_##n) { \
29 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \
53 if ((flags
& O_SYNC
) == O_SYNC
)
54 printed
+= scnprintf(bf
+ printed
, size
- printed
, "%s%s", printed
? "|" : "", "SYNC");
66 printed
+= scnprintf(bf
+ printed
, size
- printed
, "%s%#x", printed
? "|" : "", flags
);
71 #define SCA_OPEN_FLAGS syscall_arg__scnprintf_open_flags