Home
last modified time | relevance | path

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

/openbmc/linux/tools/testing/selftests/x86/
H A Dsyscall_numbering.c44 static int nullfd = -1; /* File descriptor for /dev/null */ variable
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()
/openbmc/linux/tools/perf/tests/
H A Dbuiltin-test.c227 int nullfd = open("/dev/null", O_WRONLY); in run_test() local
229 if (nullfd >= 0) { in run_test()
233 dup2(nullfd, STDOUT_FILENO); in run_test()
235 close(nullfd); in run_test()
/openbmc/qemu/qga/
H A Dmain.c209 int nullfd; in reopen_fd_to_null() local
211 nullfd = open("/dev/null", O_RDWR); in reopen_fd_to_null()
212 if (nullfd < 0) { in reopen_fd_to_null()
216 dup2(nullfd, fd); in reopen_fd_to_null()
218 if (nullfd != fd) { in reopen_fd_to_null()
219 close(nullfd); in reopen_fd_to_null()