Searched refs:nullfd (Results 1 – 3 of 3) sorted by relevance
/external/ltp/testcases/kernel/fs/fs-bench/ |
D | random-access.c | 20 int nullfd; variable 45 if ((nullfd = open("/dev/null", O_WRONLY)) < 0) { in main() 59 close(nullfd); in main() 78 if (write(nullfd, buf, c) < 0) { in open_read_close()
|
/external/dnsmasq/src/ |
D | dnsmasq.c | 275 int nullfd; in main() local 334 nullfd = open("/dev/null", O_RDWR); in main() 335 dup2(nullfd, STDOUT_FILENO); in main() 336 dup2(nullfd, STDERR_FILENO); in main() 337 dup2(nullfd, STDIN_FILENO); in main() 338 close(nullfd); in main()
|
/external/openssh/ |
D | misc.c | 791 int nullfd, dupfd; in sanitise_stdfd() local 793 if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) { in sanitise_stdfd() 801 if (dup2(nullfd, dupfd) == -1) { in sanitise_stdfd() 807 if (nullfd > STDERR_FILENO) in sanitise_stdfd() 808 close(nullfd); in sanitise_stdfd()
|