@node dup3
@subsection @code{dup3}
@findex dup3

POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/functions/dup3.html}

Documentation:@* @uref{https://www.kernel.org/doc/man-pages/online/pages/man2/dup3.2.html,,man dup3}

Gnulib module: dup3
@mindex dup3

Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on many non-glibc platforms:
glibc 2.8, macOS 14, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 5.1, HP-UX 11, Solaris 11.3, Cygwin 1.7.1, mingw, MSVC 14, Android 4.4.

@item
This function can crash on some platforms:
Cygwin 1.7.25.

@item
This function mistakenly succeeds when given two equal file descriptors on some platforms:
@c https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=58266
NetBSD 10.0.
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@end itemize
