| /freebsd-12.1/lib/libc/tests/stdio/ |
| H A D | freopen_test.c | 66 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 D | fopen_test.c | 80 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 D | fdopen_test.c | 68 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-12.1/contrib/tcsh/ |
| H A D | pathnames.h | 99 #if defined(__EMX__) && !defined(_PATH_DEVNULL) 100 # define _PATH_DEVNULL "nul" macro 135 #ifndef _PATH_DEVNULL 136 # define _PATH_DEVNULL "/dev/null" macro
|
| /freebsd-12.1/usr.sbin/cron/lib/ |
| H A D | compat.c | 121 (void) close(STDIN); (void) open(_PATH_DEVNULL, 0); in setsid() 122 (void) close(STDOUT); (void) open(_PATH_DEVNULL, 1); in setsid() 123 (void) close(STDERR); (void) open(_PATH_DEVNULL, 2); in setsid()
|
| /freebsd-12.1/crypto/heimdal/appl/ftp/ftpd/ |
| H A D | pathnames.h | 40 #ifndef _PATH_DEVNULL 41 #define _PATH_DEVNULL "/dev/null" macro
|
| /freebsd-12.1/contrib/opie/ |
| H A D | opie_cfg.h | 129 #ifndef _PATH_DEVNULL 130 #define _PATH_DEVNULL "/dev/null" macro
|
| /freebsd-12.1/sbin/hastd/ |
| H A D | hooks.c | 108 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-12.1/usr.sbin/cron/cron/ |
| H A D | popen.c | 133 (void)open(_PATH_DEVNULL, O_RDWR); 147 (void)open(_PATH_DEVNULL, O_RDWR); 149 (void)open(_PATH_DEVNULL, O_RDWR);
|
| /freebsd-12.1/crypto/heimdal/lib/roken/ |
| H A D | simple_exec.c | 177 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 D | daemon.c | 70 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { in daemon()
|
| H A D | roken-common.h | 131 #ifndef _PATH_DEVNULL 132 #define _PATH_DEVNULL "/dev/null" macro
|
| /freebsd-12.1/usr.sbin/autofs/ |
| H A D | popen.c | 85 nullfd = open(_PATH_DEVNULL, O_RDWR, 0); in auto_popen() 87 log_err(1, "cannot open %s", _PATH_DEVNULL); in auto_popen()
|
| /freebsd-12.1/usr.sbin/pw/ |
| H A D | pw_group.c | 278 freopen(_PATH_DEVNULL, "w", stderr); in pw_group_next() 335 freopen(_PATH_DEVNULL, "w", stderr); in pw_group_show() 392 freopen(_PATH_DEVNULL, "w", stderr); in pw_group_del() 550 freopen(_PATH_DEVNULL, "w", stderr); in pw_group_add() 641 freopen(_PATH_DEVNULL, "w", stderr); in pw_group_mod()
|
| /freebsd-12.1/usr.bin/systat/ |
| H A D | main.c | 183 kd = kvm_openfiles(_PATH_DEVNULL, _PATH_DEVNULL, _PATH_DEVNULL, in main()
|
| /freebsd-12.1/usr.sbin/bluetooth/btpand/ |
| H A D | btpand.c | 255 fd = open(_PATH_DEVNULL, O_RDWR, 0); in main_detach() 257 log_err("Could not open %s", _PATH_DEVNULL); in main_detach()
|
| /freebsd-12.1/tests/sys/file/ |
| H A D | closefrom_test.c | 136 fd = open(_PATH_DEVNULL, O_RDONLY); in devnull() 138 fail_err("open(\" "_PATH_DEVNULL" \")"); in devnull()
|
| /freebsd-12.1/crypto/openssh/openbsd-compat/ |
| H A D | daemon.c | 71 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { in daemon()
|
| /freebsd-12.1/contrib/bmake/ |
| H A D | util.c | 430 #ifndef _PATH_DEVNULL in vsnprintf() 431 # define _PATH_DEVNULL "/dev/null" in vsnprintf() 441 nullfp = fopen(_PATH_DEVNULL, "w"); in vsnprintf()
|
| /freebsd-12.1/lib/libc/gen/ |
| H A D | daemon.c | 101 nullfd = _open(_PATH_DEVNULL, O_RDWR, 0); in daemon()
|
| /freebsd-12.1/contrib/netbsd-tests/lib/libc/net/ |
| H A D | h_dns_server.c | 195 (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-12.1/usr.bin/patch/ |
| H A D | util.c | 369 if (strnEQ(at, _PATH_DEVNULL, sizeof(_PATH_DEVNULL) - 1)) in fetchname()
|
| /freebsd-12.1/include/ |
| H A D | paths.h | 56 #define _PATH_DEVNULL "/dev/null" macro
|
| /freebsd-12.1/usr.sbin/bsnmpd/modules/snmp_hostres/ |
| H A D | hostres_snmp.c | 116 if ((hr_kd = kvm_open(NULL, _PATH_DEVNULL, NULL, O_RDONLY, in hostres_init()
|
| /freebsd-12.1/lib/libcasper/libcasper/ |
| H A D | service.c | 370 fd = open(_PATH_DEVNULL, O_RDWR); in stdnull() 372 errx(1, "Unable to open %s", _PATH_DEVNULL); in stdnull()
|