From 7fde78e66fbd4924c9bc34356210d361c2211134 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 1 Aug 2008 05:26:15 +0000 Subject: [PATCH] SYNOPSIS: Fixed feature test macro requirements. --- man3/finite.3 | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/man3/finite.3 b/man3/finite.3 index 9bd2f6ed5..45faaf686 100644 --- a/man3/finite.3 +++ b/man3/finite.3 @@ -20,7 +20,7 @@ .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" -.TH FINITE 3 2007-07-26 "" "Linux Programmer's Manual" +.TH FINITE 3 2008-07-29 "" "Linux Programmer's Manual" .SH NAME finite, finitef, finitel, isinf, isinff, isinfl, isnan, isnanf, isnanl \- BSD floating-point classification functions @@ -58,15 +58,21 @@ Feature Test Macro Requirements for glibc (see .BR finitel (): _BSD_SOURCE || _SVID_SOURCE .br -.BR isinf (), +.BR isinf (): +_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; +.I cc\ -std=c99 +.br .BR isinff (), .BR isinfl (): _BSD_SOURCE || _SVID_SOURCE .br -.BR isnan (), +.BR isnan (): +_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE || _ISOC99_SOURCE; +.I cc\ -std=c99 +.br .BR isnanf (), .BR isnanl (): -_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE +_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 .ad b .SH DESCRIPTION The @@ -81,7 +87,7 @@ and 0 otherwise. The .BR isinf () -functions return 1 if \fIx\fP is positive infinity, \-1 is \fIx\fP +functions return 1 if \fIx\fP is positive infinity, \-1 if \fIx\fP is negative infinity, and 0 otherwise. .SH NOTES Note that these functions are obsolete.