Module Name: src
Committed By: kamil
Date: Wed Jan 25 17:12:56 UTC 2017
Modified Files:
src/lib/libc/sys: ptrace.2
Log Message:
Make the PIOD_READ_AUXV operation more clear
Describe how to set piod_offs.
Sponsored by <The NetBSD Foundation>
To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/lib/libc/sys/ptrace.2
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/sys/ptrace.2
diff -u src/lib/libc/sys/ptrace.2:1.56 src/lib/libc/sys/ptrace.2:1.57
--- src/lib/libc/sys/ptrace.2:1.56 Sun Jan 15 22:18:11 2017
+++ src/lib/libc/sys/ptrace.2 Wed Jan 25 17:12:56 2017
@@ -1,7 +1,7 @@
-.\" $NetBSD: ptrace.2,v 1.56 2017/01/15 22:18:11 kamil Exp $
+.\" $NetBSD: ptrace.2,v 1.57 2017/01/25 17:12:56 kamil Exp $
.\"
.\" This file is in the public domain.
-.Dd January 14, 2016
+.Dd January 25, 2016
.Dt PTRACE 2
.Os
.Sh NAME
@@ -285,9 +285,16 @@ Possible values are:
See the description of
.Dv PT_READ_I
for the difference between I and D spaces.
+.Pp
The
.Dv PIOD_READ_AUXV
operation can be used to read from the ELF auxiliary vector.
+The
+.Fa piod_offs
+argument sets offset withing the tracee's vector.
+To read from the beginning of it, this value must be set to 0 and casted to
+.Dv (void *) .
+.Pp
A pointer to the I/O descriptor is passed in the
.Fa addr
argument to