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

/external/ltp/testcases/kernel/fs/fs-bench/
H A Drandom-access.c20 int nullfd; variable
45 if ((nullfd = open("/dev/null", O_WRONLY)) < 0) {
59 close(nullfd);
78 if (write(nullfd, buf, c) < 0) {
/external/dnsmasq/src/
H A Ddnsmasq.c286 int nullfd; local
356 nullfd = open("/dev/null", O_RDWR);
357 dup2(nullfd, STDOUT_FILENO);
358 dup2(nullfd, STDERR_FILENO);
359 dup2(nullfd, STDIN_FILENO);
360 close(nullfd);
/external/openssh/
H A Dmisc.c721 int nullfd, dupfd; local
723 if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) {
732 if (dup2(nullfd, dupfd) == -1) {
737 if (nullfd > 2)
738 close(nullfd);

Completed in 1121 milliseconds