[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210313192526.350200-15-alx.manpages@gmail.com>
Date: Sat, 13 Mar 2021 20:25:24 +0100
From: Alejandro Colomar <alx.manpages@...il.com>
To: mtk.manpages@...il.com
Cc: Alejandro Colomar <alx.manpages@...il.com>,
linux-man@...r.kernel.org, libc-alpha@...rceware.org,
linux-kernel@...r.kernel.org, Florian Weimer <fweimer@...hat.com>
Subject: [RFC v3 14/17] get_robust_list.2: Use syscall(SYS_...); for system calls without a wrapper
Also remove unused includes.
Signed-off-by: Alejandro Colomar <alx.manpages@...il.com>
---
man2/get_robust_list.2 | 20 ++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)
diff --git a/man2/get_robust_list.2 b/man2/get_robust_list.2
index b1ae42dbd..9c8f14443 100644
--- a/man2/get_robust_list.2
+++ b/man2/get_robust_list.2
@@ -32,17 +32,16 @@
get_robust_list, set_robust_list \- get/set list of robust futexes
.SH SYNOPSIS
.nf
-.B #include <linux/futex.h>
-.B #include <sys/types.h>
-.B #include <syscall.h>
+.BR "#include <linux/futex.h>" \
+" /* Definition of " "struct robust_list_head" " */"
+.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
+.B #include <unistd.h>
.PP
-.BI "long get_robust_list(int " pid ", struct robust_list_head **" head_ptr ,
-.BI " size_t *" len_ptr );
-.BI "long set_robust_list(struct robust_list_head *" head ", size_t " len );
+.BI "long syscall(SYS_get_robust_list, int " pid ,
+.BI " struct robust_list_head **" head_ptr ", size_t *" len_ptr );
+.BI "long syscall(SYS_set_robust_list,"
+.BI " struct robust_list_head *" head ", size_t " len );
.fi
-.PP
-.IR Note :
-There are no glibc wrappers for these system calls; see NOTES.
.SH DESCRIPTION
These system calls deal with per-thread robust futex lists.
These lists are managed in user space:
@@ -139,9 +138,6 @@ could be found.
These system calls were added in Linux 2.6.17.
.SH NOTES
These system calls are not needed by normal applications.
-No support for them is provided in glibc.
-In the unlikely event that you want to call them directly, use
-.BR syscall (2).
.PP
A thread can have only one robust futex list;
therefore applications that wish
--
2.30.2
Powered by blists - more mailing lists