[PATCH] ptrace.2: Mention that PTRACE_PEEK* libc API and kernel API are different

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



By Oleg's request.

Signed-off-by: Denys Vlasenko <dvlasenk@xxxxxxxxxx>
CC: linux-man@xxxxxxxxxxxxxxx
CC: Oleg Nesterov <oleg@xxxxxxxxxx>
CC: Jan Kratochvil <jan.kratochvil@xxxxxxxxxx>
CC: Dmitry V. Levin <ldv@xxxxxxxxxxxx>
---
 man2/ptrace.2 | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/man2/ptrace.2 b/man2/ptrace.2
index 55c4fe2..a6e01a0 100644
--- a/man2/ptrace.2
+++ b/man2/ptrace.2
@@ -1776,8 +1776,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.
-- 
1.8.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux