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

123

/freebsd-11.0-release/crypto/heimdal/appl/ftp/ftpd/
H A Dpathnames.h40 #ifndef _PATH_DEVNULL
41 #define _PATH_DEVNULL "/dev/null" macro
/freebsd-11.0-release/lib/libc/tests/stdio/
H A Dfreopen_test.c66 runtest(_PATH_DEVNULL, "r", NULL, "r", true);
73 runtest(_PATH_DEVNULL, "w", NULL, "r", false);
80 runtest(_PATH_DEVNULL, "r+", NULL, "r", true);
87 runtest(_PATH_DEVNULL, "r", NULL, "w", false);
94 runtest(_PATH_DEVNULL, "w", NULL, "w", true);
101 runtest(_PATH_DEVNULL, "r+", NULL, "w", true);
108 runtest(_PATH_DEVNULL, "r", NULL, "a", false);
115 runtest(_PATH_DEVNULL, "w", NULL, "a", true);
122 runtest(_PATH_DEVNULL, "r+", NULL, "a", true);
129 runtest(_PATH_DEVNULL, "
[all...]
H A Dfdopen_test.c68 runtest(_PATH_DEVNULL, O_RDONLY, "r", true);
75 runtest(_PATH_DEVNULL, O_WRONLY, "r", false);
82 runtest(_PATH_DEVNULL, O_RDWR, "r", true);
89 runtest(_PATH_DEVNULL, O_RDONLY, "w", false);
96 runtest(_PATH_DEVNULL, O_WRONLY, "w", true);
103 runtest(_PATH_DEVNULL, O_RDWR, "w", true);
110 runtest(_PATH_DEVNULL, O_RDONLY, "a", false);
117 runtest(_PATH_DEVNULL, O_WRONLY, "a", true);
124 runtest(_PATH_DEVNULL, O_RDWR, "a", true);
131 runtest(_PATH_DEVNULL, O_RDONL
[all...]
H A Dfopen_test.c80 runtest(_PATH_DEVNULL, "r");
87 runtest(_PATH_DEVNULL, "r+");
94 runtest(_PATH_DEVNULL, "w");
101 runtest(_PATH_DEVNULL, "w+");
108 runtest(_PATH_DEVNULL, "a");
115 runtest(_PATH_DEVNULL, "a+");
122 runtest(_PATH_DEVNULL, "re");
129 runtest(_PATH_DEVNULL, "r+e");
136 runtest(_PATH_DEVNULL, "we");
143 runtest(_PATH_DEVNULL, "
[all...]
/freebsd-11.0-release/contrib/tcsh/
H A Dpathnames.h99 #if defined(__EMX__) && !defined(_PATH_DEVNULL)
100 # define _PATH_DEVNULL "nul" macro
101 #endif /* __EMX__ && !_PATH_DEVNULL */
135 #ifndef _PATH_DEVNULL
136 # define _PATH_DEVNULL "/dev/null" macro
137 #endif /* !_PATH_DEVNULL */
/freebsd-11.0-release/crypto/openssh/openbsd-compat/
H A Ddaemon.c71 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
/freebsd-11.0-release/crypto/heimdal/lib/roken/
H A Ddaemon.c70 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
H A Dsimple_exec.c177 in_fd[0] = open(_PATH_DEVNULL, O_RDONLY);
179 out_fd[1] = open(_PATH_DEVNULL, O_WRONLY);
181 err_fd[1] = open(_PATH_DEVNULL, O_WRONLY);
H A Droken-common.h131 #ifndef _PATH_DEVNULL
132 #define _PATH_DEVNULL "/dev/null" macro
/freebsd-11.0-release/contrib/opie/
H A Dopie_cfg.h129 #ifndef _PATH_DEVNULL
130 #define _PATH_DEVNULL "/dev/null" macro
/freebsd-11.0-release/sbin/dumpon/
H A Ddumpon.c117 printf("%s\n", _PATH_DEVNULL);
181 fd = open(_PATH_DEVNULL, O_RDONLY);
183 err(EX_OSFILE, "%s", _PATH_DEVNULL);
/freebsd-11.0-release/usr.sbin/cron/lib/
H A Dcompat.c121 (void) close(STDIN); (void) open(_PATH_DEVNULL, 0);
122 (void) close(STDOUT); (void) open(_PATH_DEVNULL, 1);
123 (void) close(STDERR); (void) open(_PATH_DEVNULL, 2);
/freebsd-11.0-release/lib/libc/gen/
H A Ddaemon.c87 if (!noclose && (fd = _open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
/freebsd-11.0-release/usr.sbin/cron/cron/
H A Dpopen.c133 (void)open(_PATH_DEVNULL, O_RDWR);
147 (void)open(_PATH_DEVNULL, O_RDWR);
149 (void)open(_PATH_DEVNULL, O_RDWR);
/freebsd-11.0-release/include/
H A Dpaths.h54 #define _PATH_DEVNULL "/dev/null" macro
/freebsd-11.0-release/sbin/hastd/
H A Dhooks.c106 fd = open(_PATH_DEVNULL, O_RDONLY);
109 _PATH_DEVNULL);
117 fd = open(_PATH_DEVNULL, O_WRONLY);
120 _PATH_DEVNULL);
/freebsd-11.0-release/tests/sys/file/
H A Dclosefrom_test.c136 fd = open(_PATH_DEVNULL, O_RDONLY);
138 fail_err("open(\" "_PATH_DEVNULL" \")");
/freebsd-11.0-release/usr.sbin/autofs/
H A Dpopen.c83 nullfd = open(_PATH_DEVNULL, O_RDWR, 0);
85 log_err(1, "cannot open %s", _PATH_DEVNULL);
/freebsd-11.0-release/usr.sbin/bluetooth/btpand/
H A Dbtpand.c253 fd = open(_PATH_DEVNULL, O_RDWR, 0);
255 log_err("Could not open %s", _PATH_DEVNULL);
/freebsd-11.0-release/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_snmp.c114 if ((hr_kd = kvm_open(NULL, _PATH_DEVNULL, NULL, O_RDONLY,
/freebsd-11.0-release/usr.bin/systat/
H A Dmain.c181 kd = kvm_openfiles(_PATH_DEVNULL, _PATH_DEVNULL, _PATH_DEVNULL,
/freebsd-11.0-release/contrib/netbsd-tests/lib/libc/c063/
H A Dt_mknodat.c57 if (stat(_PATH_DEVNULL, &st) != 0)
/freebsd-11.0-release/contrib/netbsd-tests/lib/libc/net/
H A Dh_dns_server.c195 (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
244 if (!noclose && (fd = open(_PATH_DEVNULL, O_RDWR, 0)) != -1) {
/freebsd-11.0-release/usr.bin/patch/
H A Dutil.c369 if (strnEQ(at, _PATH_DEVNULL, sizeof(_PATH_DEVNULL) - 1))
/freebsd-11.0-release/usr.sbin/pw/
H A Dpw_group.c276 freopen(_PATH_DEVNULL, "w", stderr);
333 freopen(_PATH_DEVNULL, "w", stderr);
390 freopen(_PATH_DEVNULL, "w", stderr);
548 freopen(_PATH_DEVNULL, "w", stderr);
639 freopen(_PATH_DEVNULL, "w", stderr);

Completed in 140 milliseconds

123