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()
209 int nullfd; in reopen_fd_to_null() local211 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()