Symbol: _PATH_DEVNULL
bin/ps/ps.c
169
memf = nlistf = _PATH_DEVNULL;
bin/sh/jobs.c
953
if (open(_PATH_DEVNULL, O_RDONLY) != 0)
bin/sh/jobs.c
955
_PATH_DEVNULL, strerror(errno));
bin/sh/jobs.c
965
if (open(_PATH_DEVNULL, O_RDONLY) != 0)
bin/sh/jobs.c
967
_PATH_DEVNULL, strerror(errno));
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
453
#ifndef _PATH_DEVNULL
crypto/openssh/misc.c
1514
if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) {
crypto/openssh/misc.c
2709
if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) {
crypto/openssh/misc.c
2710
error_f("open %s: %s", _PATH_DEVNULL,
crypto/openssh/misc.c
2826
if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) {
crypto/openssh/misc.c
2827
error("%s: open %s: %s", tag, _PATH_DEVNULL,
crypto/openssh/monitor.c
1607
if ((fd0 = open(_PATH_DEVNULL, O_RDONLY)) == -1)
crypto/openssh/ssh-keysign.c
192
if ((fd = open(_PATH_DEVNULL, O_RDWR)) < 2)
crypto/openssh/ssh.c
2170
in = open(_PATH_DEVNULL, O_RDONLY);
crypto/openssh/sshd.c
1350
if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1)
crypto/openssh/sshd.c
1351
fatal("open %s: %s", _PATH_DEVNULL, strerror(errno));
crypto/openssh/sshd.c
1354
fatal("dup %s: %s", _PATH_DEVNULL, strerror(errno));
games/mille/varpush.c
86
if (strcmp(buf, _PATH_DEVNULL) != 0)
lib/libc/gen/daemon.c
80
if (!noclose && (fd = _open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
lib/libkvm/kvm.c
198
if (strcmp(mf, _PATH_DEVNULL) == 0) {
lib/libkvm/kvm.c
199
kd->vmfd = open(_PATH_DEVNULL, O_RDONLY);
libexec/ftpd/ftpd.c
266
freopen(_PATH_DEVNULL, "w", stderr);
sbin/dhclient/dhclient.c
356
if ((nullfd = open(_PATH_DEVNULL, O_RDWR, 0)) == -1)
sbin/dhclient/dhclient.c
357
error("cannot open %s: %m", _PATH_DEVNULL);
sbin/restore/tape.c
138
terminal = fopen(_PATH_DEVNULL, "r");
sbin/restore/tape.c
141
_PATH_DEVNULL, strerror(errno));
sbin/route/route.c
180
s = open(_PATH_DEVNULL, O_WRONLY, 0);
sbin/routed/trace.c
190
fd = open(_PATH_DEVNULL, O_RDWR);
usr.bin/diff/diffreg.c
313
f1 = fopen(_PATH_DEVNULL, "r");
usr.bin/diff/diffreg.c
334
f2 = fopen(_PATH_DEVNULL, "r");
usr.bin/patch/patch.c
229
out_creating = strcmp(source_file, _PATH_DEVNULL) == 0;
usr.bin/patch/pch.c
429
source_file = xstrdup(_PATH_DEVNULL);
usr.bin/patch/util.c
369
if (strnEQ(at, _PATH_DEVNULL, sizeof(_PATH_DEVNULL) - 1)) {
usr.bin/pkill/pkill.c
181
coref = _PATH_DEVNULL;
usr.bin/w/w.c
149
memf = nlistf = _PATH_DEVNULL;
usr.bin/xargs/xargs.c
619
fd = open(_PATH_DEVNULL, O_RDONLY);
usr.bin/xinstall/xinstall.c
602
if (flags & DIRECTORY || strcmp(from_name, _PATH_DEVNULL)) {
usr.sbin/autofs/common.c
1174
fd = open(_PATH_DEVNULL, O_RDWR, 0);
usr.sbin/autofs/common.c
1176
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/cron/cron/popen.c
126
open(_PATH_DEVNULL, O_RDWR);
usr.sbin/cron/cron/popen.c
140
open(_PATH_DEVNULL, O_RDWR);
usr.sbin/cron/cron/popen.c
142
open(_PATH_DEVNULL, O_RDWR);
usr.sbin/cron/crontab/crontab.c
314
if (!(f = fopen(_PATH_DEVNULL, "r")))
usr.sbin/cron/crontab/crontab.c
315
err(ERROR_EXIT, _PATH_DEVNULL);
usr.sbin/cron/lib/compat.c
117
close(STDIN); open(_PATH_DEVNULL, 0);
usr.sbin/cron/lib/compat.c
118
close(STDOUT); open(_PATH_DEVNULL, 1);
usr.sbin/cron/lib/compat.c
119
close(STDERR); open(_PATH_DEVNULL, 2);
usr.sbin/lpr/lpd/printjob.c
156
open(_PATH_DEVNULL, O_WRONLY);
usr.sbin/lpr/lpd/recvjob.c
103
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
742
open(_PATH_DEVNULL, O_RDWR); /* Leave it closed if it fails... */
usr.sbin/ppp/command.c
635
else if ((fd = open(_PATH_DEVNULL, O_RDWR)) == -1) {
usr.sbin/ppp/command.c
637
_PATH_DEVNULL, strerror(errno));
usr.sbin/ppp/main.c
319
if ((holdfd[0] = open(_PATH_DEVNULL, O_RDWR)) == -1) {
usr.sbin/ppp/main.c
320
fprintf(stderr, "Cannot open %s !\n", _PATH_DEVNULL);
usr.sbin/pw/pw.c
205
freopen(_PATH_DEVNULL, "w", stderr);
usr.sbin/sliplogin/sliplogin.c
493
if ((fd = open(_PATH_DEVNULL, O_WRONLY)) != 1) {
usr.sbin/sliplogin/sliplogin.c
495
syslog(LOG_ERR, "open %s: %m", _PATH_DEVNULL);
usr.sbin/syslogd/syslogd.c
2142
if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
usr.sbin/syslogd/syslogd.c
2476
if ((nulldesc = open(_PATH_DEVNULL, O_RDWR)) == -1)