mirror of https://github.com/mkerrisk/man-pages
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:
parent
aa03a4e732
commit
1b4d275a0e
|
@ -37,12 +37,16 @@ sigprocmask, rt_sigprocmask \- examine and change blocked signals
|
||||||
.BI "int sigprocmask(int " how ", const sigset_t *restrict " set ,
|
.BI "int sigprocmask(int " how ", const sigset_t *restrict " set ,
|
||||||
.BI " sigset_t *restrict " oldset );
|
.BI " sigset_t *restrict " oldset );
|
||||||
.PP
|
.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 */
|
/* 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 );
|
.BI " kernel_sigset_t *" oldset ", size_t " sigsetsize );
|
||||||
.PP
|
.PP
|
||||||
/* Prototype for the legacy system call (deprecated) */
|
/* 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 );
|
.BI " old_kernel_sigset_t *" oldset );
|
||||||
.fi
|
.fi
|
||||||
.PP
|
.PP
|
||||||
|
|
Loading…
Reference in New Issue