Home
last modified time | relevance | path

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

123456

/titanic_41/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()
/titanic_41/usr/src/lib/libc/port/gen/
H A Ddaemon.c86 if ((fd != STDIN_FILENO) && (dup2(fd, STDIN_FILENO) < 0)) { in daemon()
90 if ((fd != STDOUT_FILENO) && (dup2(fd, STDOUT_FILENO) < 0)) { in daemon()
94 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
/titanic_41/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()
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/
H A Dpassprompt.c58 (void) dup2(p[1], 3); in promptpass()
65 (void) dup2(red, 1); in promptpass()
66 (void) dup2(red, 2); in promptpass()
/titanic_41/usr/src/lib/libast/common/comp/
H A Ddup2.c28 NoN(dup2)
35 dup2(int d1, int d2)
/titanic_41/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()
/titanic_41/usr/src/cmd/fs.d/cachefs/cfsd/
H A Dcfsd_main.c263 (void) dup2(xx, 1); in main()
264 (void) dup2(xx, 2); in main()
336 (void) dup2(xx, 1); in main()
337 (void) dup2(xx, 2); in main()
/titanic_41/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()
/titanic_41/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()
/titanic_41/usr/src/cmd/script/
H A Dscript.c210 (void) dup2(slave, 0); in doshell()
211 (void) dup2(slave, 1); in doshell()
212 (void) dup2(slave, 2); in doshell()
/titanic_41/usr/src/cmd/rpcsvc/
H A Drstat_main.c126 (void) dup2(i, 1); in main()
127 (void) dup2(i, 2); in main()
/titanic_41/usr/src/cmd/ssh/libssh/common/
H A Dentropy.c84 dup2(devnull, STDIN_FILENO); in seed_rng()
85 dup2(p[1], STDOUT_FILENO); in seed_rng()
/titanic_41/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()
/titanic_41/usr/src/cmd/lp/cmd/lpsched/
H A Dports.c105 dup2(fd, 1); in open_dialup()
245 dup2(fd, 1); in open_direct()
/titanic_41/usr/src/cmd/syseventd/daemons/syseventconfd/
H A Dsyseventconfd.c169 (void) dup2(fd, 1); in main()
170 (void) dup2(fd, 2); in main()
373 (void) dup2(0, 1); in exec_cmd()
374 (void) dup2(0, 2); in exec_cmd()
/titanic_41/usr/src/tools/aw/
H A Daw.c279 if (dup2(pipein, 0) == -1 || in filter()
280 dup2(pipeout, 1) == -1) { in filter()
397 if (pipein >= 0 && dup2(pipein, 0) == -1) { in invoke()
401 if (pipeout >= 0 && dup2(pipeout, 1) == -1) { in invoke()
/titanic_41/usr/src/cmd/enhance/
H A Denhance.c539 while(dup2(slave, STDIN_FILENO) < 0 && errno==EINTR) in pty_child()
541 while(dup2(slave, STDOUT_FILENO) < 0 && errno==EINTR) in pty_child()
543 while(dup2(slave, STDERR_FILENO) < 0 && errno==EINTR) in pty_child()
/titanic_41/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()
/titanic_41/usr/src/cmd/ypcmd/
H A Dypxfrd_svc.c248 (void) dup2(i, 1); in main()
249 (void) dup2(i, 2); in main()
/titanic_41/usr/src/cmd/lvm/rpc.mdcommd/
H A Dmddoors.c227 (void) dup2(i, 1); in main()
228 (void) dup2(i, 2); in main()
/titanic_41/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()
/titanic_41/usr/src/cmd/hal/hald/
H A Dhald.c508 dup2 (dev_null_fd, 0); in main()
509 dup2 (dev_null_fd, 1); in main()
510 dup2 (dev_null_fd, 2); in main()
/titanic_41/usr/src/lib/libbc/libc/sys/common/
H A Ddup2.c37 dup2( in dup2() function

123456