aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
Diffstat (limited to 'man')
l---------man/libsimple_eprintf_postprint.31
l---------man/libsimple_eprintf_preprint.31
-rw-r--r--man/libsimple_vweprintf.343
3 files changed, 44 insertions, 1 deletions
diff --git a/man/libsimple_eprintf_postprint.3 b/man/libsimple_eprintf_postprint.3
new file mode 120000
index 0000000..39ff456
--- /dev/null
+++ b/man/libsimple_eprintf_postprint.3
@@ -0,0 +1 @@
+libsimple_vweprintf.3 \ No newline at end of file
diff --git a/man/libsimple_eprintf_preprint.3 b/man/libsimple_eprintf_preprint.3
new file mode 120000
index 0000000..39ff456
--- /dev/null
+++ b/man/libsimple_eprintf_preprint.3
@@ -0,0 +1 @@
+libsimple_vweprintf.3 \ No newline at end of file
diff --git a/man/libsimple_vweprintf.3 b/man/libsimple_vweprintf.3
index ca241b1..06d339d 100644
--- a/man/libsimple_vweprintf.3
+++ b/man/libsimple_vweprintf.3
@@ -6,6 +6,8 @@ libsimple_vweprintf \- print an error message
#include <libsimple.h>
extern int libsimple_default_failure_exit;
+extern void (*libsimple_eprint_preprint)(void);
+extern void (*libsimple_eprint_postprint)(void);
void libsimple_vweprintf(const char *\fIfmt\fP, va_list \fIap\fP);
static inline void libsimple_weprintf(const char *\fIfmt\fP, ...);
@@ -74,7 +76,7 @@ does not start with
the output is preffixed with
.nf
- \fB\(dq%s: \(dq, \fPIargv0\fP
+ \fB\(dq%s: \(dq, \fP\fIargv0\fP
.fi
.PP
The
@@ -110,6 +112,45 @@ functions that terminate the process by calling
the exit value of the process will be
.IR libsimple_default_failure_exit (3),
which is 1 by default.
+.PP
+The
+.BR libsimple_vweprintf (),
+.BR libsimple_weprintf (),
+.BR libsimple_venprintf (),
+.BR libsimple_enprintf (),
+.BR libsimple_veprintf (),
+and
+.BR libsimple_eprintf ()
+functions call
+.I libsimple_eprint_preprint
+unless it is
+.B NULL
+before they print the message, after printing
+the message they call
+.I libsimple_eprint_postprint
+unless it is
+.BR NULL .
+The
+.I libsimple_eprint_preprint
+and
+.I libsimple_eprint_postprint
+variables are
+.B NULL
+byte default.
+.I errno
+may have a different value from when the
+.BR libsimple_vweprintf (),
+.BR libsimple_weprintf (),
+.BR libsimple_venprintf (),
+.BR libsimple_enprintf (),
+.BR libsimple_veprintf (),
+or
+.BR libsimple_eprintf ()
+function called when
+.I libsimple_eprint_preprint
+or
+.I libsimple_eprint_postprint
+is called.
.SH RETURN VALUE
None.
.SH ERRORS