diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-03-04 23:50:00 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-03-04 23:50:00 +0100 |
| commit | 76d0af5599554d11f104d582cdac8fbaa8569fcc (patch) | |
| tree | 0ed9889a86d52ebd208382f2fd49dad0570d1f8c /man/zerror.3 | |
| parent | Clean up, fix a few bugs, and add a test (diff) | |
| download | libzahl-76d0af5599554d11f104d582cdac8fbaa8569fcc.tar.gz libzahl-76d0af5599554d11f104d582cdac8fbaa8569fcc.tar.bz2 libzahl-76d0af5599554d11f104d582cdac8fbaa8569fcc.tar.xz | |
Clean up, add zerror and zperror, fix bugs and add more tests
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'man/zerror.3')
| -rw-r--r-- | man/zerror.3 | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/man/zerror.3 b/man/zerror.3 new file mode 100644 index 0000000..837b3df --- /dev/null +++ b/man/zerror.3 @@ -0,0 +1,41 @@ +.TH ZERROR 3 libzahl +.SH NAME +zerror - Get the error that caused a jump to the jmp_buf passed to zsetup +.SH SYNOPSIS +.nf +#include <zahl.h> + +enum zerror zerror(const char **\fIdesc\fP); +.fi +.SH DESCRIPTION +.B zerror +shall return the error that caused a libzahl +function to perform a long jump to the point +specified to +.BR zsetup (3). +If +.I desc +is not +.BR 0 , +a textual description is set stored in +.IR *desc . +This string may be changed by a subsequent +call to +.BR strerror (3), +.BR perror (3), +.BR zperror (3), +and similar functions. +.P +Currently available +.B "enum zerror" +values are: +.P +.TP +.B ZERROR_ERRNO_SET +The error is stored in +.IR errno . +(The error may not be stored in +.I errno +until this function is called.) +.SH SEE ALSO +.BR zperror (3) |
