aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2007-07-09 20:07:44 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2007-07-09 20:07:44 +0000
commita9b4ebbc8f99cd01f77f909ef7c93f9dbae47b5c (patch)
treeb37d196a6a6338f789487920ccafa5f2ee6f4f6c /man3
parentc47291a73fa724a95ead942a5bdb69a5b44c58db (diff)
downloadman-pages-a9b4ebbc8f99cd01f77f909ef7c93f9dbae47b5c.tar.gz
ffix
Diffstat (limited to 'man3')
-rw-r--r--man3/ceil.37
-rw-r--r--man3/cfree.34
-rw-r--r--man3/infnan.311
-rw-r--r--man3/sqrt.34
-rw-r--r--man3/strtoul.316
5 files changed, 31 insertions, 11 deletions
diff --git a/man3/ceil.3 b/man3/ceil.3
index 550d9d5e9e..3527a5d666 100644
--- a/man3/ceil.3
+++ b/man3/ceil.3
@@ -50,7 +50,8 @@ and
can occur.
If \fIx\fP is NaN, then NaN is returned and
.I errno
-may be set to EDOM.
+may be set to
+.BR EDOM .
.SH "CONFORMING TO"
The
.BR ceil ()
@@ -59,7 +60,9 @@ The other functions are from C99.
.SH NOTES
SUSv2 and POSIX.1-2001 contain text about overflow (which might set
.I errno
-to ERANGE, or raise an exception).
+to
+.BR ERANGE ,
+or raise an exception).
In practice, the result cannot overflow on any current machine,
so this error-handling stuff is just nonsense.
(More precisely, overflow can happen only when the maximum value
diff --git a/man3/cfree.3 b/man3/cfree.3
index 380ce3bb47..9c6fe6249f 100644
--- a/man3/cfree.3
+++ b/man3/cfree.3
@@ -100,7 +100,9 @@ The SunOS version of
returns 1 on success and 0 on failure.
In case of error,
.I errno
-is set to EINVAL: the value of
+is set to
+.BR EINVAL :
+the value of
.I ptr
was not a pointer to a block previously allocated by
one of the routines in the
diff --git a/man3/infnan.3 b/man3/infnan.3
index c36cac5348..afdafc7eac 100644
--- a/man3/infnan.3
+++ b/man3/infnan.3
@@ -44,14 +44,19 @@ The
.BR infnan ()
function returns a suitable value for infinity and
"not-a-number" (NaN) results.
-The value of \fIerror\fP can be ERANGE
+The value of \fIerror\fP can be
+.B ERANGE
to represent infinity or anything else to represent NaN.
\fIerrno\fP
is also set.
.SH "RETURN VALUE"
-If \fIerror\fP is ERANGE (Infinity), HUGE_VAL is returned.
+If \fIerror\fP is
+.B ERANGE
+(Infinity),
+.B HUGE_VAL
+is returned.
.PP
-If \fIerror\fP is \-ERANGE (\-Infinity), \-HUGE_VAL is returned.
+If \fIerror\fP is \-\fBERANGE\fP (\-Infinity), \-\fBHUGE_VAL\fP is returned.
.PP
If \fIerror\fP is anything else, NAN is returned.
.SH ERRORS
diff --git a/man3/sqrt.3 b/man3/sqrt.3
index 38a8767d95..be8b62bab7 100644
--- a/man3/sqrt.3
+++ b/man3/sqrt.3
@@ -46,7 +46,9 @@ Link with \fI-lm\fP.
The
.BR sqrt ()
function returns the non-negative square root of \fIx\fP.
-It fails and sets \fIerrno\fP to EDOM, if \fIx\fP is negative.
+It fails and sets \fIerrno\fP to
+.BR EDOM ,
+if \fIx\fP is negative.
.SH ERRORS
.TP
.B EDOM
diff --git a/man3/strtoul.3 b/man3/strtoul.3
index dac282622f..470d0220bf 100644
--- a/man3/strtoul.3
+++ b/man3/strtoul.3
@@ -103,11 +103,16 @@ conversion represented as an unsigned value,
unless the original (non-negated) value would overflow; in
the latter case,
.BR strtoul ()
-returns ULONG_MAX and sets the global
-variable \fIerrno\fP to ERANGE.
+returns
+.B ULONG_MAX
+and sets the global variable \fIerrno\fP to
+.BR ERANGE .
Precisely the same holds for
.BR strtoull ()
-(with ULLONG_MAX instead of ULONG_MAX).
+(with
+.B ULLONG_MAX
+instead of
+.BR ULONG_MAX ).
.SH ERRORS
.TP
.B EINVAL
@@ -129,7 +134,10 @@ to C99 and POSIX.1-2001.
.SH NOTES
Since
.BR strtoul ()
-can legitimately return 0 or LONG_MAX (LLONG_MAX for
+can legitimately return 0 or
+.B LONG_MAX
+.RB ( LLONG_MAX
+for
.BR strtoull ())
on both success and failure, the calling program should set
.I errno