mirror of https://github.com/mkerrisk/man-pages
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:
parent
18e21e1e4c
commit
1cd36d9dea
|
@ -27,12 +27,17 @@
|
|||
sgetmask, ssetmask \- manipulation of signal mask (obsolete)
|
||||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B "long sgetmask(void);"
|
||||
.BI "long ssetmask(long " newmask );
|
||||
.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
|
||||
.B #include <unistd.h>
|
||||
.PP
|
||||
.B "long syscall(SYS_sgetmask, void);"
|
||||
.BI "long syscall(SYS_ssetmask, long " newmask );
|
||||
.fi
|
||||
.PP
|
||||
.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
|
||||
These system calls are obsolete.
|
||||
.IR "Do not use them" ;
|
||||
|
@ -73,10 +78,6 @@ option.
|
|||
.SH CONFORMING TO
|
||||
These system calls are Linux-specific.
|
||||
.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
|
||||
(i.e., real-time signals).
|
||||
.PP
|
||||
|
|
Loading…
Reference in New Issue