summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2002-12-04 18:57:46 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2002-12-04 18:57:46 +0000
commitae828962685b8ae9e5104ce8e7fe8b05effcb9ec (patch)
tree98ead4f30dc156961d0a69e06b26fd806200f3b6 /lib/libc/stdlib
parenta597332c22f4fda1d02426fc5fe0e18e3f5a6b10 (diff)
Notes
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/getopt.32
-rw-r--r--lib/libc/stdlib/malloc.38
2 files changed, 7 insertions, 3 deletions
diff --git a/lib/libc/stdlib/getopt.3 b/lib/libc/stdlib/getopt.3
index 14c5fb4a7bec..8df433c368d6 100644
--- a/lib/libc/stdlib/getopt.3
+++ b/lib/libc/stdlib/getopt.3
@@ -145,7 +145,7 @@ function encounters a character not found in the string
.Va optstring
or detects
a missing option argument it writes an error message to the
-.Em stderr
+.Dv stderr
and returns
.Ql ?\& .
Setting
diff --git a/lib/libc/stdlib/malloc.3 b/lib/libc/stdlib/malloc.3
index 65173cf575c9..8b8eafb1ec8e 100644
--- a/lib/libc/stdlib/malloc.3
+++ b/lib/libc/stdlib/malloc.3
@@ -223,7 +223,9 @@ This option is incompatible with the
option.
.It X
Rather than return failure for any allocation function,
-display a diagnostic message on stderr and cause the program to drop
+display a diagnostic message on
+.Dv stderr
+and cause the program to drop
core (using
.Xr abort 3 ) .
This option should be set at compile time by including the following in
@@ -390,7 +392,9 @@ The
.Va _malloc_message
variable allows the programmer to override the function which emits
the text strings forming the errors and warnings if for some reason
-the stderr filedescriptor is not suitable for this.
+the
+.Dv stderr
+file descriptor is not suitable for this.
Please note that doing anything which tries to allocate memory in
this function will assure death of the process.
.Pp