Home
last modified time | relevance | path

Searched refs:nullfd (Results 1 - 3 of 3) sorted by relevance

/kernel/linux/linux-6.6/tools/testing/selftests/x86/
H A Dsyscall_numbering.c44 static int nullfd = -1; /* File descriptor for /dev/null */ variable
110 * Directly invokes the given syscall with nullfd as the first argument
117 register long long arg1 asm("rdi") = nullfd; in probe_syscall()
451 nullfd = open("/dev/null", O_RDWR); in main()
452 if (nullfd < 0) { in main()
/kernel/linux/linux-5.10/tools/perf/tests/
H A Dbuiltin-test.c402 int nullfd = open("/dev/null", O_WRONLY); in run_test() local
404 if (nullfd >= 0) { in run_test()
408 dup2(nullfd, STDOUT_FILENO); in run_test()
410 close(nullfd); in run_test()
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dbuiltin-test.c226 int nullfd = open("/dev/null", O_WRONLY); in run_test() local
228 if (nullfd >= 0) { in run_test()
232 dup2(nullfd, STDOUT_FILENO); in run_test()
234 close(nullfd); in run_test()

Completed in 3 milliseconds