[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210313192526.350200-14-alx.manpages@gmail.com>
Date: Sat, 13 Mar 2021 20:25:23 +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 13/17] getunwind.2: Use syscall(SYS_...); for system calls without a wrapper
Signed-off-by: Alejandro Colomar <alx.manpages@...il.com>
---
man2/getunwind.2 | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/man2/getunwind.2 b/man2/getunwind.2
index 9a58f43e4..3490a0617 100644
--- a/man2/getunwind.2
+++ b/man2/getunwind.2
@@ -29,16 +29,14 @@
getunwind \- copy the unwind data to caller's buffer
.SH SYNOPSIS
.nf
-.B #include <syscall.h>
.B #include <linux/unwind.h>
+.BR "#include <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
+.B #inlcude <unistd.h>
.PP
-.BI "long getunwind(void " *buf ", size_t " buf_size );
+.BI "long syscall(SYS_getunwind, void " *buf ", size_t " buf_size );
.fi
-.PP
-.IR Note :
-There is no glibc wrapper for this system call; see NOTES.
.SH DESCRIPTION
-.I Note: this function is obsolete.
+.I Note: this system call is obsolete.
.PP
The
IA-64-specific
@@ -102,9 +100,5 @@ and is available only on the IA-64 architecture.
This system call has been deprecated.
The modern way to obtain the kernel's unwind data is via the
.BR vdso (7).
-.PP
-Glibc does not provide a wrapper for this system call;
-in the unlikely event that you want to call it, use
-.BR syscall (2).
.SH SEE ALSO
.BR getauxval (3)
--
2.30.2
Powered by blists - more mailing lists