/src/lib/libc/gen/ |
wordexp.c | 133 int devnull; local in function:we_askshell 142 if ((devnull = open(_PATH_DEVNULL, O_RDWR, 0666)) < 0) 144 if (dup2(devnull, STDERR_FILENO) < 0) 146 close(devnull);
|
/src/tests/fs/common/ |
fstest_nfs.c | 85 int devnull; local in function:donewfs 135 if (read(pipes[0], &devnull, 4) == -1)
|
/src/usr.bin/patch/ |
inp.c | 144 int ifd, statfailed, devnull, pstat; local in function:plan_a 232 devnull = open("/dev/null", O_RDONLY); 233 if (devnull == -1) { 237 (void)dup2(devnull, STDOUT_FILENO);
|
/src/libexec/makewhatis/ |
makewhatis.c | 777 static int devnull = -1; local in function:nroff 783 if ((devnull < 0) && 784 ((devnull = open(_PATH_DEVNULL, O_WRONLY, 0)) < 0)) 832 if (devnull != STDERR_FILENO) { 833 (void)dup2(devnull, STDERR_FILENO); 834 (void)close(devnull);
|
/src/usr.bin/xinstall/ |
xinstall.c | 672 int devnull, from_fd, to_fd, serrno, tmpmode; local in function:install 693 devnull = 0; 706 devnull = 1; 750 if (!devnull) {
|
/src/bin/sh/ |
jobs.c | 1382 const char *devnull = _PATH_DEVNULL; local in function:forkchild 1419 if (open(devnull, O_RDONLY) != 0) 1420 error(nullerr, devnull); 1430 if (open(devnull, O_RDONLY) != 0) 1431 error(nullerr, devnull);
|
/src/usr.sbin/traceroute/ |
traceroute.c | 354 static const char devnull[] = "/dev/null"; variable in typeref:typename:const char[] 463 if (open(devnull, O_RDONLY) < 0 || 464 open(devnull, O_RDONLY) < 0 || 465 open(devnull, O_RDONLY) < 0) 466 err(1, "Cannot open `%s'", devnull);
|