[PATCH 07/10] sgetmask.2: Use syscall(SYS_...); for system calls without a wrapper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx>
---
 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 <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
-- 
2.31.1




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux