From a2fe65bc365e0f252e13db372509a1b7ee2596bb Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sun, 4 Apr 2021 13:58:37 +0200 Subject: [PATCH] getunwind.2: Use syscall(SYS_...); for system calls without a wrapper Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- man2/getunwind.2 | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/man2/getunwind.2 b/man2/getunwind.2 index 45535dccf..2c44506c7 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 .B #include +.BR "#include " " /* Definition of " SYS_* " constants */" +.B #inlcude .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)