Home
last modified time | relevance | path

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

/external/ppp/pppd/
Dmain.c173 int fd_devnull; /* fd for /dev/null */ variable
468 fd_devnull = open(_PATH_DEVNULL, O_RDWR);
469 if (fd_devnull < 0)
471 while (fd_devnull <= 2) {
472 i = dup(fd_devnull);
475 fd_devnull = i;
823 dup2(fd_devnull, 0); in detach()
824 dup2(fd_devnull, 1); in detach()
825 dup2(fd_devnull, 2); in detach()
1598 while ((fd = dup(fd_devnull)) >= 0) { in safe_fork()
[all …]
Dtty.c662 dup2(fd_devnull, 0); in connect_tty()
663 dup2(fd_devnull, 1); in connect_tty()
667 dup2(fd_devnull, 2); in connect_tty()
Dpppd.h249 extern int fd_devnull; /* fd open to /dev/null */