Home | History | Annotate | Download | only in import

Lines Matching defs:dup2

28 #undef dup2
75 /* If fd is closed, mingw hangs on dup2 (fd, fd). If fd is open,
76 dup2 (fd, fd) returns 0, but all further attempts to use fd in
77 future dup2 calls will hang. */
104 # define dup2 ms_windows_dup2
144 dupfd = dup2 (fd, desired_fd);
156 # define dup2 klibc_dup2
165 /* On Linux kernels 2.6.26-2.6.29, dup2 (fd, fd) returns -EBADF.
166 On Cygwin 1.5.x, dup2 (1, 1) returns 0.
167 On Cygwin 1.7.17, dup2 (1, -1) dumps core.
168 On Cygwin 1.7.25, dup2 (1, 256) can dump core.
169 On Haiku, dup2 (fd, fd) mistakenly clears FD_CLOEXEC. */
179 result = dup2 (fd, desired_fd);