summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2007-04-07 03:16:23 +0000
committeremaste <emaste@FreeBSD.org>2007-04-07 03:16:23 +0000
commit9dfa1c4936324a285827d8652fc127d3be1e7627 (patch)
tree21cdceddfe1924f0da3a8071c2a2727885900049
parentc52b09231092ddcdfe6a4e0cb72cd62a603c8b31 (diff)
downloadFreeBSD-src-9dfa1c4936324a285827d8652fc127d3be1e7627.zip
FreeBSD-src-9dfa1c4936324a285827d8652fc127d3be1e7627.tar.gz
Describe PT_GETLWPLIST's arguments.
-rw-r--r--lib/libc/sys/ptrace.29
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libc/sys/ptrace.2 b/lib/libc/sys/ptrace.2
index 00b529b..ae685fd 100644
--- a/lib/libc/sys/ptrace.2
+++ b/lib/libc/sys/ptrace.2
@@ -299,6 +299,15 @@ argument is to be set to the size of the structure known to the caller.
This allows the structure to grow without affecting older programs.
.It PT_GETLWPLIST
This request can be used to get the current thread list.
+A pointer to an array of type
+.Vt lwpid_t
+should be passed in
+.Fa addr ,
+with the array size specified by
+.Fa data .
+The return value from
+.Fn ptrace
+is the count of array entries filled in.
.El
.Pp
Additionally, machine-specific requests can exist.
OpenPOWER on IntegriCloud