signalfd.2: Add "C library/kernel ABI differences" subheading under NOTES

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-05-15 22:29:40 +02:00
parent 93e6560b29
commit 68f611bdae
1 changed files with 11 additions and 11 deletions

View File

@ -310,16 +310,6 @@ and
.BR signalfd4 ()
are Linux-specific.
.SH NOTES
The underlying Linux system call requires an additional argument,
.IR "size_t sizemask" ,
which specifies the size of the
.I mask
argument.
The glibc
.BR signalfd ()
wrapper function does not include this argument,
since it provides the required value for the underlying system call.
A process can create multiple signalfd file descriptors.
This makes it possible to accept different signals
on different file descriptors.
@ -333,7 +323,17 @@ If a signal appears in the
.I mask
of more than one of the file descriptors, then occurrences
of that signal can be read (once) from any one of the descriptors.
.SS Underlying Linux system calls
.SS C library/kernel ABI differences
The underlying Linux system call requires an additional argument,
.IR "size_t sizemask" ,
which specifies the size of the
.I mask
argument.
The glibc
.BR signalfd ()
wrapper function does not include this argument,
since it provides the required value for the underlying system call.
There are two underlying Linux system calls:
.BR signalfd ()
and the more recent