diff options
author | Mattias Andrée <maandree@kth.se> | 2020-06-09 18:38:43 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2020-06-09 18:38:43 +0200 |
commit | 22ae5a6a98ec6aa98207bddc37a1200ea74d134b (patch) | |
tree | eedbf11d6fb597573a3b6d1a55571af8c5fa57ca /liberror_pop_error.3 | |
parent | Fix filename typo (diff) | |
download | liberror-22ae5a6a98ec6aa98207bddc37a1200ea74d134b.tar.gz liberror-22ae5a6a98ec6aa98207bddc37a1200ea74d134b.tar.bz2 liberror-22ae5a6a98ec6aa98207bddc37a1200ea74d134b.tar.xz |
Add liberror_pop_error and liberror_set_error_existing
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'liberror_pop_error.3')
-rw-r--r-- | liberror_pop_error.3 | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/liberror_pop_error.3 b/liberror_pop_error.3 new file mode 100644 index 0000000..61bcfbb --- /dev/null +++ b/liberror_pop_error.3 @@ -0,0 +1,52 @@ +.TH LIBERROR_POP_ERROR 3 2020-06-09 liberror +.SH NAME +liberror_pop_error \- replaces the current error with its cause +.SH SYNOPSIS +.nf +#include <liberror.h> + +void liberror_pop_error(void); +.fi +.PP +Link with +.IR \-lerror . +.SH DESCRIPTION +The +.BR liberror_pop_error () +function assigns the causal error for the +current error set for the calling thread +to the thread. If the thread does not have +an error set, nothing will happen. If the +thread's error does not have a cause, it +will be reset without a replacement. +.SH RETURN VALUE +None. +.SH ERRORS +Failure to pop the error is impossible. +.I errno +will not be changed. +.SH EXAMPLES +None. +.SH APPLICATION USAGE +None. +.SH RATIONALE +None. +.SH FUTURE DIRECTIONS +None. +.SH NOTES +None. +.SH SEE ALSO +.BR liberror (7), +.BR liberror.h (0), +.BR liberror_copy_error (3), +.BR liberror_end (3), +.BR liberror_free_error (3), +.BR liberror_get_error (3), +.BR liberror_print_backtrace (3), +.BR liberror_print_error (3), +.BR liberror_reset_error (3), +.BR liberror_save_backtrace (3), +.BR liberror_set_error (3), +.BR liberror_set_error_errno (3), +.BR liberror_set_error_existing (3), +.BR liberror_start (3) |