Searched defs:devnullfd (Results 1 - 2 of 2) sorted by relevance

/bind-9.11.3/bin/named/win32/
H A Dos.c41 static int devnullfd = -1; variable
121 if (devnullfd != -1) {
122 if (devnullfd != _fileno(stdin)) {
124 (void)_dup2(devnullfd, _fileno(stdin));
126 if (devnullfd != _fileno(stdout)) {
128 (void)_dup2(devnullfd, _fileno(stdout));
130 if (devnullfd != _fileno(stderr)) {
132 (void)_dup2(devnullfd, _fileno(stderr));
139 devnullfd = open("NUL", O_RDWR, 0);
144 if (devnullfd !
[all...]
/bind-9.11.3/bin/named/unix/
H A Dos.c51 static int devnullfd = -1; variable
448 if (devnullfd != -1) {
449 if (devnullfd != STDIN_FILENO) {
451 (void)dup2(devnullfd, STDIN_FILENO);
453 if (devnullfd != STDOUT_FILENO) {
455 (void)dup2(devnullfd, STDOUT_FILENO);
457 if (devnullfd != STDERR_FILENO && !ns_g_keepstderr) {
459 (void)dup2(devnullfd, STDERR_FILENO);
482 devnullfd = open("/dev/null", O_RDWR, 0);
487 if (devnullfd !
[all...]

Completed in 1075 milliseconds