5 /* From include/linux/stat.h */
7 #define S_IRWXUGO (S_IRWXU|S_IRWXG|S_IRWXO)
10 #define S_IALLUGO (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO)
13 #define S_IRUGO (S_IRUSR|S_IRGRP|S_IROTH)
16 #define S_IWUGO (S_IWUSR|S_IWGRP|S_IWOTH)
19 #define S_IXUGO (S_IXUSR|S_IXGRP|S_IXOTH)
22 static size_t syscall_arg__scnprintf_mode_t(char *bf
, size_t size
, struct syscall_arg
*arg
)
24 int printed
= 0, mode
= arg
->val
;
27 if ((mode & S_##n) == S_##n) { \
28 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \
63 printed
+= scnprintf(bf
+ printed
, size
- printed
, "%s%#x", printed
? "|" : "", mode
);
68 #define SCA_MODE_T syscall_arg__scnprintf_mode_t