mirror of https://github.com/mkerrisk/man-pages
ptrace.2: Mention that PTRACE_PEEK* libc API and kernel API are different
Acked-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Dmitry V. Levin <ldv@altlinux.org> Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
0d9df44eaa
commit
78686915ae
|
@ -1714,8 +1714,15 @@ the report is sent only once.
|
|||
.SH RETURN VALUE
|
||||
On success,
|
||||
.B PTRACE_PEEK*
|
||||
requests return the requested data,
|
||||
while other requests return zero.
|
||||
requests return the requested data, while other requests return zero.
|
||||
(On Linux, this is done in the libc wrapper around ptrace system call.
|
||||
On the system call level,
|
||||
.B PTRACE_PEEK*
|
||||
requests have a different API: they store the result
|
||||
at the address specified by
|
||||
.I data
|
||||
parameter, and return value is the error flag.)
|
||||
.LP
|
||||
On error, all requests return \-1, and
|
||||
.I errno
|
||||
is set appropriately.
|
||||
|
|
Loading…
Reference in New Issue