/titanic_41/usr/src/lib/libproc/common/ |
H A D | proc_stdio.c | 70 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 D | daemon.c | 86 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 D | dup.c | 44 #pragma weak _dup2 = dup2 46 dup2(int fildes, int fildes2) in dup2() function
|
/titanic_41/usr/src/lib/libpkg/common/ |
H A D | pkgexecv.c | 356 (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 D | runcmd.c | 140 (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 D | passprompt.c | 58 (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 D | dup2.c | 28 NoN(dup2) 35 dup2(int d1, int d2)
|
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/slpd/ |
H A D | slpd.c | 218 (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 D | cfsd_main.c | 263 (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 D | trace.c | 94 (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 D | zones_exec.c | 241 (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 D | script.c | 210 (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 D | rstat_main.c | 126 (void) dup2(i, 1); in main() 127 (void) dup2(i, 2); in main()
|
/titanic_41/usr/src/cmd/ssh/libssh/common/ |
H A D | entropy.c | 84 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 D | in.rexecd.c | 239 (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 D | ports.c | 105 dup2(fd, 1); in open_dialup() 245 dup2(fd, 1); in open_direct()
|
/titanic_41/usr/src/cmd/syseventd/daemons/syseventconfd/ |
H A D | syseventconfd.c | 169 (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 D | aw.c | 279 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 D | enhance.c | 539 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 D | stmfproxy.c | 329 (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 D | ypxfrd_svc.c | 248 (void) dup2(i, 1); in main() 249 (void) dup2(i, 2); in main()
|
/titanic_41/usr/src/cmd/lvm/rpc.mdcommd/ |
H A D | mddoors.c | 227 (void) dup2(i, 1); in main() 228 (void) dup2(i, 2); in main()
|
/titanic_41/usr/src/cmd/make/lib/mksh/ |
H A D | dosys.cc | 105 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 D | hald.c | 508 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 D | dup2.c | 37 dup2( in dup2() function
|