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

/xsrc/external/mit/xfs/dist/os/
H A Ddaemon.c85 int nullfd; local in function:DetachStdio
93 nullfd = open ("/dev/null", O_RDWR);
94 if (nullfd == -1) {
97 if (nullfd != 0) {
98 if (dup2(nullfd, 0) == -1) {
102 close(nullfd);
H A Derror.c107 int nullfd; local in function:CloseErrors
122 nullfd = open ("/dev/null", O_RDWR);
123 if (nullfd != 2) {
124 dup2 (nullfd, 2);
125 close(nullfd);

Completed in 6 milliseconds