From 1205c84585e22991b1256550e4fd80e82ff77abc Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 1 May 2014 21:19:45 +0200 Subject: [PATCH] getrusage.2: _GNU_SOURCE must be defined to obtain RUSAGE_THREAD definition See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=746569 Reported-by: Bill Allombert Signed-off-by: Michael Kerrisk --- man2/getrusage.2 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/man2/getrusage.2 b/man2/getrusage.2 index cc177f3a3..6cadda998 100644 --- a/man2/getrusage.2 +++ b/man2/getrusage.2 @@ -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-01 "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 . .PP The resource usages are returned in the structure pointed to by .IR usage ,