/freebsd/lib/libc/tests/stdio/ |
H A D | freopen_test.c | 63 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 D | fopen_test.c | 77 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 D | fdopen_test.c | 65 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 D | pathnames.h | 98 #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 D | pathnames.h | 40 #ifndef _PATH_DEVNULL 41 #define _PATH_DEVNULL "/dev/null" macro
|
/freebsd/lib/libcasper/libcasper/ |
H A D | libcasper_impl.c | 56 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 D | service.c | 367 fd = open(_PATH_DEVNULL, O_RDWR); in stdnull() 369 errx(1, "Unable to open %s", _PATH_DEVNULL); in stdnull()
|
/freebsd/sbin/hastd/ |
H A D | hooks.c | 105 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 D | popen.c | 121 (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 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/usr.sbin/autofs/ |
H A D | popen.c | 82 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 D | pw_group.c | 285 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 D | main.c | 186 kd = kvm_openfiles(_PATH_DEVNULL, _PATH_DEVNULL, _PATH_DEVNULL, in main()
|
/freebsd/usr.sbin/bluetooth/btpand/ |
H A D | btpand.c | 253 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 D | daemon.c | 71 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) { in daemon()
|
/freebsd/tests/sys/file/ |
H A D | closefrom_test.c | 134 fd = open(_PATH_DEVNULL, O_RDONLY); in devnull() 136 fail_err("open(\" "_PATH_DEVNULL" \")"); in devnull()
|
/freebsd/lib/libc/gen/ |
H A D | daemon.c | 97 nullfd = _open(_PATH_DEVNULL, O_RDWR, 0); in daemon()
|
/freebsd/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/usr.bin/patch/ |
H A D | util.c | 368 if (strnEQ(at, _PATH_DEVNULL, sizeof(_PATH_DEVNULL) - 1)) { in fetchname()
|
/freebsd/contrib/bmake/ |
H A D | util.c | 402 #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 D | hostres_snmp.c | 114 if ((hr_kd = kvm_open(NULL, _PATH_DEVNULL, NULL, O_RDONLY, in hostres_init()
|
/freebsd/include/ |
H A D | paths.h | 56 #define _PATH_DEVNULL "/dev/null" macro
|
/freebsd/sbin/dumpon/ |
H A D | dumpon.c | 396 (void)strlcpy(dumpdev, _PATH_DEVNULL, sizeof(dumpdev)); in listdumpdev() 582 dev = _PATH_DEVNULL; in main() 587 if (strcmp(dev, _PATH_DEVNULL) == 0) { in main()
|