/haiku-fatelf/headers/build/ |
H A D | BeOSBuildCompatibility.h | 157 # define dup2(fd1, fd2) _haiku_build_dup2(fd1, fd2) macro
|
/haiku-fatelf/headers/posix/ |
H A D | unistd.h | 165 extern int dup2(int fd1, int fd2);
|
/haiku-fatelf/headers/private/fs_shell/ |
H A D | fssh_api_wrapper.h | 1645 #define dup2 fssh_dup2 macro
|
/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/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/add-ons/tracker/zipomatic/ |
H A D | ZipperThread.cpp | 290 dup2(inPipe[0], STDIN_FILENO); 292 dup2(outPipe[1], STDOUT_FILENO); 294 dup2(errPipe[1], STDERR_FILENO); 309 dup2(oldIn, STDIN_FILENO); 311 dup2(oldOut, STDOUT_FILENO); 313 dup2(oldErr, STDERR_FILENO);
|
/haiku-fatelf/src/apps/expander/ |
H A D | ExpanderThread.cpp | 206 pipe(filedes); dup2(filedes[1], 1); close(filedes[1]); 208 pipe(filedes); dup2(filedes[1], 2); close(filedes[1]); 239 dup2(slave, 0);
|
/haiku-fatelf/src/apps/packageinstaller/ |
H A D | PackageItem.cpp | 651 pipe(filedes); dup2(filedes[0], 0); close(filedes[0]); 653 pipe(filedes); dup2(filedes[1], 1); close(filedes[1]); 654 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/apps/terminal/ |
H A D | Shell.cpp | 492 dup2(slave, 0); 493 dup2(slave, 1); 494 dup2(slave, 2);
|
/haiku-fatelf/src/bin/bash/ |
H A D | configure | 13313 for ac_func in dup2 eaccess fcntl getdtablesize getgroups gethostname \ 25266 { $as_echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5 25267 $as_echo_n "checking if dup2 fails to clear the close-on-exec flag... " >&6; } 25272 { $as_echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5 25273 $as_echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;} 25291 fd2 = dup2(fd1, 1); 25295 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
|
H A D | execute_cmd.c | 487 dup2 (fd, 0); 4879 if (dup2 (pipe_in, 0) < 0) 4888 if (dup2 (pipe_out, 1) < 0) 4895 if (dup2 (1, 2) < 0)
|
H A D | externs.h | 238 extern int dup2 __P((int, int));
|
H A D | general.c | 449 if (nfds > 3 && fd != nfds && (script_fd = dup2 (fd, nfds)) != -1)
|
H A D | redir.c | 112 r_{duplicating,move}_output we're here because dup2() failed. */ 804 if ((fd != redirector) && (dup2 (fd, redirector) < 0)) 847 if (dup2 (1, 2) < 0) 882 if (fd != redirector && dup2 (fd, redirector) < 0) 923 /* This is correct. 2>&1 means dup2 (1, 2); */ 924 if (dup2 (redir_fd, redirector) < 0) 932 /* First duplicate the close-on-exec state of redirectee. dup2
|
H A D | shell.c | 1486 dup2 (fd, 0);
|
/haiku-fatelf/src/bin/bash/lib/sh/ |
H A D | oslib.c | 81 /* Replacement for dup2 (), for those systems which either don't have it, 84 dup2 (fd1, fd2) function
|
/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/bin/coreutils/ |
H A D | configure | 3200 as_fn_append ac_func_list " dup2" 20336 gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext" 20339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5 20340 $as_echo_n "checking whether dup2 works... " >&6; } 20346 mingw*) # on this platform, dup2 always returns 0 for success 20348 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0 20350 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a 20353 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF. 20366 if (dup2 (1, 1) == 0) 20369 if (dup2 ( [all...] |
/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 | 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 | fchdir.c | 167 /* Mark NEWFD as a duplicate of OLDFD; useful from dup, dup2, dup3, 205 If dup2 fails, errno is correctly EBADF. */ 208 if (dup2 (fd, fd) == fd)
|
H A D | fcntl.c | 264 /* Use dup2 to reject invalid file descriptors. No way to 266 if (0 <= dup2 (fd, fd)) 278 using dup2 to move the duplicate onto the original, but that
|
H A D | fd-reopen.c | 40 int fd2 = dup2 (fd, desired_fd);
|
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)
|