diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-04-05 23:32:54 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-04-05 23:32:54 +0000 |
commit | d179a27457c959dbe93b44c3803609138610472d (patch) | |
tree | ce5828f368682935810cc24c9b79ece5704fc1af /libc/misc | |
parent | 9f18d3e1a8da09598b75e9ebf1561a8909fb320e (diff) |
Add a fun pointer to make apps happy
Diffstat (limited to 'libc/misc')
-rw-r--r-- | libc/misc/error/error.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libc/misc/error/error.c b/libc/misc/error/error.c index 25ea5075c..ed1d91070 100644 --- a/libc/misc/error/error.c +++ b/libc/misc/error/error.c @@ -33,7 +33,11 @@ unsigned int error_message_count; /* Sometimes we want to have at most one error per line. This variable controls whether this mode is selected or not. */ -static int error_one_per_line; +int error_one_per_line; +/* If NULL, error will flush stdout, then print on stderr the program + name, a colon and a space. Otherwise, error will call this + function without parameters instead. */ +void (*error_print_progname) (void) = NULL; void __error (int status, int errnum, const char *message, ...) |