]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/matherr.3
CPU_SET.3, INFINITY.3, __ppc_get_timebase.3, __ppc_set_ppr_med.3, __ppc_yield.3,...
[thirdparty/man-pages.git] / man3 / matherr.3
index 2baf30014c6a3a9d0d63c086d027fdc615371b96..7533aad7ea5f913235b08c0c38658bb06c7c9a55 100644 (file)
@@ -62,7 +62,7 @@ after
 .BR matherr ()
 returns, the system then returns to the math function,
 which in turn returns to the caller.
-
+.PP
 The
 .BR matherr ()
 mechanism is supported by glibc, but is now obsolete:
@@ -73,7 +73,7 @@ and
 This page documents the glibc
 .BR matherr ()
 mechanism as an aid for maintaining and porting older applications.
-
+.PP
 To employ
 .BR matherr (),
 the programmer must define the
@@ -86,7 +86,7 @@ and assign the value
 .B _SVID_
 to the external variable
 .BR _LIB_VERSION .
-
+.PP
 The system provides a default version of
 .BR matherr ().
 This version does nothing, and returns zero
@@ -98,7 +98,7 @@ version, which will be invoked when an exception occurs.
 The function is invoked with one argument, a pointer to an
 .I exception
 structure, defined as follows:
-
+.PP
 .in +4n
 .nf
 struct exception {
@@ -169,7 +169,7 @@ and
 fields are the arguments supplied to the function
 .RI ( arg2
 is undefined for functions that take only one argument).
-
+.PP
 The
 .I retval
 field specifies the return value that the math
@@ -177,14 +177,14 @@ function will return to its caller.
 The programmer-defined
 .BR matherr ()
 can modify this field to change the return value of the math function.
-
+.PP
 If the
 .BR matherr ()
 function returns zero, then the system sets
 .I errno
 as described above, and may print an error message on standard error
 (see below).
-
+.PP
 If the
 .BR matherr ()
 function returns a nonzero value, then the system does not set
@@ -200,13 +200,13 @@ when calling
 .BR matherr ().
 The "Result" column is the default return value assigned to
 .IR exc\->retval .
-
+.PP
 The "Msg?" and "errno" columns describe the default behavior if
 .BR matherr ()
 returns zero.
 If the "Msg?" columns contains "y",
 then the system prints an error message on standard error.
-
+.PP
 The table uses the following notations and abbreviations:
 .RS
 .nf
@@ -319,12 +319,12 @@ If the optional third command-line argument is supplied,
 then it specifies an alternative return value that
 .BR matherr ()
 should assign as the return value of the math function.
-
+.PP
 The following example run, where
 .BR log (3)
 is given an argument of 0.0, does not use
 .BR matherr ():
-
+.PP
 .in +4n
 .nf
 .RB "$" " ./a.out 0.0"
@@ -332,11 +332,11 @@ errno: Numerical result out of range
 x=-inf
 .fi
 .in
-
+.PP
 In the following run,
 .BR matherr ()
 is called, and returns 0:
-
+.PP
 .in +4n
 .nf
 .RB "$" " ./a.out 0.0 0"
@@ -348,13 +348,13 @@ errno: Numerical argument out of domain
 x=-340282346638528859811704183484516925440.000000
 .fi
 .in
-
+.PP
 The message "log: SING error" was printed by the C library.
-
+.PP
 In the following run,
 .BR matherr ()
 is called, and returns a nonzero value:
-
+.PP
 .in +4n
 .nf
 .RB "$" " ./a.out 0.0 1"
@@ -364,16 +364,16 @@ matherr SING exception in log() function
 x=-340282346638528859811704183484516925440.000000
 .fi
 .in
-
+.PP
 In this case, the C library did not print a message, and
 .I errno
 was not set.
-
+.PP
 In the following run,
 .BR matherr ()
 is called, changes the return value of the math function,
 and returns a nonzero value:
-
+.PP
 .in +4n
 .nf
 .RB "$" " ./a.out 0.0 1 12345.0"