| @@ -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 |
285 | See the description of | | 285 | See the description of |
286 | .Dv PT_READ_I | | 286 | .Dv PT_READ_I |
287 | for the difference between I and D spaces. | | 287 | for the difference between I and D spaces. |
288 | .Pp | | 288 | .Pp |
289 | The | | 289 | The |
290 | .Dv PIOD_READ_AUXV | | 290 | .Dv PIOD_READ_AUXV |
291 | operation can be used to read from the ELF auxiliary vector. | | 291 | operation can be used to read from the ELF auxiliary vector. |
292 | The | | 292 | The |
293 | .Fa piod_offs | | 293 | .Fa piod_offs |
294 | argument sets offset withing the tracee's vector. | | 294 | argument sets the offset within the tracee's vector. |
295 | To read from the beginning of it, this value must be set to 0 and casted to | | 295 | To 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 |
298 | A pointer to the I/O descriptor is passed in the | | 298 | A pointer to the I/O descriptor is passed in the |
299 | .Fa addr | | 299 | .Fa addr |
300 | argument to | | 300 | argument to |
301 | .Fn ptrace . | | 301 | .Fn ptrace . |
302 | On return, the | | 302 | On return, the |
303 | .Fa piod_len | | 303 | .Fa piod_len |
304 | field in the I/O descriptor will be updated with the actual number of | | 304 | field in the I/O descriptor will be updated with the actual number of |
305 | bytes transferred. | | 305 | bytes transferred. |
306 | If the requested I/O could not be successfully performed, | | 306 | If the requested I/O could not be successfully performed, |
307 | .Fn ptrace | | 307 | .Fn ptrace |
308 | will return | | 308 | will return |