mirror of https://github.com/mkerrisk/man-pages
getunwind.2: Use syscall(SYS_...); for system calls without a wrapper
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
73f2d2ba11
commit
a2fe65bc36
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue