| /src/usr.sbin/autofs/ |
| popen.c | 85 int error, i, nullfd, outfds[2]; local 88 nullfd = open(_PATH_DEVNULL, O_RDWR, 0); 89 if (nullfd < 0) 123 dup2(nullfd, STDIN_FILENO); 126 close(nullfd); 141 close(nullfd);
|
| popen.c | 85 int error, i, nullfd, outfds[2]; local 88 nullfd = open(_PATH_DEVNULL, O_RDWR, 0); 89 if (nullfd < 0) 123 dup2(nullfd, STDIN_FILENO); 126 close(nullfd); 141 close(nullfd);
|
| /src/external/bsd/am-utils/dist/amd/ |
| info_exec.c | 261 int pdes[2], nullfd, i; local 271 if ((nullfd = open("/dev/null", O_WRONLY|O_NOCTTY)) < 0) 275 close(nullfd); 282 close(nullfd); 300 if (nullfd != STDERR_FILENO) { 301 dup2(nullfd, STDERR_FILENO); 302 close(nullfd); 324 close(nullfd);
|
| info_exec.c | 261 int pdes[2], nullfd, i; local 271 if ((nullfd = open("/dev/null", O_WRONLY|O_NOCTTY)) < 0) 275 close(nullfd); 282 close(nullfd); 300 if (nullfd != STDERR_FILENO) { 301 dup2(nullfd, STDERR_FILENO); 302 close(nullfd); 324 close(nullfd);
|
| /src/usr.bin/mail/ |
| collect.c | 626 int nullfd; local 629 if ((nullfd = open("/dev/null", O_RDONLY, 0)) == -1) { 648 rc2 = run_command(shellcmd, NULL, nullfd, fileno(fbuf), "-c", cp + 1, NULL); 650 (void)close(nullfd);
|
| collect.c | 626 int nullfd; local 629 if ((nullfd = open("/dev/null", O_RDONLY, 0)) == -1) { 648 rc2 = run_command(shellcmd, NULL, nullfd, fileno(fbuf), "-c", cp + 1, NULL); 650 (void)close(nullfd);
|
| /src/external/bsd/tmux/dist/ |
| job.c | 80 int nullfd, out[2], master, do_close = 1; local 168 nullfd = open(_PATH_DEVNULL, O_RDWR); 169 if (nullfd == -1) 171 if (dup2(nullfd, STDERR_FILENO) == -1) 173 if (nullfd != STDERR_FILENO) 174 close(nullfd);
|
| job.c | 80 int nullfd, out[2], master, do_close = 1; local 168 nullfd = open(_PATH_DEVNULL, O_RDWR); 169 if (nullfd == -1) 171 if (dup2(nullfd, STDERR_FILENO) == -1) 173 if (nullfd != STDERR_FILENO) 174 close(nullfd);
|