Searched refs:devnull (Results 1 - 19 of 19) sorted by relevance

/freebsd-current/crypto/openssl/test/recipes/
H A D04-test_provider_fallback.t16 $ENV{OPENSSL_CONF} = File::Spec->devnull();
H A D04-test_provider_pkey.t16 $ENV{OPENSSL_CONF} = File::Spec->devnull();
H A D15-test_out_option.t65 my $path = File::Spec->canonpath(File::Spec->devnull());
H A D01-test_symbol_presence.t11 use File::Spec::Functions qw(devnull);
50 open STDERR, ">", devnull();
51 open STDOUT, ">", devnull();
H A D80-test_ocsp.t14 use File::Spec::Functions qw/devnull catfile/;
/freebsd-current/sys/contrib/openzfs/cmd/zed/
H A Dzed.c189 int devnull; local
192 devnull = open("/dev/null", O_RDWR);
193 if (devnull < 0)
196 if (dup2(devnull, STDIN_FILENO) < 0)
200 if (dup2(devnull, STDOUT_FILENO) < 0)
204 if (dup2(devnull, STDERR_FILENO) < 0)
208 if ((devnull > STDERR_FILENO) && (close(devnull) < 0))
/freebsd-current/crypto/openssh/regress/misc/fuzz-harness/
H A Dagent_fuzz_helper.c136 reset_sockettab(int devnull) argument
141 if ((fd = dup(devnull)) == -1) {
154 static int devnull = -1; local
157 if (devnull == -1) {
160 devnull = devnull_or_die();
166 reset_sockettab(devnull);
/freebsd-current/tests/sys/file/
H A Dclosefrom_test.c130 devnull(void) function
150 start = devnull();
170 (void)devnull();
274 (void)devnull();
328 (void)devnull();
/freebsd-current/contrib/wpa/src/utils/
H A Dos_unix.c196 int devnull; local
201 devnull = open("/dev/null", O_RDWR);
202 if (devnull < 0)
205 if (dup2(devnull, STDIN_FILENO) < 0) {
206 close(devnull);
210 if (dup2(devnull, STDOUT_FILENO) < 0) {
211 close(devnull);
215 if (dup2(devnull, STDERR_FILENO) < 0) {
216 close(devnull);
/freebsd-current/contrib/netbsd-tests/fs/common/
H A Dfstest_nfs.c84 int devnull; local
132 if (read(pipes[0], &devnull, 4) == -1)
/freebsd-current/crypto/openssl/ssl/statem/
H A Dstatem_dtls.c641 unsigned char devnull[256]; local
645 devnull,
647 sizeof(devnull) ? sizeof(devnull) :
738 unsigned char devnull[256]; local
742 devnull,
744 sizeof(devnull) ? sizeof(devnull) :
/freebsd-current/usr.bin/xinstall/
H A Dxinstall.c806 int devnull, files_match, from_fd, serrno, stripped, target; local
832 devnull = 0;
834 devnull = 1;
849 if (!devnull && (from_fd = open(from_name, O_RDONLY, 0)) < 0)
856 if (devnull)
873 if (!devnull) {
997 if (dopreserve && !files_match && !devnull) {
1050 if (!dounpriv && !devnull && (flags & SETFLAGS ||
1068 if (!devnull)
/freebsd-current/tests/sys/kern/
H A Dunix_passfd_test.c77 devnull(int *fdp) function
621 devnull(&putfd);
749 devnull(&putfd);
841 devnull(&putfd);
883 devnull(&putfd);
/freebsd-current/crypto/openssh/
H A Dmisc.c2683 int devnull, ret = 0; local
2685 if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) {
2690 if ((do_stdin && dup2(devnull, STDIN_FILENO) == -1) ||
2691 (do_stdout && dup2(devnull, STDOUT_FILENO) == -1) ||
2692 (do_stderr && dup2(devnull, STDERR_FILENO) == -1)) {
2696 if (devnull > STDERR_FILENO)
2697 close(devnull);
2717 int fd, devnull, p[2], i; local
2802 if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) {
2807 if (dup2(devnull, STDIN_FILEN
[all...]
/freebsd-current/contrib/one-true-awk/
H A Dmakefile107 cd testdir; rm -fr arnold-fixes beebe devnull echo foo* \
/freebsd-current/usr.sbin/traceroute/
H A Dtraceroute.c319 static const char devnull[] = "/dev/null"; variable
506 if (open(devnull, O_RDONLY) < 0 ||
507 open(devnull, O_RDONLY) < 0 ||
508 open(devnull, O_RDONLY) < 0) {
510 prog, devnull, strerror(errno));
/freebsd-current/crypto/openssl/util/perl/OpenSSL/
H A DTest.pm68 catdir catfile splitpath catpath devnull abs2rel/;
460 open STDOUT, ">", devnull();
461 open STDERR, ">", devnull();
1253 my $null = devnull();
H A Dconfig.pm62 my $nul = File::Spec->devnull();
/freebsd-current/sys/kern/
H A Dkern_descrip.c2740 int i, error, devnull; local
2746 devnull = -1;
2752 if (devnull != -1) {
2753 error = kern_dup(td, FDDUP_FIXED, 0, devnull, i);
2758 devnull = td->td_retval[0];
2759 KASSERT(devnull == i, ("we didn't get our fd"));

Completed in 374 milliseconds