Home
last modified time | relevance | path

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

/external/dropbear/
Dscpmisc.c231 int nullfd, dupfd; in sanitise_stdfd() local
233 if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) { in sanitise_stdfd()
241 if (dup2(nullfd, dupfd) == -1) { in sanitise_stdfd()
246 if (nullfd > 2) in sanitise_stdfd()
247 close(nullfd); in sanitise_stdfd()
/external/openssh/
Dmisc.c720 int nullfd, dupfd; in sanitise_stdfd() local
722 if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) { in sanitise_stdfd()
731 if (dup2(nullfd, dupfd) == -1) { in sanitise_stdfd()
736 if (nullfd > 2) in sanitise_stdfd()
737 close(nullfd); in sanitise_stdfd()
/external/dnsmasq/src/
Ddnsmasq.c286 int nullfd; in main() local
356 nullfd = open("/dev/null", O_RDWR); in main()
357 dup2(nullfd, STDOUT_FILENO); in main()
358 dup2(nullfd, STDERR_FILENO); in main()
359 dup2(nullfd, STDIN_FILENO); in main()
360 close(nullfd); in main()