/haiku-fatelf/src/libs/util/ |
H A D | login_tty.c | 56 (void) dup2(fd, 0); 57 (void) dup2(fd, 1); 58 (void) dup2(fd, 2);
|
/haiku-fatelf/src/libs/bsd/ |
H A D | daemon.c | 59 dup2(fd, STDIN_FILENO); 60 dup2(fd, STDOUT_FILENO); 61 dup2(fd, STDERR_FILENO);
|
H A D | pty.cpp | 58 dup2(fd, 0); 59 dup2(fd, 1); 60 dup2(fd, 2);
|
/haiku-fatelf/src/system/libroot/posix/unistd/ |
H A D | dup.c | 23 dup2(int oldFD, int newFD) function
|
/haiku-fatelf/src/bin/coreutils/lib/ |
H A D | cloexec.c | 58 /* Use dup2 to reject invalid file descriptors; the cloexec flag 65 if (dup2 (desc, desc) < 0)
|
H A D | fd-reopen.c | 40 int fd2 = dup2 (fd, desired_fd);
|
H A D | dup2.c | 36 # 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 D | freopen-safer.c | 70 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 D | fseterr.c | 65 if (dup2 (fd2, fd) < 0)
|
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/libntfs/ |
H A D | compat.c | 142 (void)dup2(fd, 0); 143 (void)dup2(fd, 1); 144 (void)dup2(fd, 2);
|
/haiku-fatelf/src/bin/findutils/gnulib/lib/ |
H A D | unistd.h | 78 <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 D | unistd.in.h | 77 <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 D | dup2.c | 47 dup2 (int fd, int desired_fd) function
|
/haiku-fatelf/src/kits/shared/ |
H A D | CommandPipe.cpp | 124 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 D | consoled.cpp | 395 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 D | FilterIO.cpp | 108 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 D | RemoteDesktop.cpp | 125 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 D | pex-win32.c | 189 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 D | lib_initscr.c | 78 dup2(fileno(fp), STDOUT_FILENO);
|
/haiku-fatelf/src/bin/network/ftpd/ |
H A D | popen.c | 137 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 D | MiniView.cpp | 314 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 D | ser-pipe.c | 89 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 D | 2-1.c | 108 dup2(the_pipe[1],STDOUT); 170 dup2(the_pipe[0],STDIN);
|
H A D | 2-2.c | 108 dup2(the_pipe[1],STDOUT); 170 dup2(the_pipe[0],STDIN);
|
/haiku-fatelf/src/bin/network/wget/lib/ |
H A D | unistd.in.h | 162 # 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))
|