OSDN Git Service

LDP: Update original to LDP v3.68
[linuxjm/LDP_man-pages.git] / original / man2 / getrusage.2
index 5ed1289..2c30ee3 100644 (file)
@@ -36,7 +36,7 @@
 .\"     document ru_maxrss
 .\" 2010-05-24, mtk, enhanced description of various fields
 .\"
-.TH GETRUSAGE 2 2010-09-26 "Linux" "Linux Programmer's Manual"
+.TH GETRUSAGE 2 2014-05-10 "Linux" "Linux Programmer's Manual"
 .SH NAME
 getrusage \- get resource usage
 .SH SYNOPSIS
@@ -65,6 +65,13 @@ if all of the intervening descendants waited on their terminated children.
 .TP
 .BR RUSAGE_THREAD " (since Linux 2.6.26)"
 Return resource usage statistics for the calling thread.
+The
+.B _GNU_SOURCE
+feature test macro must be defined (before including
+.I any
+header file)
+in order to obtain the definition of this constant from
+.IR <sys/resource.h> .
 .PP
 The resource usages are returned in the structure pointed to by
 .IR usage ,
@@ -112,7 +119,8 @@ expressed in a
 structure (seconds plus microseconds).
 .TP
 .IR ru_maxrss " (since Linux 2.6.32)"
-This is the maximum resident set size used (in kilobytes). For
+This is the maximum resident set size used (in kilobytes).
+For
 .BR RUSAGE_CHILDREN ,
 this is the resident set size of the largest child, not the maximum
 resident set size of the process tree.
@@ -146,10 +154,10 @@ This field is currently unused on Linux.
 .\" On some systems, this is the number of swaps out of physical memory.
 .TP
 .IR ru_inblock " (since Linux 2.6.22)"
-The number of times the file system had to perform input.
+The number of times the filesystem had to perform input.
 .TP
 .IR ru_oublock " (since Linux 2.6.22)"
-The number of times the file system had to perform output.
+The number of times the filesystem had to perform output.
 .TP
 .IR ru_msgsnd " (unmaintained)"
 This field is currently unused on Linux.
@@ -195,7 +203,7 @@ is invalid.
 SVr4, 4.3BSD.
 POSIX.1-2001 specifies
 .BR getrusage (),
-but only specifies the fields
+but specifies only the fields
 .I ru_utime
 and
 .IR ru_stime .
@@ -249,3 +257,12 @@ in
 .BR wait (2),
 .BR wait4 (2),
 .BR clock (3)
+.SH COLOPHON
+This page is part of release 3.68 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.