10 #include <linux/kernel.h> 11 #include <uapi/linux/fcntl.h> 15 return scnprintf(bf, size,
"%s", val ?
"CLOEXEC" :
"0");
25 static const char *fcntl_setlease[] = {
"RDLCK",
"WRLCK",
"UNLCK", };
38 if (arg->
val == F_GETFL) {
42 if (arg->
val == F_GETFD) {
46 if (arg->
val == F_DUPFD_CLOEXEC || arg->
val == F_DUPFD) {
50 if (arg->
val == F_GETOWN) {
54 if (arg->
val == F_GETLEASE) {
61 if (arg->
val == F_GET_SEALS ||
62 arg->
val == F_GETSIG) {
64 arg->
mask |= (1 << 2);
86 if (cmd == F_SETLEASE)
92 if (cmd == F_SETLK || cmd == F_SETLKW || cmd == F_GETLK ||
93 cmd == F_OFD_SETLK || cmd == F_OFD_SETLKW || cmd == F_OFD_GETLK ||
94 cmd == F_GETOWN_EX || cmd == F_SETOWN_EX ||
95 cmd == F_GET_RW_HINT || cmd == F_SET_RW_HINT ||
96 cmd == F_GET_FILE_RW_HINT || cmd == F_SET_FILE_RW_HINT)
#define DEFINE_STRARRAY(array)
size_t syscall_arg__scnprintf_strarrays(char *bf, size_t size, struct syscall_arg *arg)
static size_t fcntl__scnprintf_getfd(unsigned long val, char *bf, size_t size)
size_t syscall_arg__scnprintf_hex(char *bf, size_t size, struct syscall_arg *arg)
size_t syscall_arg__scnprintf_fd(char *bf, size_t size, struct syscall_arg *arg)
size_t syscall_arg__scnprintf_long(char *bf, size_t size, struct syscall_arg *arg)
size_t syscall_arg__scnprintf_pid(char *bf, size_t size, struct syscall_arg *arg)
static size_t syscall_arg__scnprintf_fcntl_getfd(char *bf, size_t size, struct syscall_arg *arg)
static size_t fcntl__scnprintf_getlease(unsigned long val, char *bf, size_t size)
size_t strarray__scnprintf(struct strarray *sa, char *bf, size_t size, const char *intfmt, int val)
size_t syscall_arg__scnprintf_fcntl_cmd(char *bf, size_t size, struct syscall_arg *arg)
size_t open__scnprintf_flags(unsigned long flags, char *bf, size_t size)
static size_t syscall_arg__scnprintf_fcntl_getlease(char *bf, size_t size, struct syscall_arg *arg)
void syscall_arg__set_ret_scnprintf(struct syscall_arg *arg, size_t(*ret_scnprintf)(char *bf, size_t size, struct syscall_arg *arg))
unsigned long syscall_arg__val(struct syscall_arg *arg, u8 idx)
size_t syscall_arg__scnprintf_fcntl_arg(char *bf, size_t size, struct syscall_arg *arg)
size_t syscall_arg__scnprintf_open_flags(char *bf, size_t size, struct syscall_arg *arg)