Home
last modified time | relevance | path

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

12

/external/bison/djgpp/
Dsubpipe.c146 if (dup2(from_in_fd, STDOUT_FILENO) < 0) in create_subpipe()
190 if (dup2(from_out_fd, STDIN_FILENO) < 0) in end_of_output_subpipe()
206 if (dup2(to_in_fd, STDOUT_FILENO) < 0) in end_of_output_subpipe()
243 if (dup2(old_stdout, STDOUT_FILENO) < 0) in end_of_output_subpipe()
252 if (dup2(to_in_fd, STDIN_FILENO) < 0) in end_of_output_subpipe()
282 if (dup2(old_stdin, STDIN_FILENO) < 0) in reap_subpipe()
/external/bison/lib/
Dsubpipe.c46 #if ! HAVE_DUP2 && ! defined dup2
48 # define dup2(f, t) (close (t), fcntl (f, F_DUPFD, t)) macro
135 dup2 (child_fd[0], STDIN_FILENO); in create_subpipe()
137 dup2 (child_fd[1], STDOUT_FILENO); in create_subpipe()
/external/qemu/android/utils/
Ddebug.c121 dup2(null_fd, out_fd); in stdio_disable()
122 dup2(null_fd, err_fd); in stdio_disable()
135 dup2(stdio_save_out_fd, out_fd); in stdio_enable()
136 dup2(stdio_save_err_fd, err_fd); in stdio_enable()
/external/e2fsprogs/lib/
Dfpopen.c102 dup2(fds[0], 0); in fpopen()
105 dup2(fds[1], 1); in fpopen()
107 dup2(fds[1], 2); in fpopen()
/external/dropbear/
Dcompat.c181 (void)dup2(fd, STDIN_FILENO); in daemon()
182 (void)dup2(fd, STDOUT_FILENO); in daemon()
183 (void)dup2(fd, STDERR_FILENO); in daemon()
Dsvr-chansession.c670 if ((dup2(infds[FDIN], STDIN_FILENO) < 0) || in noptycommand()
671 (dup2(outfds[FDOUT], STDOUT_FILENO) < 0) || in noptycommand()
672 (dup2(errfds[FDOUT], STDERR_FILENO) < 0)) { in noptycommand()
775 if ((dup2(chansess->slave, STDIN_FILENO) < 0) || in ptycommand()
776 (dup2(chansess->slave, STDERR_FILENO) < 0) || in ptycommand()
777 (dup2(chansess->slave, STDOUT_FILENO) < 0)) { in ptycommand()
Dcli-authpasswd.c77 if (dup2(p[1], STDOUT_FILENO) < 0) { in gui_getpass()
Dcli-session.c225 dup2(devnull, STDIN_FILENO); in cli_sessionloop()
Dscpmisc.c241 if (dup2(nullfd, dupfd) == -1) { in sanitise_stdfd()
/external/clearsilver/util/
Dfilter.c114 dup2 (pi[0], 0); in filter_create_fd()
121 dup2 (po[1], 1); in filter_create_fd()
128 dup2 (pe[1], 2); in filter_create_fd()
/external/dhcpcd/
Dcommon.c151 dup2(fd, fileno(stdin)); in close_fds()
152 dup2(fd, fileno(stdout)); in close_fds()
153 dup2(fd, fileno(stderr)); in close_fds()
/external/qemu/slirp/
Dmisc.c334 dup2(s, 0); in fork_exec()
335 dup2(s, 1); in fork_exec()
336 dup2(s, 2); in fork_exec()
882 dup2(fd0[1], 0);
883 dup2(fd0[1], 1);
884 dup2(fd[1], 2);
/external/qemu/slirp-android/
Dmisc.c300 dup2(s, 0); in fork_exec()
301 dup2(s, 1); in fork_exec()
302 dup2(s, 2); in fork_exec()
845 dup2(fd0[1], 0);
846 dup2(fd0[1], 1);
847 dup2(fd[1], 2);
/external/proguard/src/proguard/evaluation/
DTracedStack.java235 public void dup2() in dup2() method in TracedStack
237 super.dup2(); in dup2()
/external/e2fsprogs/misc/
Dlogsave.c122 dup2(fds[1],1); /* fds[1] replaces stdout */ in run_program()
123 dup2(fds[1],2); /* fds[1] replaces stderr */ in run_program()
/external/dbus/dbus/
Ddbus-sysdeps-util-unix.c108 dup2 (dev_null_fd, 0); in _dbus_become_daemon()
109 dup2 (dev_null_fd, 1); in _dbus_become_daemon()
113 dup2 (dev_null_fd, 2); in _dbus_become_daemon()
/external/e2fsprogs/lib/ss/
Dpager.c88 if (dup2(filedes[0], 0) == -1) in ss_pager_create()
Dhelp.c114 (void) dup2(fd, 0); /* put file on stdin */
/external/ppp/pppd/
Dmain.c797 dup2(fd_devnull, 0); in detach()
798 dup2(fd_devnull, 1); in detach()
799 dup2(fd_devnull, 2); in detach()
1533 dup2(infd, 0); in safe_fork()
1535 dup2(outfd, 1); in safe_fork()
1537 dup2(errfd, 2); in safe_fork()
Dtty.c654 dup2(fd_devnull, 0); in connect_tty()
655 dup2(fd_devnull, 1); in connect_tty()
659 dup2(fd_devnull, 2); in connect_tty()
/external/bison/m4/
Dsubpipe.m427 AC_CHECK_FUNCS(dup2 waitpid)
/external/dbus/tools/
Ddbus-launch.c519 dup2 (dev_null_fd, 0); in babysit()
520 dup2 (dev_null_fd, 1); in babysit()
523 dup2 (dev_null_fd, 2); in babysit()
/external/gtest/src/
Dgtest-port.cc437 dup2(captured_fd, kStdErrFileno); in CapturedStderr()
449 dup2(uncaptured_fd_, kStdErrFileno); in StopCapture()
/external/netcat/
Dnetcat.c584 dup2 (fd, 0); /* the precise order of fiddlage */
586 dup2 (0, 1); /* swiped directly out of "inetd". */
587 dup2 (0, 2);
/external/e2fsprogs/tests/
DREADME49 dup2.img Filesystem with blocks claimed by three different files

12