From 1cd36d9deac272ee17c13431a1e0439fa959756f Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Mon, 24 May 2021 20:19:44 +0200 Subject: [PATCH] sgetmask.2: Use syscall(SYS_...); for system calls without a wrapper Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- man2/sgetmask.2 | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/man2/sgetmask.2 b/man2/sgetmask.2 index 7563b57ff..59b58ceaf 100644 --- a/man2/sgetmask.2 +++ b/man2/sgetmask.2 @@ -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 " " /* Definition of " SYS_* " constants */" +.B #include +.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