sgetmask.2: Use syscall(SYS_...); for system calls without a wrapper

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:44 +02:00 committed by Michael Kerrisk
parent 18e21e1e4c
commit 1cd36d9dea
1 changed files with 8 additions and 7 deletions

View File

@ -27,12 +27,17 @@
sgetmask, ssetmask \- manipulation of signal mask (obsolete) sgetmask, ssetmask \- manipulation of signal mask (obsolete)
.SH SYNOPSIS .SH SYNOPSIS
.nf .nf
.B "long sgetmask(void);" .BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
.BI "long ssetmask(long " newmask ); .B #include <unistd.h>
.PP
.B "long syscall(SYS_sgetmask, void);"
.BI "long syscall(SYS_ssetmask, long " newmask );
.fi .fi
.PP .PP
.IR Note : .IR Note :
There are no glibc wrappers for these system calls; see NOTES. glibc provides no wrappers for these functions,
necessitating the use of
.BR syscall (2).
.SH DESCRIPTION .SH DESCRIPTION
These system calls are obsolete. These system calls are obsolete.
.IR "Do not use them" ; .IR "Do not use them" ;
@ -73,10 +78,6 @@ option.
.SH CONFORMING TO .SH CONFORMING TO
These system calls are Linux-specific. These system calls are Linux-specific.
.SH NOTES .SH NOTES
Glibc does not provide wrappers for these obsolete system calls;
in the unlikely event that you want to call them, use
.BR syscall (2).
.PP
These system calls are unaware of signal numbers greater than 31 These system calls are unaware of signal numbers greater than 31
(i.e., real-time signals). (i.e., real-time signals).
.PP .PP