Home
last modified time | relevance | path

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

1234

/freebsd-13.1/lib/libc/tests/stdio/
H A Dfreopen_test.c66 runtest(_PATH_DEVNULL, "r", NULL, "r", true); in ATF_TC_BODY()
73 runtest(_PATH_DEVNULL, "w", NULL, "r", false); in ATF_TC_BODY()
80 runtest(_PATH_DEVNULL, "r+", NULL, "r", true); in ATF_TC_BODY()
87 runtest(_PATH_DEVNULL, "r", NULL, "w", false); in ATF_TC_BODY()
94 runtest(_PATH_DEVNULL, "w", NULL, "w", true); in ATF_TC_BODY()
101 runtest(_PATH_DEVNULL, "r+", NULL, "w", true); in ATF_TC_BODY()
108 runtest(_PATH_DEVNULL, "r", NULL, "a", false); in ATF_TC_BODY()
115 runtest(_PATH_DEVNULL, "w", NULL, "a", true); in ATF_TC_BODY()
122 runtest(_PATH_DEVNULL, "r+", NULL, "a", true); in ATF_TC_BODY()
129 runtest(_PATH_DEVNULL, "r", NULL, "r+", false); in ATF_TC_BODY()
[all …]
H A Dfopen_test.c80 runtest(_PATH_DEVNULL, "r"); in ATF_TC_BODY()
87 runtest(_PATH_DEVNULL, "r+"); in ATF_TC_BODY()
94 runtest(_PATH_DEVNULL, "w"); in ATF_TC_BODY()
101 runtest(_PATH_DEVNULL, "w+"); in ATF_TC_BODY()
108 runtest(_PATH_DEVNULL, "a"); in ATF_TC_BODY()
115 runtest(_PATH_DEVNULL, "a+"); in ATF_TC_BODY()
122 runtest(_PATH_DEVNULL, "re"); in ATF_TC_BODY()
129 runtest(_PATH_DEVNULL, "r+e"); in ATF_TC_BODY()
136 runtest(_PATH_DEVNULL, "we"); in ATF_TC_BODY()
143 runtest(_PATH_DEVNULL, "w+e"); in ATF_TC_BODY()
[all …]
H A Dfdopen_test.c68 runtest(_PATH_DEVNULL, O_RDONLY, "r", true); in ATF_TC_BODY()
75 runtest(_PATH_DEVNULL, O_WRONLY, "r", false); in ATF_TC_BODY()
82 runtest(_PATH_DEVNULL, O_RDWR, "r", true); in ATF_TC_BODY()
89 runtest(_PATH_DEVNULL, O_RDONLY, "w", false); in ATF_TC_BODY()
96 runtest(_PATH_DEVNULL, O_WRONLY, "w", true); in ATF_TC_BODY()
103 runtest(_PATH_DEVNULL, O_RDWR, "w", true); in ATF_TC_BODY()
110 runtest(_PATH_DEVNULL, O_RDONLY, "a", false); in ATF_TC_BODY()
117 runtest(_PATH_DEVNULL, O_WRONLY, "a", true); in ATF_TC_BODY()
124 runtest(_PATH_DEVNULL, O_RDWR, "a", true); in ATF_TC_BODY()
145 runtest(_PATH_DEVNULL, O_RDWR, "r+", true); in ATF_TC_BODY()
[all …]
/freebsd-13.1/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-13.1/crypto/heimdal/appl/ftp/ftpd/
H A Dpathnames.h40 #ifndef _PATH_DEVNULL
41 #define _PATH_DEVNULL "/dev/null" macro
/freebsd-13.1/usr.sbin/cron/lib/
H A Dcompat.c109 (void) close(STDIN); (void) open(_PATH_DEVNULL, 0); in setsid()
110 (void) close(STDOUT); (void) open(_PATH_DEVNULL, 1); in setsid()
111 (void) close(STDERR); (void) open(_PATH_DEVNULL, 2); in setsid()
/freebsd-13.1/lib/libcasper/libcasper/
H A Dlibcasper_impl.c58 nullfd = open(_PATH_DEVNULL, O_RDWR); in fd_fix_environment()
60 errx(1, "Unable to open %s", _PATH_DEVNULL); in fd_fix_environment()
/freebsd-13.1/contrib/opie/
H A Dopie_cfg.h129 #ifndef _PATH_DEVNULL
130 #define _PATH_DEVNULL "/dev/null" macro
/freebsd-13.1/sbin/hastd/
H A Dhooks.c108 fd = open(_PATH_DEVNULL, O_RDONLY); in descriptors()
111 _PATH_DEVNULL); in descriptors()
119 fd = open(_PATH_DEVNULL, O_WRONLY); in descriptors()
122 _PATH_DEVNULL); in descriptors()
/freebsd-13.1/usr.sbin/cron/cron/
H A Dpopen.c134 (void)open(_PATH_DEVNULL, O_RDWR);
148 (void)open(_PATH_DEVNULL, O_RDWR);
150 (void)open(_PATH_DEVNULL, O_RDWR);
/freebsd-13.1/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-13.1/usr.sbin/autofs/
H A Dpopen.c85 nullfd = open(_PATH_DEVNULL, O_RDWR, 0); in auto_popen()
87 log_err(1, "cannot open %s", _PATH_DEVNULL); in auto_popen()
/freebsd-13.1/usr.sbin/pw/
H A Dpw_group.c283 freopen(_PATH_DEVNULL, "w", stderr); in pw_group_next()
340 freopen(_PATH_DEVNULL, "w", stderr); in pw_group_show()
397 freopen(_PATH_DEVNULL, "w", stderr); in pw_group_del()
555 freopen(_PATH_DEVNULL, "w", stderr); in pw_group_add()
646 freopen(_PATH_DEVNULL, "w", stderr); in pw_group_mod()
/freebsd-13.1/usr.bin/systat/
H A Dmain.c198 kd = kvm_openfiles(_PATH_DEVNULL, _PATH_DEVNULL, _PATH_DEVNULL, in main()
/freebsd-13.1/usr.sbin/bluetooth/btpand/
H A Dbtpand.c255 fd = open(_PATH_DEVNULL, O_RDWR, 0); in main_detach()
257 log_err("Could not open %s", _PATH_DEVNULL); in main_detach()
/freebsd-13.1/crypto/openssh/openbsd-compat/
H A Ddaemon.c71 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { in daemon()
/freebsd-13.1/lib/libc/gen/
H A Ddaemon.c101 nullfd = _open(_PATH_DEVNULL, O_RDWR, 0); in daemon()
/freebsd-13.1/contrib/bmake/
H A Dutil.c398 #ifndef _PATH_DEVNULL in vsnprintf()
399 # define _PATH_DEVNULL "/dev/null" in vsnprintf()
409 nullfp = fopen(_PATH_DEVNULL, "w"); in vsnprintf()
/freebsd-13.1/tests/sys/file/
H A Dclosefrom_test.c136 fd = open(_PATH_DEVNULL, O_RDONLY); in devnull()
138 fail_err("open(\" "_PATH_DEVNULL" \")"); in devnull()
/freebsd-13.1/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-13.1/usr.bin/patch/
H A Dutil.c369 if (strnEQ(at, _PATH_DEVNULL, sizeof(_PATH_DEVNULL) - 1)) { in fetchname()
/freebsd-13.1/include/
H A Dpaths.h59 #define _PATH_DEVNULL "/dev/null" macro
/freebsd-13.1/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_snmp.c116 if ((hr_kd = kvm_open(NULL, _PATH_DEVNULL, NULL, O_RDONLY, in hostres_init()

1234