aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/sys/getrusage.2
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2010-05-11 13:39:37 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2010-05-11 13:39:37 +0000
commitbdf855784c90dbbc391ed859b4c04e3e135d9e7e (patch)
tree3185fc705efcca3c4a5970f85e42c7d98d520dc6 /lib/libc/sys/getrusage.2
parentfae5687b8aab1d48bf33b713ebcfd7a3ec354825 (diff)
downloadsrc-bdf855784c90dbbc391ed859b4c04e3e135d9e7e.tar.gz
src-bdf855784c90dbbc391ed859b4c04e3e135d9e7e.zip
MFC r207604:
Document RUSAGE_THREAD.
Notes
Notes: svn path=/stable/8/; revision=207919
Diffstat (limited to 'lib/libc/sys/getrusage.2')
-rw-r--r--lib/libc/sys/getrusage.212
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/libc/sys/getrusage.2 b/lib/libc/sys/getrusage.2
index bdf5d4591cbf..423503f82825 100644
--- a/lib/libc/sys/getrusage.2
+++ b/lib/libc/sys/getrusage.2
@@ -28,7 +28,7 @@
.\" @(#)getrusage.2 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
-.Dd June 4, 1993
+.Dd May 1, 2010
.Dt GETRUSAGE 2
.Os
.Sh NAME
@@ -42,6 +42,7 @@
.In sys/resource.h
.Fd "#define RUSAGE_SELF 0"
.Fd "#define RUSAGE_CHILDREN -1"
+.Fd "#define RUSAGE_THREAD 1"
.Ft int
.Fn getrusage "int who" "struct rusage *rusage"
.Sh DESCRIPTION
@@ -49,11 +50,12 @@ The
.Fn getrusage
system call
returns information describing the resources utilized by the current
-process, or all its terminated child processes.
+thread, the current process, or all its terminated child processes.
The
.Fa who
argument is either
-.Dv RUSAGE_SELF
+.Dv RUSAGE_THREAD ,
+.Dv RUSAGE_SELF ,
or
.Dv RUSAGE_CHILDREN .
The buffer to which
@@ -175,6 +177,10 @@ The
.Fn getrusage
system call appeared in
.Bx 4.2 .
+The
+.Dv RUSAGE_THREAD
+facility first appeared in
+.Fx 8.1 .
.Sh BUGS
There is no way to obtain information about a child process
that has not yet terminated.