Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dd_path.c52 int localfd = -1, indicatorfd = -1; in trigger_fstat_events() local
71 localfd = open("/tmp/d_path_loadgen.txt", O_CREAT | O_RDONLY, 0644); in trigger_fstat_events()
72 if (CHECK(localfd < 0, "trigger", "open /tmp/d_path_loadgen.txt failed\n")) in trigger_fstat_events()
95 ret = set_pathname(localfd, pid); in trigger_fstat_events()
108 fstat(localfd, &fileStat); in trigger_fstat_events()
120 syscall_close(localfd); in trigger_fstat_events()
222 int localfd = -1; in test_d_path_mem_access() local
233 localfd = mkstemp(path_template); in test_d_path_mem_access()
234 if (CHECK(localfd < 0, "trigger", "mkstemp failed\n")) in test_d_path_mem_access()
237 if (CHECK(fallocate(localfd, 0, 0, 1024) < 0, "trigger", "fallocate failed\n")) in test_d_path_mem_access()
[all …]