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

/macosx-10.9.5/mail_cmds-29/mail/
H A Dcollect.c367 int nullfd, tempfd, rc; local
370 if ((nullfd = open("/dev/null", O_RDONLY, 0))
388 rc = run_command(sh, 0, nullfd, fileno(fbuf),
391 close(nullfd);
/macosx-10.9.5/OpenSSH-186/openssh/
H A Dmisc.c718 int nullfd, dupfd; local
720 if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) {
729 if (dup2(nullfd, dupfd) == -1) {
734 if (nullfd > 2)
735 close(nullfd);
/macosx-10.9.5/ruby-104/ruby/win32/
H A Dwin32.c2246 int nullfd = -1; local
2249 (((nullfd < 0) ? \
2250 (nullfd = open("NUL", O_RDWR)) : 0), \
2251 ((nullfd == (fd)) ? (keep = 1) : dup2(nullfd, fd)), \
2266 if (nullfd >= 0 && !keep) close(nullfd);

Completed in 98 milliseconds