Searched refs:nullfd (Results 1 – 3 of 3) sorted by relevance
/titanic_44/usr/src/cmd/bnu/ |
H A D | callers.c | 239 int nullfd; local 292 (void) close(nullfd = open("/", O_RDONLY)); 294 (void) close(nullfd); 314 (void) close(nullfd); 734 int dcr, dcr2, nullfd, ret; local 760 (void) close(nullfd = open("/", O_RDONLY)); 764 (void) close(nullfd); 779 (void) close(nullfd); /* kernel might think dc2 is open */ 850 int nw, lt, dcf = -1, nullfd, dnf = -1; local 861 (void) close(nullfd = open("/dev/null", O_RDONLY));/* partial open hack */ [all …]
|
/titanic_44/usr/src/cmd/ssh/libssh/common/ |
H A D | misc.c | 508 int nullfd, dupfd; in sanitise_stdfd() local 510 if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) { in sanitise_stdfd() 518 if (dup2(nullfd, dupfd) == -1) { in sanitise_stdfd() 523 if (nullfd > 2) in sanitise_stdfd() 524 close(nullfd); in sanitise_stdfd()
|
/titanic_44/usr/src/lib/libnsl/dial/ |
H A D | callers.c | 182 int nullfd; in processdev() local 236 (void) close(nullfd = open("/", O_RDONLY)); in processdev() 238 (void) close(nullfd); in processdev() 258 (void) close(nullfd); in processdev()
|