Fri Jan 27 12:52:39 2017 UTC ()
Spelling fixes.


(wiz)
diff -r1.57 -r1.58 src/lib/libc/sys/ptrace.2

cvs diff -r1.57 -r1.58 src/lib/libc/sys/ptrace.2 (expand / switch to unified diff)

--- src/lib/libc/sys/ptrace.2 2017/01/25 17:12:56 1.57
+++ src/lib/libc/sys/ptrace.2 2017/01/27 12:52:39 1.58
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: ptrace.2,v 1.57 2017/01/25 17:12:56 kamil Exp $ 1.\" $NetBSD: ptrace.2,v 1.58 2017/01/27 12:52:39 wiz Exp $
2.\" 2.\"
3.\" This file is in the public domain. 3.\" This file is in the public domain.
4.Dd January 25, 2016 4.Dd January 25, 2016
5.Dt PTRACE 2 5.Dt PTRACE 2
6.Os 6.Os
7.Sh NAME 7.Sh NAME
8.Nm ptrace 8.Nm ptrace
9.Nd process tracing and debugging 9.Nd process tracing and debugging
10.Sh LIBRARY 10.Sh LIBRARY
11.Lb libc 11.Lb libc
12.Sh SYNOPSIS 12.Sh SYNOPSIS
13.In sys/types.h 13.In sys/types.h
14.In sys/ptrace.h 14.In sys/ptrace.h
@@ -281,28 +281,28 @@ Possible values are: @@ -281,28 +281,28 @@ Possible values are:
281.It Dv PIOD_WRITE_I 281.It Dv PIOD_WRITE_I
282.It Dv PIOD_READ_AUXV 282.It Dv PIOD_READ_AUXV
283.El 283.El
284.Pp 284.Pp
285See the description of 285See the description of
286.Dv PT_READ_I 286.Dv PT_READ_I
287for the difference between I and D spaces. 287for the difference between I and D spaces.
288.Pp 288.Pp
289The 289The
290.Dv PIOD_READ_AUXV 290.Dv PIOD_READ_AUXV
291operation can be used to read from the ELF auxiliary vector. 291operation can be used to read from the ELF auxiliary vector.
292The 292The
293.Fa piod_offs 293.Fa piod_offs
294argument sets offset withing the tracee's vector. 294argument sets the offset within the tracee's vector.
295To read from the beginning of it, this value must be set to 0 and casted to 295To read from the beginning of it, this value must be set to 0 and cast to
296.Dv (void *) . 296.Dv (void *) .
297.Pp 297.Pp
298A pointer to the I/O descriptor is passed in the 298A pointer to the I/O descriptor is passed in the
299.Fa addr 299.Fa addr
300argument to 300argument to
301.Fn ptrace . 301.Fn ptrace .
302On return, the 302On return, the
303.Fa piod_len 303.Fa piod_len
304field in the I/O descriptor will be updated with the actual number of 304field in the I/O descriptor will be updated with the actual number of
305bytes transferred. 305bytes transferred.
306If the requested I/O could not be successfully performed, 306If the requested I/O could not be successfully performed,
307.Fn ptrace 307.Fn ptrace
308will return 308will return