Lines Matching refs:dup2
30 # undef dup2
48 /* If fd is closed, mingw hangs on dup2 (fd, fd). If fd is open,
49 dup2 (fd, fd) returns 0, but all further attempts to use fd in
50 future dup2 calls will hang. */
71 result = dup2 (fd, desired_fd);
86 # define dup2 ms_windows_dup2
96 /* On Linux kernels 2.6.26-2.6.29, dup2 (fd, fd) returns -EBADF.
97 On Cygwin 1.5.x, dup2 (1, 1) returns 0.
98 On Haiku, dup2 (fd, fd) mistakenly clears FD_CLOEXEC. */
103 result = dup2 (fd, desired_fd);
117 /* On older platforms, dup2 did not exist. */
138 dup2 (int fd, int desired_fd)