Searched refs:dup2 (Results 1 - 25 of 127) sorted by relevance

123456

/illumos-gate/usr/src/lib/libast/common/comp/
H A Ddup2.c28 NoN(dup2)
35 dup2(int d1, int d2)
H A Dfcntl.c66 op = dup2(fd, n);
/illumos-gate/usr/src/lib/libproc/common/
H A Dproc_stdio.c70 if (dup2(fd, 1) < 0) {
81 (void) dup2(cached_stdout_fd, 1);
89 if (dup2(fd, 2) < 0) {
91 (void) dup2(cached_stdout_fd, 1);
93 (void) dup2(cached_stderr_fd, 2);
165 (void) dup2(cached_stdout_fd, 1);
167 (void) dup2(cached_stderr_fd, 2);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Ddaemon.c86 if ((fd != STDIN_FILENO) && (dup2(fd, STDIN_FILENO) < 0)) {
90 if ((fd != STDOUT_FILENO) && (dup2(fd, STDOUT_FILENO) < 0)) {
94 if ((fd != STDERR_FILENO) && (dup2(fd, STDERR_FILENO) < 0)) {
H A Ddup.c44 #pragma weak _dup2 = dup2
46 dup2(int fildes, int fildes2) function
63 * This call differs from dup2 such that it is an error when
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/
H A Dpassprompt.c58 (void) dup2(p[1], 3);
65 (void) dup2(red, 1);
66 (void) dup2(red, 2);
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Ddup2.c37 dup2( function
/illumos-gate/usr/src/lib/libpkg/common/
H A Dpkgexecv.c356 (void) dup2(n, STDIN_FILENO);
366 (void) dup2(n, STDIN_FILENO);
396 (void) dup2(n, STDOUT_FILENO);
411 (void) dup2(n, STDOUT_FILENO);
419 (void) dup2(STDOUT_FILENO, STDERR_FILENO);
H A Druncmd.c140 (void) dup2(ifd, STDIN_FILENO);
144 (void) dup2(ofd, STDOUT_FILENO);
149 (void) dup2(i, STDERR_FILENO);
396 (void) dup2(stdinfile, STDIN_FILENO);
398 (void) dup2(ipipe[1], STDOUT_FILENO);
399 (void) dup2(ipipe[1], STDERR_FILENO);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/slpd/
H A Dslpd.c218 (void) dup2(connfd, 0);
220 (void) dup2(0, 1);
221 (void) dup2(0, 2);
/illumos-gate/usr/src/cmd/rpcsvc/
H A Drstat_main.c126 (void) dup2(i, 1);
127 (void) dup2(i, 2);
/illumos-gate/usr/src/lib/libbc/inc/include/
H A Dunistd.h116 extern int dup2(int, int);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dtrace.c94 (void) dup2(fileno(ftrace), 1);
95 (void) dup2(fileno(ftrace), 2);
106 (void) dup2(fileno(ftrace), 1);
107 (void) dup2(fileno(ftrace), 2);
/illumos-gate/usr/src/lib/krb5/ss/
H A Dpager.c53 if (dup2(filedes[0], 0) == -1)
/illumos-gate/usr/src/lib/libinstzones/common/
H A Dzones_exec.c241 (void) dup2(stdinfile, STDIN_FILENO);
243 (void) dup2(ipipe[1], STDOUT_FILENO);
244 (void) dup2(ipipe[1], STDERR_FILENO);
839 (void) dup2(stdinfile, STDIN_FILENO);
841 (void) dup2(ipipe[1], STDOUT_FILENO);
842 (void) dup2(ipipe[1], STDERR_FILENO);
/illumos-gate/usr/src/cmd/ypcmd/
H A Dypxfrd_svc.c248 (void) dup2(i, 1);
249 (void) dup2(i, 2);
/illumos-gate/usr/src/cmd/lvm/rpc.mdcommd/
H A Dmddoors.c227 (void) dup2(i, 1);
228 (void) dup2(i, 2);
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dports.c105 dup2(fd, 1);
245 dup2(fd, 1);
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dpopen.c63 (void) dup2(hisside, stdio);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.fingerd.c120 dup2(p[1], 1);
/illumos-gate/usr/src/cmd/syseventd/daemons/syseventconfd/
H A Dsyseventconfd.c169 (void) dup2(fd, 1);
170 (void) dup2(fd, 2);
373 (void) dup2(0, 1);
374 (void) dup2(0, 2);
/illumos-gate/usr/src/cmd/smbsrv/fksmbd/
H A Dfksmbd_ksock.c89 (void) dup2(fd, 0);
/illumos-gate/usr/src/cmd/script/
H A Dscript.c210 (void) dup2(slave, 0);
211 (void) dup2(slave, 1);
212 (void) dup2(slave, 2);
/illumos-gate/usr/src/cmd/enhance/
H A Denhance.c539 while(dup2(slave, STDIN_FILENO) < 0 && errno==EINTR)
541 while(dup2(slave, STDOUT_FILENO) < 0 && errno==EINTR)
543 while(dup2(slave, STDERR_FILENO) < 0 && errno==EINTR)
/illumos-gate/usr/src/cmd/hal/hald/
H A Dhald.c508 dup2 (dev_null_fd, 0);
509 dup2 (dev_null_fd, 1);
510 dup2 (dev_null_fd, 2);

Completed in 673 milliseconds

123456