summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/error/error.c6
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, ...)