Searched refs:_PATH_DEVNULL (Results 26 - 50 of 71) sorted by relevance

123

/freebsd-current/lib/libcasper/libcasper/
H A Dservice.c367 fd = open(_PATH_DEVNULL, O_RDWR);
369 errx(1, "Unable to open %s", _PATH_DEVNULL);
/freebsd-current/contrib/bmake/
H A Dutil.c398 #ifndef _PATH_DEVNULL
399 # define _PATH_DEVNULL "/dev/null"
409 nullfp = fopen(_PATH_DEVNULL, "w");
/freebsd-current/sbin/dumpon/
H A Ddumpon.c396 (void)strlcpy(dumpdev, _PATH_DEVNULL, sizeof(dumpdev));
582 dev = _PATH_DEVNULL;
587 if (strcmp(dev, _PATH_DEVNULL) == 0) {
/freebsd-current/contrib/tcsh/
H A Dsh.misc.c292 (void) xopen(_PATH_DEVNULL, O_RDONLY|O_LARGEFILE);
340 int fd = xopen(_PATH_DEVNULL, O_RDONLY|O_LARGEFILE);
/freebsd-current/usr.sbin/cron/crontab/
H A Dcrontab.c324 if (!(f = fopen(_PATH_DEVNULL, "r")))
325 err(ERROR_EXIT, _PATH_DEVNULL);
/freebsd-current/usr.sbin/ppp/
H A Dmain.c320 if ((holdfd[0] = open(_PATH_DEVNULL, O_RDWR)) == -1) {
321 fprintf(stderr, "Cannot open %s !\n", _PATH_DEVNULL);
H A Dchap.c309 if (open(_PATH_DEVNULL, O_RDWR) != STDERR_FILENO) {
311 _PATH_DEVNULL, strerror(errno));
/freebsd-current/usr.bin/mail/
H A Dcollect.c335 if ((nullfd = open(_PATH_DEVNULL, O_RDONLY, 0))
337 warn(_PATH_DEVNULL);
/freebsd-current/lib/libkvm/
H A Dkvm.c160 if (strcmp(mf, _PATH_DEVNULL) == 0) {
161 kd->vmfd = open(_PATH_DEVNULL, O_RDONLY | O_CLOEXEC);
/freebsd-current/usr.sbin/lpr/lpd/
H A Drecvjob.c106 (void) open(_PATH_DEVNULL, O_WRONLY);
/freebsd-current/crypto/openssh/
H A Dssh-keysign.c192 if ((fd = open(_PATH_DEVNULL, O_RDWR)) < 2)
H A Ddefines.h453 #ifndef _PATH_DEVNULL
454 # define _PATH_DEVNULL "/dev/null" macro
H A Dmisc.c1500 if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) {
2685 if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) {
2686 error_f("open %s: %s", _PATH_DEVNULL,
2802 if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) {
2803 error("%s: open %s: %s", tag, _PATH_DEVNULL,
/freebsd-current/sbin/mdmfs/
H A Dmdmfs.c785 nfd = open(_PATH_DEVNULL, O_RDWR);
787 err(1, "open: %s", _PATH_DEVNULL);
/freebsd-current/sbin/swapon/
H A Dswapon.c652 nfd = open(_PATH_DEVNULL, O_RDWR);
654 err(1, "%s: open %s", __func__, _PATH_DEVNULL);
/freebsd-current/contrib/netbsd-tests/lib/libc/stdio/
H A Dt_fopen.c316 static const char *devs[] = { _PATH_DEVNULL };
/freebsd-current/contrib/netbsd-tests/lib/libc/sys/
H A Dt_poll.c353 fd = open(_PATH_DEVNULL, O_RDONLY);
/freebsd-current/lib/libpam/modules/pam_ssh/
H A Dpam_ssh.c300 open(_PATH_DEVNULL, O_RDONLY);
/freebsd-current/bin/sh/
H A Djobs.c942 if (open(_PATH_DEVNULL, O_RDONLY) != 0)
944 _PATH_DEVNULL, strerror(errno));
954 if (open(_PATH_DEVNULL, O_RDONLY) != 0)
956 _PATH_DEVNULL, strerror(errno));
/freebsd-current/usr.sbin/pw/
H A Dpw_user.c722 freopen(_PATH_DEVNULL, "w", stderr);
790 freopen(_PATH_DEVNULL, "w", stderr);
877 freopen(_PATH_DEVNULL, "w", stderr);
1331 freopen(_PATH_DEVNULL, "w", stderr);
1648 freopen(_PATH_DEVNULL, "w", stderr);
/freebsd-current/usr.sbin/autofs/
H A Dcommon.c1187 fd = open(_PATH_DEVNULL, O_RDWR, 0);
1189 log_warn("cannot open %s", _PATH_DEVNULL);
/freebsd-current/usr.bin/w/
H A Dw.c153 memf = _PATH_DEVNULL;
/freebsd-current/bin/pkill/
H A Dpkill.c186 coref = _PATH_DEVNULL;
/freebsd-current/lib/libnv/tests/
H A Dnvlist_send_recv_test.c404 fd = open(_PATH_DEVNULL, O_RDONLY);
/freebsd-current/sbin/init/
H A Dinit.c595 if ((fd = open(_PATH_DEVNULL, O_RDWR)) == -1) {
2138 open(_PATH_DEVNULL, O_RDONLY);

Completed in 456 milliseconds

123