Home
last modified time | relevance | path

Searched refs:fdinfo_path (Results 1 – 1 of 1) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/fanotify/
Dfanotify21.c66 char *fdinfo_path; in read_pidfd_fdinfo() local
71 SAFE_ASPRINTF(&fdinfo_path, "/proc/self/fdinfo/%d", pidfd); in read_pidfd_fdinfo()
72 SAFE_FILE_LINES_SCANF(fdinfo_path, "pos: %d", &pidfd_fdinfo->pos); in read_pidfd_fdinfo()
73 SAFE_FILE_LINES_SCANF(fdinfo_path, "flags: %d", &pidfd_fdinfo->flags); in read_pidfd_fdinfo()
74 SAFE_FILE_LINES_SCANF(fdinfo_path, "mnt_id: %d", &pidfd_fdinfo->mnt_id); in read_pidfd_fdinfo()
75 SAFE_FILE_LINES_SCANF(fdinfo_path, "Pid: %d", &pidfd_fdinfo->pid); in read_pidfd_fdinfo()
76 SAFE_FILE_LINES_SCANF(fdinfo_path, "NSpid: %d", &pidfd_fdinfo->ns_pid); in read_pidfd_fdinfo()
78 free(fdinfo_path); in read_pidfd_fdinfo()