/src/usr.sbin/autofs/ |
popen.c | 85 int error, i, nullfd, outfds[2]; local in function:auto_popen 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 in function:auto_popen 88 nullfd = open(_PATH_DEVNULL, O_RDWR, 0); 89 if (nullfd < 0) 123 dup2(nullfd, STDIN_FILENO); 126 close(nullfd); 141 close(nullfd);
|
/src/usr.bin/mail/ |
collect.c | 626 int nullfd; local in function:collect 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 in function:collect 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);
|