Searched refs:procfd (Results 1 – 2 of 2) sorted by relevance
/tools/testing/selftests/bpf/prog_tests/ |
D | d_path.c | 30 int sockfd = -1, procfd = -1, devfd = -1; in trigger_fstat_events() local 44 procfd = open("/proc/self/comm", O_RDONLY); in trigger_fstat_events() 45 if (CHECK(procfd < 0, "trigger", "open /proc/self/comm failed\n")) in trigger_fstat_events() 68 ret = set_pathname(procfd, pid); in trigger_fstat_events() 85 fstat(procfd, &fileStat); in trigger_fstat_events() 95 close(procfd); in trigger_fstat_events()
|
/tools/testing/selftests/filesystems/ |
D | devpts_pts.c | 85 char procfd[4096]; in resolve_procfd_symlink() local 87 ret = snprintf(procfd, 4096, "/proc/self/fd/%d", fd); in resolve_procfd_symlink() 91 ret = readlink(procfd, buf, buflen); in resolve_procfd_symlink()
|