aboutsummaryrefslogtreecommitdiffstats
path: root/man3/fpclassify.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/fpclassify.3')
-rw-r--r--man3/fpclassify.327
1 files changed, 25 insertions, 2 deletions
diff --git a/man3/fpclassify.3 b/man3/fpclassify.3
index c20dabea76..26e0fb4ac9 100644
--- a/man3/fpclassify.3
+++ b/man3/fpclassify.3
@@ -3,7 +3,7 @@
.\" This was done with the help of the glibc manual.
.\"
.\" 2004-10-31, aeb, corrected
-.TH FPCLASSIFY 3 2004-10-31 "" "Linux Programmer's Manual"
+.TH FPCLASSIFY 3 2007-07-26 "" "Linux Programmer's Manual"
.SH NAME
fpclassify, isfinite, isnormal, isnan, isinf \- floating-point
classification macros
@@ -22,7 +22,30 @@ classification macros
.BI "int isinf(" x );
.fi
.sp
-Compile with \fI\-std=c99\fP; link with \fI\-lm\fP.
+Link with \fI\-lm\fP.
+.sp
+.in -4n
+Feature Test Macro Requirements for glibc (see
+.BR feature_test_macros (7)):
+.in
+.sp
+.\" I haven't fully grokked the source to determine the FTM requirements;
+.\" in part, the following has been tested by experiment.
+.ad l
+.BR fpclassify (),
+.BR isfinite (),
+.BR isnormal ():
+_XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
+.I cc\ -std=c99
+.br
+.BR isnan ():
+_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE || _ISOC99_SOURCE; or
+.I cc\ -std=c99
+.br
+.BR isinf ():
+_BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; or
+.I cc\ -std=c99
+.ad b
.SH DESCRIPTION
Floating point numbers can have special values, such as
infinite or NaN.