summaryrefslogtreecommitdiff
path: root/doc/posix-functions/sigprocmask.texi
blob: 1a1379a21d3af61e4c39e6c5829703b0668bb443 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@node sigprocmask
@section @code{sigprocmask}
@findex sigprocmask

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

Gnulib module: sigprocmask

Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
mingw, MSVC 14.
@end itemize

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

Note: Although @code{sigprocmask} officially has undefined behaviour in
multi-threaded programs, in practice it is essentially equivalent to
@code{pthread_sigmask}, with only a difference regarding the error
return convention.  It's simpler to use @code{sigprocmask}, since it does
not require linking with @code{-lpthread} on some platforms:
glibc, NetBSD, OpenBSD, AIX, IRIX.