sigprocmask.2: Use syscall(SYS_...); for raw system calls

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-05-24 20:19:46 +02:00 committed by Michael Kerrisk
parent aa03a4e732
commit 1b4d275a0e
1 changed files with 6 additions and 2 deletions

View File

@ -37,12 +37,16 @@ sigprocmask, rt_sigprocmask \- examine and change blocked signals
.BI "int sigprocmask(int " how ", const sigset_t *restrict " set ,
.BI " sigset_t *restrict " oldset );
.PP
.BR "#include <signal.h>" " /* Definition of " SIG_* " constants */"
.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
.B #include <unistd.h>
.PP
/* Prototype for the underlying system call */
.BI "int rt_sigprocmask(int " how ", const kernel_sigset_t *" set ,
.BI "int syscall(SYS_rt_sigprocmask, int " how ", const kernel_sigset_t *" set ,
.BI " kernel_sigset_t *" oldset ", size_t " sigsetsize );
.PP
/* Prototype for the legacy system call (deprecated) */
.BI "int sigprocmask(int " how ", const old_kernel_sigset_t *" set ,
.BI "int syscall(SYS_sigprocmask, int " how ", const old_kernel_sigset_t *" set ,
.BI " old_kernel_sigset_t *" oldset );
.fi
.PP