Symbol: _PATH_DEVNULL
bin/pkill/pkill.c
186
coref = _PATH_DEVNULL;
bin/ps/ps.c
243
memf = _PATH_DEVNULL;
bin/sh/jobs.c
945
if (open(_PATH_DEVNULL, O_RDONLY) != 0)
bin/sh/jobs.c
947
_PATH_DEVNULL, strerror(errno));
bin/sh/jobs.c
957
if (open(_PATH_DEVNULL, O_RDONLY) != 0)
bin/sh/jobs.c
959
_PATH_DEVNULL, strerror(errno));
crypto/heimdal/appl/ftp/ftpd/pathnames.h
40
#ifndef _PATH_DEVNULL
crypto/heimdal/lib/roken/daemon.c
70
if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
crypto/heimdal/lib/roken/roken-common.h
131
#ifndef _PATH_DEVNULL
crypto/heimdal/lib/roken/simple_exec.c
177
in_fd[0] = open(_PATH_DEVNULL, O_RDONLY);
crypto/heimdal/lib/roken/simple_exec.c
179
out_fd[1] = open(_PATH_DEVNULL, O_WRONLY);
crypto/heimdal/lib/roken/simple_exec.c
181
err_fd[1] = open(_PATH_DEVNULL, O_WRONLY);
crypto/krb5/src/lib/apputils/daemon.c
44
#ifndef _PATH_DEVNULL
crypto/krb5/src/lib/apputils/daemon.c
85
int devnull = open(_PATH_DEVNULL, O_RDWR, 0);
crypto/openssh/clientloop.c
360
SSH_X11_PROTO, _PATH_DEVNULL);
crypto/openssh/clientloop.c
374
_PATH_DEVNULL);
crypto/openssh/clientloop.c
399
"%s %s%s list %s 2>" _PATH_DEVNULL,
crypto/openssh/defines.h
455
#ifndef _PATH_DEVNULL
crypto/openssh/misc.c
1535
if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) {
crypto/openssh/misc.c
2733
if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) {
crypto/openssh/misc.c
2734
error_f("open %s: %s", _PATH_DEVNULL,
crypto/openssh/misc.c
2850
if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) {
crypto/openssh/misc.c
2851
error("%s: open %s: %s", tag, _PATH_DEVNULL,
crypto/openssh/monitor.c
1714
if ((fd0 = open(_PATH_DEVNULL, O_RDONLY)) == -1)
crypto/openssh/openbsd-compat/daemon.c
71
if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
crypto/openssh/ssh-keysign.c
192
if ((fd = open(_PATH_DEVNULL, O_RDWR)) < 2)
crypto/openssh/ssh.c
2249
in = open(_PATH_DEVNULL, O_RDONLY);
crypto/openssh/sshd-session.c
1006
if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1)
crypto/openssh/sshd-session.c
1007
fatal("open %s: %s", _PATH_DEVNULL, strerror(errno));
crypto/openssh/sshd-session.c
1010
fatal("dup %s: %s", _PATH_DEVNULL, strerror(errno));
crypto/openssh/sshd.c
1530
if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1)
crypto/openssh/sshd.c
1531
fatal("open %s: %s", _PATH_DEVNULL, strerror(errno));
crypto/openssh/sshd.c
1534
fatal("dup %s: %s", _PATH_DEVNULL, strerror(errno));
lib/libc/gen/daemon.c
97
nullfd = _open(_PATH_DEVNULL, O_RDWR, 0);
lib/libc/tests/stdio/fdopen_test.c
100
runtest(_PATH_DEVNULL, O_RDWR, "w", true);
lib/libc/tests/stdio/fdopen_test.c
107
runtest(_PATH_DEVNULL, O_RDONLY, "a", false);
lib/libc/tests/stdio/fdopen_test.c
114
runtest(_PATH_DEVNULL, O_WRONLY, "a", true);
lib/libc/tests/stdio/fdopen_test.c
121
runtest(_PATH_DEVNULL, O_RDWR, "a", true);
lib/libc/tests/stdio/fdopen_test.c
128
runtest(_PATH_DEVNULL, O_RDONLY, "r+", false);
lib/libc/tests/stdio/fdopen_test.c
135
runtest(_PATH_DEVNULL, O_WRONLY, "r+", false);
lib/libc/tests/stdio/fdopen_test.c
142
runtest(_PATH_DEVNULL, O_RDWR, "r+", true);
lib/libc/tests/stdio/fdopen_test.c
149
runtest(_PATH_DEVNULL, O_RDONLY, "w+", false);
lib/libc/tests/stdio/fdopen_test.c
156
runtest(_PATH_DEVNULL, O_WRONLY, "w+", false);
lib/libc/tests/stdio/fdopen_test.c
163
runtest(_PATH_DEVNULL, O_RDWR, "w+", true);
lib/libc/tests/stdio/fdopen_test.c
65
runtest(_PATH_DEVNULL, O_RDONLY, "r", true);
lib/libc/tests/stdio/fdopen_test.c
72
runtest(_PATH_DEVNULL, O_WRONLY, "r", false);
lib/libc/tests/stdio/fdopen_test.c
79
runtest(_PATH_DEVNULL, O_RDWR, "r", true);
lib/libc/tests/stdio/fdopen_test.c
86
runtest(_PATH_DEVNULL, O_RDONLY, "w", false);
lib/libc/tests/stdio/fdopen_test.c
93
runtest(_PATH_DEVNULL, O_WRONLY, "w", true);
lib/libc/tests/stdio/fopen_test.c
105
runtest(_PATH_DEVNULL, "a");
lib/libc/tests/stdio/fopen_test.c
112
runtest(_PATH_DEVNULL, "a+");
lib/libc/tests/stdio/fopen_test.c
119
runtest(_PATH_DEVNULL, "re");
lib/libc/tests/stdio/fopen_test.c
126
runtest(_PATH_DEVNULL, "r+e");
lib/libc/tests/stdio/fopen_test.c
133
runtest(_PATH_DEVNULL, "we");
lib/libc/tests/stdio/fopen_test.c
140
runtest(_PATH_DEVNULL, "w+e");
lib/libc/tests/stdio/fopen_test.c
147
runtest(_PATH_DEVNULL, "ae");
lib/libc/tests/stdio/fopen_test.c
154
runtest(_PATH_DEVNULL, "a+e");
lib/libc/tests/stdio/fopen_test.c
161
runtest(_PATH_DEVNULL, "re+");
lib/libc/tests/stdio/fopen_test.c
168
runtest(_PATH_DEVNULL, "we+");
lib/libc/tests/stdio/fopen_test.c
175
runtest(_PATH_DEVNULL, "ae+");
lib/libc/tests/stdio/fopen_test.c
77
runtest(_PATH_DEVNULL, "r");
lib/libc/tests/stdio/fopen_test.c
84
runtest(_PATH_DEVNULL, "r+");
lib/libc/tests/stdio/fopen_test.c
91
runtest(_PATH_DEVNULL, "w");
lib/libc/tests/stdio/fopen_test.c
98
runtest(_PATH_DEVNULL, "w+");
lib/libc/tests/stdio/freopen_test.c
105
runtest(_PATH_DEVNULL, "r", NULL, "a", false);
lib/libc/tests/stdio/freopen_test.c
112
runtest(_PATH_DEVNULL, "w", NULL, "a", true);
lib/libc/tests/stdio/freopen_test.c
119
runtest(_PATH_DEVNULL, "r+", NULL, "a", true);
lib/libc/tests/stdio/freopen_test.c
126
runtest(_PATH_DEVNULL, "r", NULL, "r+", false);
lib/libc/tests/stdio/freopen_test.c
133
runtest(_PATH_DEVNULL, "w", NULL, "r+", false);
lib/libc/tests/stdio/freopen_test.c
140
runtest(_PATH_DEVNULL, "r+", NULL, "r+", true);
lib/libc/tests/stdio/freopen_test.c
147
runtest(_PATH_DEVNULL, "r", NULL, "w+", false);
lib/libc/tests/stdio/freopen_test.c
154
runtest(_PATH_DEVNULL, "w", NULL, "w+", false);
lib/libc/tests/stdio/freopen_test.c
161
runtest(_PATH_DEVNULL, "r+", NULL, "w+", true);
lib/libc/tests/stdio/freopen_test.c
182
runtest("/bin/sh", "r", _PATH_DEVNULL, "r", true);
lib/libc/tests/stdio/freopen_test.c
189
runtest("/bin/sh", "r", _PATH_DEVNULL, "w", true);
lib/libc/tests/stdio/freopen_test.c
63
runtest(_PATH_DEVNULL, "r", NULL, "r", true);
lib/libc/tests/stdio/freopen_test.c
70
runtest(_PATH_DEVNULL, "w", NULL, "r", false);
lib/libc/tests/stdio/freopen_test.c
77
runtest(_PATH_DEVNULL, "r+", NULL, "r", true);
lib/libc/tests/stdio/freopen_test.c
84
runtest(_PATH_DEVNULL, "r", NULL, "w", false);
lib/libc/tests/stdio/freopen_test.c
91
runtest(_PATH_DEVNULL, "w", NULL, "w", true);
lib/libc/tests/stdio/freopen_test.c
98
runtest(_PATH_DEVNULL, "r+", NULL, "w", true);
lib/libc/tests/sys/sendfile_test.c
1109
client_sock = open(_PATH_DEVNULL, O_WRONLY);
lib/libcasper/libcasper/libcasper_impl.c
56
nullfd = open(_PATH_DEVNULL, O_RDWR);
lib/libcasper/libcasper/libcasper_impl.c
58
errx(1, "Unable to open %s", _PATH_DEVNULL);
lib/libcasper/libcasper/service.c
367
fd = open(_PATH_DEVNULL, O_RDWR);
lib/libcasper/libcasper/service.c
369
errx(1, "Unable to open %s", _PATH_DEVNULL);
lib/libkvm/kvm.c
160
if (strcmp(mf, _PATH_DEVNULL) == 0) {
lib/libkvm/kvm.c
161
kd->vmfd = open(_PATH_DEVNULL, O_RDONLY | O_CLOEXEC);
lib/libnv/tests/nvlist_send_recv_test.c
406
fd = open(_PATH_DEVNULL, O_RDONLY);
lib/libpam/modules/pam_ssh/pam_ssh.c
300
open(_PATH_DEVNULL, O_RDONLY);
sbin/dhclient/dhclient.c
483
if ((nullfd = open(_PATH_DEVNULL, O_RDWR, 0)) == -1)
sbin/dhclient/dhclient.c
484
error("cannot open %s: %m", _PATH_DEVNULL);
sbin/dumpon/dumpon.c
396
(void)strlcpy(dumpdev, _PATH_DEVNULL, sizeof(dumpdev));
sbin/dumpon/dumpon.c
582
dev = _PATH_DEVNULL;
sbin/dumpon/dumpon.c
587
if (strcmp(dev, _PATH_DEVNULL) == 0) {
sbin/hastd/hooks.c
105
fd = open(_PATH_DEVNULL, O_RDONLY);
sbin/hastd/hooks.c
108
_PATH_DEVNULL);
sbin/hastd/hooks.c
116
fd = open(_PATH_DEVNULL, O_WRONLY);
sbin/hastd/hooks.c
119
_PATH_DEVNULL);
sbin/init/init.c
2146
open(_PATH_DEVNULL, O_RDONLY);
sbin/init/init.c
595
if ((fd = open(_PATH_DEVNULL, O_RDWR)) == -1) {
sbin/mdmfs/mdmfs.c
784
nfd = open(_PATH_DEVNULL, O_RDWR);
sbin/mdmfs/mdmfs.c
786
err(1, "open: %s", _PATH_DEVNULL);
sbin/restore/tape.c
153
terminal = fopen(_PATH_DEVNULL, "r");
sbin/restore/tape.c
156
_PATH_DEVNULL, strerror(errno));
sbin/route/route.c
249
s = open(_PATH_DEVNULL, O_WRONLY, 0);
sbin/routed/trace.c
189
fd = open(_PATH_DEVNULL, O_RDWR);
sbin/swapon/swapon.c
682
nfd = open(_PATH_DEVNULL, O_RDWR);
sbin/swapon/swapon.c
684
err(1, "%s: open %s", __func__, _PATH_DEVNULL);
tests/sys/file/closefrom_test.c
123
fd = open(_PATH_DEVNULL, O_RDONLY);
tests/sys/file/closefrom_test.c
124
ATF_REQUIRE_MSG(fd != -1, "open(\" "_PATH_DEVNULL" \"): %s",
usr.bin/diff/diffreg.c
330
f1 = fopen(_PATH_DEVNULL, "r");
usr.bin/diff/diffreg.c
353
f2 = fopen(_PATH_DEVNULL, "r");
usr.bin/mail/collect.c
339
if ((nullfd = open(_PATH_DEVNULL, O_RDONLY, 0))
usr.bin/mail/collect.c
341
warn(_PATH_DEVNULL);
usr.bin/patch/patch.c
228
out_creating = strcmp(source_file, _PATH_DEVNULL) == 0;
usr.bin/patch/pch.c
428
source_file = xstrdup(_PATH_DEVNULL);
usr.bin/patch/util.c
368
if (strnEQ(at, _PATH_DEVNULL, sizeof(_PATH_DEVNULL) - 1)) {
usr.bin/systat/main.c
187
kd = kvm_openfiles(_PATH_DEVNULL, _PATH_DEVNULL, _PATH_DEVNULL,
usr.bin/top/machine.c
383
kd = kvm_open(NULL, _PATH_DEVNULL, NULL, O_RDONLY, "kvm_open");
usr.bin/top/utils.c
290
kd = kvm_open(NULL, _PATH_DEVNULL, NULL, O_RDONLY, NULL);
usr.bin/w/w.c
157
memf = _PATH_DEVNULL;
usr.bin/xargs/xargs.c
603
fd = open(_PATH_DEVNULL, O_RDONLY);
usr.bin/xinstall/xinstall.c
817
if (flags & DIRECTORY || strcmp(from_name, _PATH_DEVNULL)) {
usr.sbin/autofs/common.c
1188
fd = open(_PATH_DEVNULL, O_RDWR, 0);
usr.sbin/autofs/common.c
1190
log_warn("cannot open %s", _PATH_DEVNULL);
usr.sbin/autofs/popen.c
82
nullfd = open(_PATH_DEVNULL, O_RDWR, 0);
usr.sbin/autofs/popen.c
84
log_err(1, "cannot open %s", _PATH_DEVNULL);
usr.sbin/bluetooth/btpand/btpand.c
253
fd = open(_PATH_DEVNULL, O_RDWR, 0);
usr.sbin/bluetooth/btpand/btpand.c
255
log_err("Could not open %s", _PATH_DEVNULL);
usr.sbin/bsnmpd/modules/snmp_hostres/hostres_snmp.c
114
if ((hr_kd = kvm_open(NULL, _PATH_DEVNULL, NULL, O_RDONLY,
usr.sbin/certctl/certctl.c
508
fd = open(_PATH_DEVNULL, O_WRONLY);
usr.sbin/certctl/certctl.c
521
fd = open(_PATH_DEVNULL, O_WRONLY);
usr.sbin/certctl/certctl.c
593
fd = open(_PATH_DEVNULL, O_WRONLY);
usr.sbin/cron/cron/popen.c
123
(void)open(_PATH_DEVNULL, O_RDWR);
usr.sbin/cron/cron/popen.c
137
(void)open(_PATH_DEVNULL, O_RDWR);
usr.sbin/cron/cron/popen.c
139
(void)open(_PATH_DEVNULL, O_RDWR);
usr.sbin/cron/crontab/crontab.c
324
if (!(f = fopen(_PATH_DEVNULL, "r")))
usr.sbin/cron/crontab/crontab.c
325
err(ERROR_EXIT, _PATH_DEVNULL);
usr.sbin/lpr/lpd/printjob.c
163
(void) open(_PATH_DEVNULL, O_WRONLY);
usr.sbin/lpr/lpd/recvjob.c
110
(void) open(_PATH_DEVNULL, O_WRONLY);
usr.sbin/ppp/chap.c
309
if (open(_PATH_DEVNULL, O_RDWR) != STDERR_FILENO) {
usr.sbin/ppp/chap.c
311
_PATH_DEVNULL, strerror(errno));
usr.sbin/ppp/chat.c
747
open(_PATH_DEVNULL, O_RDWR); /* Leave it closed if it fails... */
usr.sbin/ppp/command.c
661
else if ((fd = open(_PATH_DEVNULL, O_RDWR)) == -1) {
usr.sbin/ppp/command.c
663
_PATH_DEVNULL, strerror(errno));
usr.sbin/ppp/main.c
320
if ((holdfd[0] = open(_PATH_DEVNULL, O_RDWR)) == -1) {
usr.sbin/ppp/main.c
321
fprintf(stderr, "Cannot open %s !\n", _PATH_DEVNULL);
usr.sbin/pw/pw_group.c
285
freopen(_PATH_DEVNULL, "w", stderr);
usr.sbin/pw/pw_group.c
348
freopen(_PATH_DEVNULL, "w", stderr);
usr.sbin/pw/pw_group.c
411
freopen(_PATH_DEVNULL, "w", stderr);
usr.sbin/pw/pw_group.c
575
freopen(_PATH_DEVNULL, "w", stderr);
usr.sbin/pw/pw_group.c
673
freopen(_PATH_DEVNULL, "w", stderr);
usr.sbin/pw/pw_user.c
1349
freopen(_PATH_DEVNULL, "w", stderr);
usr.sbin/pw/pw_user.c
1666
freopen(_PATH_DEVNULL, "w", stderr);
usr.sbin/pw/pw_user.c
740
freopen(_PATH_DEVNULL, "w", stderr);
usr.sbin/pw/pw_user.c
808
freopen(_PATH_DEVNULL, "w", stderr);
usr.sbin/pw/pw_user.c
895
freopen(_PATH_DEVNULL, "w", stderr);
usr.sbin/syslogd/syslogd.c
699
nulldesc = open(_PATH_DEVNULL, O_RDWR);
usr.sbin/syslogd/syslogd.c
701
warn("cannot open %s", _PATH_DEVNULL);