Home
last modified time | relevance | path

Searched refs:_PATH_DEVNULL (Results 1 – 25 of 74) sorted by relevance

123

/freebsd/lib/libc/tests/stdio/
H A Dfreopen_test.c63 runtest(_PATH_DEVNULL, "r", NULL, "r", true); in ATF_TC_BODY()
70 runtest(_PATH_DEVNULL, "w", NULL, "r", false); in ATF_TC_BODY()
77 runtest(_PATH_DEVNULL, "r+", NULL, "r", true); in ATF_TC_BODY()
84 runtest(_PATH_DEVNULL, "r", NULL, "w", false); in ATF_TC_BODY()
91 runtest(_PATH_DEVNULL, "w", NULL, "w", true); in ATF_TC_BODY()
98 runtest(_PATH_DEVNULL, "r+", NULL, "w", true); in ATF_TC_BODY()
105 runtest(_PATH_DEVNULL, "r", NULL, "a", false); in ATF_TC_BODY()
112 runtest(_PATH_DEVNULL, "w", NULL, "a", true); in ATF_TC_BODY()
119 runtest(_PATH_DEVNULL, "r+", NULL, "a", true); in ATF_TC_BODY()
126 runtest(_PATH_DEVNULL, "r", NULL, "r+", false); in ATF_TC_BODY()
[all …]
H A Dfopen_test.c77 runtest(_PATH_DEVNULL, "r"); in ATF_TC_BODY()
84 runtest(_PATH_DEVNULL, "r+"); in ATF_TC_BODY()
91 runtest(_PATH_DEVNULL, "w"); in ATF_TC_BODY()
98 runtest(_PATH_DEVNULL, "w+"); in ATF_TC_BODY()
105 runtest(_PATH_DEVNULL, "a"); in ATF_TC_BODY()
112 runtest(_PATH_DEVNULL, "a+"); in ATF_TC_BODY()
119 runtest(_PATH_DEVNULL, "re"); in ATF_TC_BODY()
126 runtest(_PATH_DEVNULL, "r+e"); in ATF_TC_BODY()
133 runtest(_PATH_DEVNULL, "we"); in ATF_TC_BODY()
140 runtest(_PATH_DEVNULL, "w+e"); in ATF_TC_BODY()
[all …]
H A Dfdopen_test.c65 runtest(_PATH_DEVNULL, O_RDONLY, "r", true); in ATF_TC_BODY()
72 runtest(_PATH_DEVNULL, O_WRONLY, "r", false); in ATF_TC_BODY()
79 runtest(_PATH_DEVNULL, O_RDWR, "r", true); in ATF_TC_BODY()
86 runtest(_PATH_DEVNULL, O_RDONLY, "w", false); in ATF_TC_BODY()
93 runtest(_PATH_DEVNULL, O_WRONLY, "w", true); in ATF_TC_BODY()
100 runtest(_PATH_DEVNULL, O_RDWR, "w", true); in ATF_TC_BODY()
107 runtest(_PATH_DEVNULL, O_RDONLY, "a", false); in ATF_TC_BODY()
114 runtest(_PATH_DEVNULL, O_WRONLY, "a", true); in ATF_TC_BODY()
121 runtest(_PATH_DEVNULL, O_RDWR, "a", true); in ATF_TC_BODY()
128 runtest(_PATH_DEVNULL, O_RDONLY, "r+", false); in ATF_TC_BODY()
[all …]
/freebsd/contrib/tcsh/
H A Dpathnames.h98 #if defined(__EMX__) && !defined(_PATH_DEVNULL)
99 # define _PATH_DEVNULL "nul" macro
134 #ifndef _PATH_DEVNULL
135 # define _PATH_DEVNULL "/dev/null" macro
/freebsd/crypto/heimdal/appl/ftp/ftpd/
H A Dpathnames.h40 #ifndef _PATH_DEVNULL
41 #define _PATH_DEVNULL "/dev/null" macro
/freebsd/lib/libcasper/libcasper/
H A Dlibcasper_impl.c56 nullfd = open(_PATH_DEVNULL, O_RDWR); in fd_fix_environment()
58 errx(1, "Unable to open %s", _PATH_DEVNULL); in fd_fix_environment()
H A Dservice.c367 fd = open(_PATH_DEVNULL, O_RDWR); in stdnull()
369 errx(1, "Unable to open %s", _PATH_DEVNULL); in stdnull()
/freebsd/sbin/hastd/
H A Dhooks.c105 fd = open(_PATH_DEVNULL, O_RDONLY); in descriptors()
108 _PATH_DEVNULL); in descriptors()
116 fd = open(_PATH_DEVNULL, O_WRONLY); in descriptors()
119 _PATH_DEVNULL); in descriptors()
/freebsd/usr.sbin/cron/cron/
H A Dpopen.c121 (void)open(_PATH_DEVNULL, O_RDWR); in cron_popen()
135 (void)open(_PATH_DEVNULL, O_RDWR); in cron_popen()
137 (void)open(_PATH_DEVNULL, O_RDWR); in cron_popen()
/freebsd/crypto/heimdal/lib/roken/
H A Dsimple_exec.c177 in_fd[0] = open(_PATH_DEVNULL, O_RDONLY); in pipe_execv()
179 out_fd[1] = open(_PATH_DEVNULL, O_WRONLY); in pipe_execv()
181 err_fd[1] = open(_PATH_DEVNULL, O_WRONLY); in pipe_execv()
H A Ddaemon.c70 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { in daemon()
H A Droken-common.h131 #ifndef _PATH_DEVNULL
132 #define _PATH_DEVNULL "/dev/null" macro
/freebsd/usr.sbin/autofs/
H A Dpopen.c82 nullfd = open(_PATH_DEVNULL, O_RDWR, 0); in auto_popen()
84 log_err(1, "cannot open %s", _PATH_DEVNULL); in auto_popen()
/freebsd/usr.sbin/pw/
H A Dpw_group.c285 freopen(_PATH_DEVNULL, "w", stderr);
348 freopen(_PATH_DEVNULL, "w", stderr); in pw_group_show()
411 freopen(_PATH_DEVNULL, "w", stderr); in pw_group_del()
575 freopen(_PATH_DEVNULL, "w", stderr); in pw_group_mod()
673 freopen(_PATH_DEVNULL, "w", stderr); in pw_group_mod()
/freebsd/usr.bin/systat/
H A Dmain.c186 kd = kvm_openfiles(_PATH_DEVNULL, _PATH_DEVNULL, _PATH_DEVNULL, in main()
/freebsd/usr.sbin/bluetooth/btpand/
H A Dbtpand.c253 fd = open(_PATH_DEVNULL, O_RDWR, 0); in main_detach()
255 log_err("Could not open %s", _PATH_DEVNULL); in main_detach()
/freebsd/crypto/openssh/openbsd-compat/
H A Ddaemon.c71 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { in daemon()
/freebsd/tests/sys/file/
H A Dclosefrom_test.c134 fd = open(_PATH_DEVNULL, O_RDONLY); in devnull()
136 fail_err("open(\" "_PATH_DEVNULL" \")"); in devnull()
/freebsd/lib/libc/gen/
H A Ddaemon.c97 nullfd = _open(_PATH_DEVNULL, O_RDWR, 0); in daemon()
/freebsd/contrib/netbsd-tests/lib/libc/net/
H A Dh_dns_server.c195 (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { in daemon2_fork()
244 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { in daemon2_detach()
/freebsd/usr.bin/patch/
H A Dutil.c368 if (strnEQ(at, _PATH_DEVNULL, sizeof(_PATH_DEVNULL) - 1)) { in fetchname()
/freebsd/contrib/bmake/
H A Dutil.c402 #ifndef _PATH_DEVNULL in vsnprintf()
403 # define _PATH_DEVNULL "/dev/null" in vsnprintf()
413 nullfp = fopen(_PATH_DEVNULL, "w"); in vsnprintf()
/freebsd/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_snmp.c114 if ((hr_kd = kvm_open(NULL, _PATH_DEVNULL, NULL, O_RDONLY, in hostres_init()
/freebsd/include/
H A Dpaths.h56 #define _PATH_DEVNULL "/dev/null" macro
/freebsd/sbin/dumpon/
H A Ddumpon.c396 (void)strlcpy(dumpdev, _PATH_DEVNULL, sizeof(dumpdev)); in listdumpdev()
582 dev = _PATH_DEVNULL; in main()
587 if (strcmp(dev, _PATH_DEVNULL) == 0) { in main()

123