view doc/posix-headers/pthread.texi @ 39244:aa3cd60dc529

thread: Fix compilation error on IRIX. * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when needed; include it outside the C++ extern "C" {} block. * doc/posix-headers/pthread.texi: Mention the problem with pthread_atfork on IRIX.
author Bruno Haible <bruno@clisp.org>
date Sat, 17 Feb 2018 09:55:43 +0100
parents 927867cc7daa
children
line wrap: on
line source

@node pthread.h
@section @file{pthread.h}

POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/basedefs/pthread.h.html}

Gnulib module: pthread

Portability problems fixed by Gnulib:
@itemize
@item
This header pollutes the namespace with some broken macro
implementations for various functions such as @code{strtok_r} and
@code{gmtime_r}:
mingw 3.0.
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
This header file is missing on some platforms; the replacement does
not offer threads, so much as lightweight stubs that make conditional
compilation easier for fallbacks to single-threaded programs.
Minix 3.1.8, mingw 2.x, MSVC 14, BeOS.
@item
This header file lacks the declaration of @code{pthread_atfork} on some
platforms:
IRIX 6.5.
@end itemize