Searched refs:nullfd (Results 1 – 3 of 3) sorted by relevance
44 static int nullfd = -1; /* File descriptor for /dev/null */ variable117 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()
227 int nullfd = open("/dev/null", O_WRONLY); in run_test() local229 if (nullfd >= 0) { in run_test()233 dup2(nullfd, STDOUT_FILENO); in run_test()235 close(nullfd); in run_test()
231 int nullfd; in reopen_fd_to_null() local233 nullfd = open("/dev/null", O_RDWR); in reopen_fd_to_null()234 if (nullfd < 0) { in reopen_fd_to_null()238 dup2(nullfd, fd); in reopen_fd_to_null()240 if (nullfd != fd) { in reopen_fd_to_null()241 close(nullfd); in reopen_fd_to_null()