truncate.2: SYNOPSIS: Fix description of feature test macro requirements

After a report by Arvid Norlander.
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2009-02-28 14:18:31 +13:00
parent 6652fffac3
commit 3ca7341fc9
1 changed files with 5 additions and 2 deletions

View File

@ -38,7 +38,7 @@
.\" Modified 2002-04-06 by Andries Brouwer <aeb@cwi.nl>
.\" Modified 2004-06-23 by Michael Kerrisk <mtk.manpages@gmail.com>
.\"
.TH TRUNCATE 2 2008-07-04 "Linux" "Linux Programmer's Manual"
.TH TRUNCATE 2 2009-02-28 "Linux" "Linux Programmer's Manual"
.SH NAME
truncate, ftruncate \- truncate a file to a specified length
.SH SYNOPSIS
@ -56,7 +56,10 @@ Feature Test Macro Requirements for glibc (see
.in
.ad l
.sp
.BR getdtablesize ():
.BR truncate ():
_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
.br
.BR ftruncate ():
_BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _POSIX_C_SOURCE\ >=\ 200112L
.ad b
.SH DESCRIPTION