Searched refs:nullfd (Results 1 - 3 of 3) sorted by relevance
/external/ltp/testcases/kernel/fs/fs-bench/ |
H A D | random-access.c | 20 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 D | dnsmasq.c | 286 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 D | misc.c | 721 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