Home
last modified time | relevance | path

Searched refs:dup2 (Results 1 – 25 of 139) sorted by relevance

123456

/illumos-gate/usr/src/lib/libproc/common/
H A Dproc_stdio.c70 if (dup2(fd, 1) < 0) { in proc_initstdio()
81 (void) dup2(cached_stdout_fd, 1); in proc_initstdio()
89 if (dup2(fd, 2) < 0) { in proc_initstdio()
91 (void) dup2(cached_stdout_fd, 1); in proc_initstdio()
93 (void) dup2(cached_stderr_fd, 2); in proc_initstdio()
165 (void) dup2(cached_stdout_fd, 1); in proc_finistdio()
167 (void) dup2(cached_stderr_fd, 2); in proc_finistdio()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Ddaemon.c87 if ((fd != STDIN_FILENO) && (dup2(fd, STDIN_FILENO) < 0)) { in daemon()
91 if ((fd != STDOUT_FILENO) && (dup2(fd, STDOUT_FILENO) < 0)) { in daemon()
95 if ((fd != STDERR_FILENO) && (dup2(fd, STDERR_FILENO) < 0)) { in daemon()
H A Ddup.c44 #pragma weak _dup2 = dup2
46 dup2(int fildes, int fildes2) in dup2() function
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgexecv.c356 (void) dup2(n, STDIN_FILENO); in pkgexecv()
366 (void) dup2(n, STDIN_FILENO); in pkgexecv()
396 (void) dup2(n, STDOUT_FILENO); in pkgexecv()
411 (void) dup2(n, STDOUT_FILENO); in pkgexecv()
419 (void) dup2(STDOUT_FILENO, STDERR_FILENO); in pkgexecv()
H A Druncmd.c140 (void) dup2(ifd, STDIN_FILENO); in esystem()
144 (void) dup2(ofd, STDOUT_FILENO); in esystem()
149 (void) dup2(i, STDERR_FILENO); in esystem()
396 (void) dup2(stdinfile, STDIN_FILENO); in e_ExecCmdArray()
398 (void) dup2(ipipe[1], STDOUT_FILENO); in e_ExecCmdArray()
399 (void) dup2(ipipe[1], STDERR_FILENO); in e_ExecCmdArray()
/illumos-gate/usr/src/test/util-tests/tests/ctf/test-merge-dedup/
H A Dtest-merge-2.c24 int dup2; member
27 struct dup dup2; variable
H A Dtest-merge-1.c24 int dup2; member
H A Dtest-merge-3.c24 int dup2; member
H A Dtest-merge-dedup.c24 int dup2; member
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/
H A Dpassprompt.c63 (void) dup2(p[1], 3); in promptpass()
70 (void) dup2(red, 1); in promptpass()
71 (void) dup2(red, 2); in promptpass()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Ddup2.c28 NoN(dup2)
35 dup2(int d1, int d2)
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/slpd/
H A Dslpd.c218 (void) dup2(connfd, 0); in main()
220 (void) dup2(0, 1); in main()
221 (void) dup2(0, 2); in main()
/illumos-gate/usr/src/lib/libinstzones/common/
H A Dzones_exec.c241 (void) dup2(stdinfile, STDIN_FILENO); in z_ExecCmdArray()
243 (void) dup2(ipipe[1], STDOUT_FILENO); in z_ExecCmdArray()
244 (void) dup2(ipipe[1], STDERR_FILENO); in z_ExecCmdArray()
839 (void) dup2(stdinfile, STDIN_FILENO); in _z_zone_exec()
841 (void) dup2(ipipe[1], STDOUT_FILENO); in _z_zone_exec()
842 (void) dup2(ipipe[1], STDERR_FILENO); in _z_zone_exec()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dtrace.c94 (void) dup2(fileno(ftrace), 1); in traceon()
95 (void) dup2(fileno(ftrace), 2); in traceon()
106 (void) dup2(fileno(ftrace), 1); in traceonfp()
107 (void) dup2(fileno(ftrace), 2); in traceonfp()
/illumos-gate/usr/src/cmd/script/
H A Dscript.c210 (void) dup2(subsid, 0); in doshell()
211 (void) dup2(subsid, 1); in doshell()
212 (void) dup2(subsid, 2); in doshell()
/illumos-gate/usr/src/cmd/rpcsvc/
H A Drstat_main.c126 (void) dup2(i, 1); in main()
127 (void) dup2(i, 2); in main()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rexecd.c239 (void) dup2(f, 0); in doit()
240 (void) dup2(f, 1); in doit()
241 (void) dup2(f, 2); in doit()
414 (void) dup2(pv[1], 2); in doit()
/illumos-gate/usr/src/cmd/syseventd/daemons/syseventconfd/
H A Dsyseventconfd.c167 (void) dup2(fd, 1); in main()
168 (void) dup2(fd, 2); in main()
371 (void) dup2(0, 1); in exec_cmd()
372 (void) dup2(0, 2); in exec_cmd()
/illumos-gate/usr/src/tools/aw/
H A Daw.c279 if (dup2(pipein, 0) == -1 || in filter()
280 dup2(pipeout, 1) == -1) { in filter()
398 if (pipein >= 0 && dup2(pipein, 0) == -1) { in invoke()
402 if (pipeout >= 0 && dup2(pipeout, 1) == -1) { in invoke()
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dports.c114 dup2(fd, 1); in open_dialup()
254 dup2(fd, 1); in open_direct()
/illumos-gate/usr/src/cmd/stmfproxy/stmfproxy/
H A Dstmfproxy.c329 (void) dup2(devnull, STDIN_FILENO); in daemonInit()
330 (void) dup2(devnull, STDOUT_FILENO); in daemonInit()
331 (void) dup2(devnull, STDERR_FILENO); in daemonInit()
/illumos-gate/usr/src/cmd/enhance/
H A Denhance.c537 while(dup2(subsid, STDIN_FILENO) < 0 && errno==EINTR) in pty_child()
539 while(dup2(subsid, STDOUT_FILENO) < 0 && errno==EINTR) in pty_child()
541 while(dup2(subsid, STDERR_FILENO) < 0 && errno==EINTR) in pty_child()
/illumos-gate/usr/src/cmd/ypcmd/
H A Dypxfrd_svc.c248 (void) dup2(i, 1); in main()
249 (void) dup2(i, 2); in main()
/illumos-gate/usr/src/cmd/make/lib/mksh/
H A Ddosys.cc105 if (dup2(i, 1) == -1) { in redirect_io()
112 if (dup2(1, 2) == -1) { in redirect_io()
123 if (dup2(i, 2) == -1) { in redirect_io()
/illumos-gate/usr/src/cmd/hal/hald/
H A Dhald.c505 dup2 (dev_null_fd, 0); in main()
506 dup2 (dev_null_fd, 1); in main()
507 dup2 (dev_null_fd, 2); in main()

123456