diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-03-12 14:38:13 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-03-12 14:38:13 +0000 |
commit | c9d16b52c94cf086e530da5365494d8b35ba5f49 (patch) | |
tree | 35c4d378e3345ec37811e5c3523da3dfa8ec0d38 /lib/libc | |
parent | 2a1ce5c0e75dfe8d3dd39c3d9186f7cd7795b6b8 (diff) |
Document reality.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/ptrace.2 | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/lib/libc/sys/ptrace.2 b/lib/libc/sys/ptrace.2 index 975cc1acf49..1229e0b865b 100644 --- a/lib/libc/sys/ptrace.2 +++ b/lib/libc/sys/ptrace.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ptrace.2,v 1.9 2002/03/11 14:36:27 art Exp $ +.\" $OpenBSD: ptrace.2,v 1.10 2002/03/12 14:38:12 art Exp $ .\" $NetBSD: ptrace.2,v 1.3 1996/02/23 01:39:41 jtc Exp $ .\" .\" This file is in the public domain. @@ -206,14 +206,27 @@ The member specifies what operation that needs to be done. Possible values are: .Bl -tag -width 18n -.It PIOD_OP_READ_DATA -.It PIOD_OP_WRITE_DATA -.It PIOD_OP_READ_TEXT -.It PIOD_OP_WRITE_TEXT +.It PIOD_READ_D +.It PIOD_WRITE_D +.It PIOD_READ_I +.It PIOD_WRITE_I .El +.Pp See also the description of .Dv PT_READ_I -for the difference between DATA and TEXT spaces. +for the difference between D and I spaces. +A pointer to the descriptor is passed in +.Fa addr . +On return the +.Fa piod_len +field in the descriptor will be updated with the actual number of bytes +transferred. +If the requested I/O couldn't be successfully performed +.Fn ptrace +will return +.Li -1 +and set +.Va errno . .El .Pp Additionally, machine-specific requests can exist. |