summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/getopt.34
-rw-r--r--lib/libc/stdlib/malloc.32
-rw-r--r--lib/libc/stdlib/strtod.31
-rw-r--r--lib/libc/stdlib/strtol.31
-rw-r--r--lib/libc/stdlib/strtoul.31
-rw-r--r--lib/libc/stdlib/tsearch.38
6 files changed, 9 insertions, 8 deletions
diff --git a/lib/libc/stdlib/getopt.3 b/lib/libc/stdlib/getopt.3
index 161492437189..7d8047260c10 100644
--- a/lib/libc/stdlib/getopt.3
+++ b/lib/libc/stdlib/getopt.3
@@ -125,7 +125,7 @@ The
function
returns \-1
when the argument list is exhausted, or
-.Ql ?
+.Ql ?\&
if a non-recognized
option is encountered.
The interpretation of options in the argument list may be cancelled
@@ -147,7 +147,7 @@ or detects
a missing option argument it writes an error message to the
.Em stderr
and returns
-.Ql ? .
+.Ql ?\& .
Setting
.Va opterr
to a zero will disable these error messages.
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3
index 6fa4f847fb37..c23d4c494863 100644
--- a/lib/libc/stdlib/malloc.3
+++ b/lib/libc/stdlib/malloc.3
@@ -261,6 +261,7 @@ If the environment variable
.Ev MALLOC_OPTIONS
is set, the characters it contains will be interpreted as flags to the
allocation functions.
+.El
.Sh RETURN VALUES
The
.Fn malloc
@@ -420,6 +421,7 @@ An unknown option was specified.
Even with the
.Dq A
option set, this warning is still only a warning.
+.El
.Sh SEE ALSO
.Xr brk 2 ,
.Xr alloca 3 ,
diff --git a/lib/libc/stdlib/strtod.3 b/lib/libc/stdlib/strtod.3
index 6a2dc52b1577..1d86a77f9ea4 100644
--- a/lib/libc/stdlib/strtod.3
+++ b/lib/libc/stdlib/strtod.3
@@ -102,6 +102,7 @@ is stored in
.Bl -tag -width Er
.It Bq Er ERANGE
Overflow or underflow occurred.
+.El
.Sh SEE ALSO
.Xr atof 3 ,
.Xr atoi 3 ,
diff --git a/lib/libc/stdlib/strtol.3 b/lib/libc/stdlib/strtol.3
index 3107676b7cf9..efa4385f164e 100644
--- a/lib/libc/stdlib/strtol.3
+++ b/lib/libc/stdlib/strtol.3
@@ -49,7 +49,6 @@
.Fd #include <limits.h>
.Ft long
.Fn strtol "const char *nptr" "char **endptr" "int base"
-
.Fd #include <sys/types.h>
.Fd #include <stdlib.h>
.Fd #include <limits.h>
diff --git a/lib/libc/stdlib/strtoul.3 b/lib/libc/stdlib/strtoul.3
index 6670d55bcf7f..1bde3e931204 100644
--- a/lib/libc/stdlib/strtoul.3
+++ b/lib/libc/stdlib/strtoul.3
@@ -49,7 +49,6 @@
.Fd #include <limits.h>
.Ft unsigned long
.Fn strtoul "const char *nptr" "char **endptr" "int base"
-
.Fd #include <sys/types.h>
.Fd #include <stdlib.h>
.Fd #include <limits.h>
diff --git a/lib/libc/stdlib/tsearch.3 b/lib/libc/stdlib/tsearch.3
index 4dcf658cadca..051eea4c7031 100644
--- a/lib/libc/stdlib/tsearch.3
+++ b/lib/libc/stdlib/tsearch.3
@@ -36,11 +36,11 @@
.Sh SYNOPSIS
.Fd #include <search.h>
.Ft void *
-.Fn tdelete "const void *key" "void **rootp", "int (*compar) (const void *, const void *)"
+.Fn tdelete "const void *key" "void **rootp" "int (*compar) (const void *, const void *)"
.Ft void *
-.Fn tfind "const void *key" "const void **rootp", "int (*compar) (const void *, const void *)"
+.Fn tfind "const void *key" "const void **rootp" "int (*compar) (const void *, const void *)"
.Ft void *
-.Fn tsearch "const void *key", "void **rootp", "int (*compar) (const void *, const void *)"
+.Fn tsearch "const void *key" "void **rootp" "int (*compar) (const void *, const void *)"
.Ft void
.Fn twalk "const void *root" "void (*compar) (const void *, VISIT, int)"
.Sh DESCRIPTION
@@ -85,7 +85,7 @@ will be adjusted.
.Pp
.Fn Twalk
walks the binary search tree rooted in
-.fa root
+.Fa root
and calls the function
.Fa action
on each node.