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

123

/haiku-fatelf/src/libs/util/
H A Dlogin_tty.c56 (void) dup2(fd, 0);
57 (void) dup2(fd, 1);
58 (void) dup2(fd, 2);
/haiku-fatelf/src/libs/bsd/
H A Ddaemon.c59 dup2(fd, STDIN_FILENO);
60 dup2(fd, STDOUT_FILENO);
61 dup2(fd, STDERR_FILENO);
H A Dpty.cpp58 dup2(fd, 0);
59 dup2(fd, 1);
60 dup2(fd, 2);
/haiku-fatelf/src/system/libroot/posix/unistd/
H A Ddup.c23 dup2(int oldFD, int newFD) function
/haiku-fatelf/src/bin/coreutils/lib/
H A Dcloexec.c58 /* Use dup2 to reject invalid file descriptors; the cloexec flag
65 if (dup2 (desc, desc) < 0)
H A Dfd-reopen.c40 int fd2 = dup2 (fd, desired_fd);
H A Ddup2.c36 # undef dup2 macro
43 /* If fd is closed, mingw hangs on dup2 (fd, fd). If fd is open,
44 dup2 (fd, fd) returns 0, but all further attempts to use fd in
45 future dup2 calls will hang. */
63 result = dup2 (fd, desired_fd);
88 /* On older platforms, dup2 did not exist. */
109 dup2 (int fd, int desired_fd) function
H A Dfreopen-safer.c70 if (dup2 (STDERR_FILENO, STDERR_FILENO) != STDERR_FILENO)
74 if (dup2 (STDOUT_FILENO, STDOUT_FILENO) != STDOUT_FILENO)
78 if (dup2 (STDIN_FILENO, STDIN_FILENO) != STDIN_FILENO)
H A Dfseterr.c65 if (dup2 (fd2, fd) < 0)
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dcompat.c142 (void)dup2(fd, 0);
143 (void)dup2(fd, 1);
144 (void)dup2(fd, 2);
/haiku-fatelf/src/bin/findutils/gnulib/lib/
H A Dunistd.h78 <http://www.opengroup.org/susv3xsh/dup2.html>. */
79 extern int dup2 (int oldfd, int newfd);
82 # undef dup2 macro
83 # define dup2(o,n) \ macro
84 (GL_LINK_WARNING ("dup2 is unportable - " \
85 "use gnulib module dup2 for portability"), \
86 dup2 (o, n))
104 # define dup2 rpl_dup2
105 extern int dup2 (int, int);
H A Dunistd.in.h77 <http://www.opengroup.org/susv3xsh/dup2.html>. */
78 extern int dup2 (int oldfd, int newfd);
81 # undef dup2 macro
82 # define dup2(o,n) \ macro
83 (GL_LINK_WARNING ("dup2 is unportable - " \
84 "use gnulib module dup2 for portability"), \
85 dup2 (o, n))
103 # define dup2 rpl_dup2 macro
104 extern int dup2 (int, int);
H A Ddup2.c47 dup2 (int fd, int desired_fd) function
/haiku-fatelf/src/kits/shared/
H A DCommandPipe.cpp124 dup2(stdOutAndErr[1], STDOUT_FILENO);
125 dup2(stdOutAndErr[1], STDERR_FILENO);
135 dup2(oldStdOut, STDOUT_FILENO);
136 dup2(oldStdErr, STDERR_FILENO);
157 dup2(stdOut[1], STDOUT_FILENO);
158 dup2(stdErr[1], STDERR_FILENO);
168 dup2(oldStdOut, STDOUT_FILENO);
169 dup2(oldStdErr, STDERR_FILENO);
/haiku-fatelf/src/bin/consoled/
H A Dconsoled.cpp395 dup2(con->tty_slave_fd, 0);
396 dup2(con->tty_slave_fd, 1);
397 dup2(con->tty_slave_fd, 2);
404 dup2(savedInput, 0);
405 dup2(savedOutput, 1);
406 dup2(savedError, 2);
428 dup2(gConsole.tty_slave_fd, 0);
429 dup2(gConsole.tty_slave_fd, 1);
430 dup2(gConsole.tty_slave_fd, 2);
/haiku-fatelf/src/add-ons/print/drivers/postscript/
H A DFilterIO.cpp108 pipe(filedes); dup2(filedes[0], 0); close(filedes[0]);
110 pipe(filedes); dup2(filedes[1], 1); close(filedes[1]);
112 pipe(filedes); dup2(filedes[1], 2); close(filedes[1]);
/haiku-fatelf/src/apps/remotedesktop/
H A DRemoteDesktop.cpp125 dup2(pipes[1], STDOUT_FILENO);
126 dup2(pipes[1], STDERR_FILENO);
127 dup2(pipes[2], STDIN_FILENO);
/haiku-fatelf/src/bin/gdb/libiberty/
H A Dpex-win32.c189 dup2 (input_desc, STDIN_FILE_NO);
196 dup2 (output_desc, STDOUT_FILE_NO);
205 dup2 (org_stdin, STDIN_FILE_NO);
211 dup2 (org_stdout, STDOUT_FILE_NO);
/haiku-fatelf/src/libs/ncurses/ncurses/base/
H A Dlib_initscr.c78 dup2(fileno(fp), STDOUT_FILENO);
/haiku-fatelf/src/bin/network/ftpd/
H A Dpopen.c137 dup2(pdes[1], STDOUT_FILENO);
140 dup2(STDOUT_FILENO, STDERR_FILENO); /* stderr too! */
144 dup2(pdes[0], STDIN_FILENO);
/haiku-fatelf/src/tests/apps/miniterminal/
H A DMiniView.cpp314 dup2(view->fSlaveFD, 0);
315 dup2(view->fSlaveFD, 1);
316 dup2(view->fSlaveFD, 2);
323 dup2(saved_stdin, 0);
324 dup2(saved_stdout, 1);
325 dup2(saved_stderr, 2);
/haiku-fatelf/src/bin/gdb/gdb/
H A Dser-pipe.c89 dup2 (pdes[1], STDOUT_FILENO);
92 dup2 (STDOUT_FILENO, STDIN_FILENO);
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/sched_setparam/
H A D2-1.c108 dup2(the_pipe[1],STDOUT);
170 dup2(the_pipe[0],STDIN);
H A D2-2.c108 dup2(the_pipe[1],STDOUT);
170 dup2(the_pipe[0],STDIN);
/haiku-fatelf/src/bin/network/wget/lib/
H A Dunistd.in.h162 # define dup2 rpl_dup2 macro
169 <http://www.opengroup.org/susv3xsh/dup2.html>. */
170 extern int dup2 (int oldfd, int newfd);
173 # undef dup2 macro
174 # define dup2(o,n) \ macro
175 (GL_LINK_WARNING ("dup2 is unportable - " \
176 "use gnulib module dup2 for portability"), \
177 dup2 (o, n))

Completed in 122 milliseconds

123