From ea13b9803b8a849cb95aa4a9b15b1f007b9fd3b0 Mon Sep 17 00:00:00 2001 From: ru Date: Wed, 4 Dec 2002 18:57:46 +0000 Subject: Consistently mark std(in|out|err) with .Dv, because that's how they are marked up in stdio(3), and because they are defined expressions of type "FILE *". Approved by: re --- lib/libc/stdlib/getopt.3 | 2 +- lib/libc/stdlib/malloc.3 | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'lib/libc/stdlib') diff --git a/lib/libc/stdlib/getopt.3 b/lib/libc/stdlib/getopt.3 index 14c5fb4..8df433c 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 65173cf..8b8eafb 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 -- cgit v1.1