Lines Matching refs:dup2
12 AC_CHECK_FUNCS_ONCE([dup2])
17 AC_DEFINE([HAVE_DUP2], [1], [Define to 1 if you have the 'dup2' function.])
20 AC_CACHE_CHECK([whether dup2 works], [gl_cv_func_dup2_works],
30 if (dup2 (1, 1) == 0)
37 if (dup2 (0, 0) != -1)
40 if (dup2 (2, 1000000) == -1 && errno != EBADF)
47 mingw*) # on this platform, dup2 always returns 0 for success
49 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
51 linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
54 freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
56 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
68 dnl Replace dup2() for supporting the gnulib-defined fchdir() function,
80 # Prerequisites of lib/dup2.c.