view doc/glibc-functions/pipe2.texi @ 16313:8b91748dde8f

pipe2, assign4: document lack of thread-safety in replacement * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety issue in replacement. * doc/glibc-functions/accept4.texi (accept4): Likewise. Based on a report by Eric Wong.
author Eric Blake <eblake@redhat.com>
date Thu, 26 Jan 2012 08:31:48 -0700
parents da62858ef2f6
children 3cd17879cdb5
line wrap: on
line source

@node pipe2
@subsection @code{pipe2}
@findex pipe2

Gnulib module: pipe2

Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on many non-glibc platforms:
MacOS X 10.5, FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 5.1, HP-UX 11,
IRIX 6.5, OSF/1 5.1, Solaris 11 2011-11, Cygwin 1.7.1, mingw, MSVC 9, Interix 3.5, BeOS.
But the replacement function is not atomic in multi-threaded programs.
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
This function crashes rather than failing with @code{EMFILE} if no
resources are left on some platforms:
Cygwin 1.7.9.
@end itemize

Note: This function portably supports the @code{O_NONBLOCK} flag only if the
gnulib module @code{nonblocking} is also used.