Home
last modified time | relevance | path

Searched refs:nullfd (Results 1 – 25 of 168) sorted by relevance

1234567

/dports/security/tor/tor-0.4.6.8/src/lib/process/
H A Ddaemon.c123 int nullfd; in finish_daemon() local
139 nullfd = tor_open_cloexec("/dev/null", O_RDWR, 0); in finish_daemon()
140 if (nullfd < 0) { in finish_daemon()
150 if (dup2(nullfd,0) < 0 || in finish_daemon()
151 dup2(nullfd,1) < 0 || in finish_daemon()
152 dup2(nullfd,2) < 0) { in finish_daemon()
158 if (nullfd > 2) in finish_daemon()
159 close(nullfd); in finish_daemon()
/dports/security/tor-devel/tor-0.4.7.2-alpha/src/lib/process/
H A Ddaemon.c123 int nullfd; in finish_daemon() local
139 nullfd = tor_open_cloexec("/dev/null", O_RDWR, 0); in finish_daemon()
140 if (nullfd < 0) { in finish_daemon()
150 if (dup2(nullfd,0) < 0 || in finish_daemon()
151 dup2(nullfd,1) < 0 || in finish_daemon()
152 dup2(nullfd,2) < 0) { in finish_daemon()
158 if (nullfd > 2) in finish_daemon()
159 close(nullfd); in finish_daemon()
/dports/ftp/tftp-hpa/tftp-hpa-5.2/lib/
H A Ddaemon.c9 int nullfd; in daemon() local
18 if ((nullfd = open("/dev/null", O_RDWR)) < 0 || in daemon()
19 dup2(nullfd, 0) < 0 || in daemon()
20 dup2(nullfd, 1) < 0 || dup2(nullfd, 2) < 0) in daemon()
22 close(nullfd); in daemon()
/dports/misc/amanda-server/amanda-3.3.9/ndmp-src/
H A Dndma_data_pfe.c51 int nullfd; in ndmda_pipe_fork_exec() local
56 nullfd = open ("/dev/null", 2); in ndmda_pipe_fork_exec()
57 if (nullfd < 0) { in ndmda_pipe_fork_exec()
63 close (nullfd); in ndmda_pipe_fork_exec()
69 close (nullfd); in ndmda_pipe_fork_exec()
77 close (nullfd); in ndmda_pipe_fork_exec()
87 close (nullfd); in ndmda_pipe_fork_exec()
105 dup2 (nullfd, 0); in ndmda_pipe_fork_exec()
110 dup2 (nullfd, 1); in ndmda_pipe_fork_exec()
131 close (nullfd); in ndmda_pipe_fork_exec()
/dports/misc/amanda-client/amanda-3.3.9/ndmp-src/
H A Dndma_data_pfe.c51 int nullfd; in ndmda_pipe_fork_exec() local
56 nullfd = open ("/dev/null", 2); in ndmda_pipe_fork_exec()
57 if (nullfd < 0) { in ndmda_pipe_fork_exec()
63 close (nullfd); in ndmda_pipe_fork_exec()
69 close (nullfd); in ndmda_pipe_fork_exec()
77 close (nullfd); in ndmda_pipe_fork_exec()
87 close (nullfd); in ndmda_pipe_fork_exec()
105 dup2 (nullfd, 0); in ndmda_pipe_fork_exec()
110 dup2 (nullfd, 1); in ndmda_pipe_fork_exec()
131 close (nullfd); in ndmda_pipe_fork_exec()
/dports/www/bareos19-webui/bareos-Release-19.2.11/core/src/ndmp/
H A Dndma_data_pfe.c50 int nullfd; in ndmda_pipe_fork_exec() local
55 nullfd = open("/dev/null", 2); in ndmda_pipe_fork_exec()
56 if (nullfd < 0) { return rc; } in ndmda_pipe_fork_exec()
60 close(nullfd); in ndmda_pipe_fork_exec()
66 close(nullfd); in ndmda_pipe_fork_exec()
74 close(nullfd); in ndmda_pipe_fork_exec()
84 close(nullfd); in ndmda_pipe_fork_exec()
102 dup2(nullfd, 0); in ndmda_pipe_fork_exec()
107 dup2(nullfd, 1); in ndmda_pipe_fork_exec()
126 close(nullfd); in ndmda_pipe_fork_exec()
/dports/sysutils/bareos-traymonitor/bareos-Release-20.0.3/core/src/ndmp/
H A Dndma_data_pfe.c50 int nullfd; in ndmda_pipe_fork_exec() local
55 nullfd = open("/dev/null", 2); in ndmda_pipe_fork_exec()
56 if (nullfd < 0) { return rc; } in ndmda_pipe_fork_exec()
60 close(nullfd); in ndmda_pipe_fork_exec()
66 close(nullfd); in ndmda_pipe_fork_exec()
74 close(nullfd); in ndmda_pipe_fork_exec()
84 close(nullfd); in ndmda_pipe_fork_exec()
102 dup2(nullfd, 0); in ndmda_pipe_fork_exec()
107 dup2(nullfd, 1); in ndmda_pipe_fork_exec()
126 close(nullfd); in ndmda_pipe_fork_exec()
/dports/sysutils/bareos18-client/bareos-Release-18.2.12/core/src/ndmp/
H A Dndma_data_pfe.c51 int nullfd; in ndmda_pipe_fork_exec() local
56 nullfd = open ("/dev/null", 2); in ndmda_pipe_fork_exec()
57 if (nullfd < 0) { in ndmda_pipe_fork_exec()
63 close (nullfd); in ndmda_pipe_fork_exec()
69 close (nullfd); in ndmda_pipe_fork_exec()
77 close (nullfd); in ndmda_pipe_fork_exec()
87 close (nullfd); in ndmda_pipe_fork_exec()
105 dup2 (nullfd, 0); in ndmda_pipe_fork_exec()
110 dup2 (nullfd, 1); in ndmda_pipe_fork_exec()
131 close (nullfd); in ndmda_pipe_fork_exec()
/dports/sysutils/bareos19-traymonitor/bareos-Release-19.2.11/core/src/ndmp/
H A Dndma_data_pfe.c50 int nullfd; in ndmda_pipe_fork_exec() local
55 nullfd = open("/dev/null", 2); in ndmda_pipe_fork_exec()
56 if (nullfd < 0) { return rc; } in ndmda_pipe_fork_exec()
60 close(nullfd); in ndmda_pipe_fork_exec()
66 close(nullfd); in ndmda_pipe_fork_exec()
74 close(nullfd); in ndmda_pipe_fork_exec()
84 close(nullfd); in ndmda_pipe_fork_exec()
102 dup2(nullfd, 0); in ndmda_pipe_fork_exec()
107 dup2(nullfd, 1); in ndmda_pipe_fork_exec()
126 close(nullfd); in ndmda_pipe_fork_exec()
/dports/sysutils/bareos19-client/bareos-Release-19.2.11/core/src/ndmp/
H A Dndma_data_pfe.c50 int nullfd; in ndmda_pipe_fork_exec() local
55 nullfd = open("/dev/null", 2); in ndmda_pipe_fork_exec()
56 if (nullfd < 0) { return rc; } in ndmda_pipe_fork_exec()
60 close(nullfd); in ndmda_pipe_fork_exec()
66 close(nullfd); in ndmda_pipe_fork_exec()
74 close(nullfd); in ndmda_pipe_fork_exec()
84 close(nullfd); in ndmda_pipe_fork_exec()
102 dup2(nullfd, 0); in ndmda_pipe_fork_exec()
107 dup2(nullfd, 1); in ndmda_pipe_fork_exec()
126 close(nullfd); in ndmda_pipe_fork_exec()
/dports/sysutils/bareos-client/bareos-Release-20.0.3/core/src/ndmp/
H A Dndma_data_pfe.c50 int nullfd; in ndmda_pipe_fork_exec() local
55 nullfd = open("/dev/null", 2); in ndmda_pipe_fork_exec()
56 if (nullfd < 0) { return rc; } in ndmda_pipe_fork_exec()
60 close(nullfd); in ndmda_pipe_fork_exec()
66 close(nullfd); in ndmda_pipe_fork_exec()
74 close(nullfd); in ndmda_pipe_fork_exec()
84 close(nullfd); in ndmda_pipe_fork_exec()
102 dup2(nullfd, 0); in ndmda_pipe_fork_exec()
107 dup2(nullfd, 1); in ndmda_pipe_fork_exec()
126 close(nullfd); in ndmda_pipe_fork_exec()
/dports/sysutils/bareos18-traymonitor/bareos-Release-18.2.12/core/src/ndmp/
H A Dndma_data_pfe.c51 int nullfd; in ndmda_pipe_fork_exec() local
56 nullfd = open ("/dev/null", 2); in ndmda_pipe_fork_exec()
57 if (nullfd < 0) { in ndmda_pipe_fork_exec()
63 close (nullfd); in ndmda_pipe_fork_exec()
69 close (nullfd); in ndmda_pipe_fork_exec()
77 close (nullfd); in ndmda_pipe_fork_exec()
87 close (nullfd); in ndmda_pipe_fork_exec()
105 dup2 (nullfd, 0); in ndmda_pipe_fork_exec()
110 dup2 (nullfd, 1); in ndmda_pipe_fork_exec()
131 close (nullfd); in ndmda_pipe_fork_exec()
/dports/sysutils/bareos-server/bareos-Release-20.0.3/core/src/ndmp/
H A Dndma_data_pfe.c50 int nullfd; in ndmda_pipe_fork_exec() local
55 nullfd = open("/dev/null", 2); in ndmda_pipe_fork_exec()
56 if (nullfd < 0) { return rc; } in ndmda_pipe_fork_exec()
60 close(nullfd); in ndmda_pipe_fork_exec()
66 close(nullfd); in ndmda_pipe_fork_exec()
74 close(nullfd); in ndmda_pipe_fork_exec()
84 close(nullfd); in ndmda_pipe_fork_exec()
102 dup2(nullfd, 0); in ndmda_pipe_fork_exec()
107 dup2(nullfd, 1); in ndmda_pipe_fork_exec()
126 close(nullfd); in ndmda_pipe_fork_exec()
/dports/sysutils/bareos18-server/bareos-Release-18.2.12/core/src/ndmp/
H A Dndma_data_pfe.c51 int nullfd; in ndmda_pipe_fork_exec() local
56 nullfd = open ("/dev/null", 2); in ndmda_pipe_fork_exec()
57 if (nullfd < 0) { in ndmda_pipe_fork_exec()
63 close (nullfd); in ndmda_pipe_fork_exec()
69 close (nullfd); in ndmda_pipe_fork_exec()
77 close (nullfd); in ndmda_pipe_fork_exec()
87 close (nullfd); in ndmda_pipe_fork_exec()
105 dup2 (nullfd, 0); in ndmda_pipe_fork_exec()
110 dup2 (nullfd, 1); in ndmda_pipe_fork_exec()
131 close (nullfd); in ndmda_pipe_fork_exec()
/dports/sysutils/bareos19-server/bareos-Release-19.2.11/core/src/ndmp/
H A Dndma_data_pfe.c50 int nullfd; in ndmda_pipe_fork_exec() local
55 nullfd = open("/dev/null", 2); in ndmda_pipe_fork_exec()
56 if (nullfd < 0) { return rc; } in ndmda_pipe_fork_exec()
60 close(nullfd); in ndmda_pipe_fork_exec()
66 close(nullfd); in ndmda_pipe_fork_exec()
74 close(nullfd); in ndmda_pipe_fork_exec()
84 close(nullfd); in ndmda_pipe_fork_exec()
102 dup2(nullfd, 0); in ndmda_pipe_fork_exec()
107 dup2(nullfd, 1); in ndmda_pipe_fork_exec()
126 close(nullfd); in ndmda_pipe_fork_exec()
/dports/www/bareos18-webui/bareos-Release-18.2.12/core/src/ndmp/
H A Dndma_data_pfe.c51 int nullfd; in ndmda_pipe_fork_exec() local
56 nullfd = open ("/dev/null", 2); in ndmda_pipe_fork_exec()
57 if (nullfd < 0) { in ndmda_pipe_fork_exec()
63 close (nullfd); in ndmda_pipe_fork_exec()
69 close (nullfd); in ndmda_pipe_fork_exec()
77 close (nullfd); in ndmda_pipe_fork_exec()
87 close (nullfd); in ndmda_pipe_fork_exec()
105 dup2 (nullfd, 0); in ndmda_pipe_fork_exec()
110 dup2 (nullfd, 1); in ndmda_pipe_fork_exec()
131 close (nullfd); in ndmda_pipe_fork_exec()
/dports/www/bareos-webui/bareos-Release-20.0.3/core/src/ndmp/
H A Dndma_data_pfe.c50 int nullfd; in ndmda_pipe_fork_exec() local
55 nullfd = open("/dev/null", 2); in ndmda_pipe_fork_exec()
56 if (nullfd < 0) { return rc; } in ndmda_pipe_fork_exec()
60 close(nullfd); in ndmda_pipe_fork_exec()
66 close(nullfd); in ndmda_pipe_fork_exec()
74 close(nullfd); in ndmda_pipe_fork_exec()
84 close(nullfd); in ndmda_pipe_fork_exec()
102 dup2(nullfd, 0); in ndmda_pipe_fork_exec()
107 dup2(nullfd, 1); in ndmda_pipe_fork_exec()
126 close(nullfd); in ndmda_pipe_fork_exec()
/dports/lang/libhx/libHX-3.25/src/
H A Dproc.c115 int pipes[3][2], nullfd = -1, ret, saved_errno; in HXproc_run_async() local
134 if ((nullfd = open(NULL_DEVICE, O_RDWR)) < 0) in HXproc_run_async()
139 if (nullfd >= 0) in HXproc_run_async()
140 close(nullfd); in HXproc_run_async()
152 if (nullfd >= 0) in HXproc_run_async()
153 close(nullfd); in HXproc_run_async()
168 proc->p_stdin = dup(nullfd); in HXproc_run_async()
172 proc->p_stdout = dup(nullfd); in HXproc_run_async()
176 proc->p_stderr = dup(nullfd); in HXproc_run_async()
200 if (nullfd >= 0) in HXproc_run_async()
[all …]
/dports/x11-fonts/xfs/xfs-1.2.0/os/
H A Ddaemon.c85 int nullfd; in DetachStdio() local
93 nullfd = open ("/dev/null", O_RDWR); in DetachStdio()
94 if (nullfd != 0) { in DetachStdio()
95 dup2(nullfd, 0); in DetachStdio()
96 close(nullfd); in DetachStdio()
H A Derror.c107 int nullfd; in CloseErrors() local
122 nullfd = open ("/dev/null", O_RDWR); in CloseErrors()
123 if (nullfd != 2) { in CloseErrors()
124 dup2 (nullfd, 2); in CloseErrors()
125 close(nullfd); in CloseErrors()
/dports/audio/bristol/bristol-0.60.10/bin/
H A Dbristoljackstats.c73 int outfd, nullfd; in main() local
82 nullfd = open("/dev/null", O_WRONLY); in main()
83 dup2(nullfd, STDOUT_FILENO); in main()
84 dup2(nullfd, STDERR_FILENO); in main()
91 nullfd = write(outfd, lbuf, strlen(lbuf)); in main()
/dports/security/keybase/client-v5.7.1/go/libcmdline/
H A Dfork_nix.go31 nullfd := devnull.Fd()
32 files = append(files, nullfd, nullfd, nullfd)
H A Dfork_windows.go40 nullfd := devnull.Fd()
41 files = append(files, nullfd, nullfd, nullfd)
/dports/devel/m4/m4-1.4.19/tests/
H A Dfreopen.c78 int nullfd = open (null_device, O_RDONLY | O_CLOEXEC); in rpl_freopen() local
80 if (nullfd != fd) in rpl_freopen()
82 if (dup2 (nullfd, fd) < 0) in rpl_freopen()
84 close (nullfd); in rpl_freopen()
/dports/sysutils/coreutils/coreutils-8.32/lib/
H A Dfreopen.c78 int nullfd = open (null_device, O_RDONLY | O_CLOEXEC); in rpl_freopen() local
80 if (nullfd != fd) in rpl_freopen()
82 if (dup2 (nullfd, fd) < 0) in rpl_freopen()
84 close (nullfd); in rpl_freopen()

1234567