|
dpkg 1.22.7-3-g89f48
|
#include <config.h>#include <compat.h>#include <errno.h>#include <string.h>#include <unistd.h>#include <stdarg.h>#include <stdlib.h>#include <stdio.h>#include <dpkg/macros.h>#include <dpkg/i18n.h>#include <dpkg/progname.h>#include <dpkg/color.h>#include <dpkg/ehandle.h>Data Structures | |
| struct | cleanup_entry |
| struct | error_context |
Macros | |
| #define | NCALLS 2 |
Functions | |
| void | catch_fatal_error (void) |
| Default fatal error handler. | |
| void | print_fatal_error (const char *emsg, const void *data) |
| void | push_error_context_func (error_handler_func *handler, error_printer_func *printer, const void *printer_data) |
| void | push_error_context_jump (jmp_buf *jumper, error_printer_func *printer, const void *printer_data) |
| void | push_error_context (void) |
| void | push_checkpoint (int mask, int value) |
| Push an error cleanup checkpoint. | |
| void | push_cleanup (void(*call)(int argc, void **argv), int mask, unsigned int nargs,...) |
| void | push_cleanup_fallback (void(*call1)(int argc, void **argv), int mask1, void(*call2)(int argc, void **argv), int mask2, unsigned int nargs,...) |
| void | pop_cleanup (int flagset) |
| void | pop_error_context (int flagset) |
| Unwind the current error context by running its registered cleanups. | |
| void | ohshit (const char *fmt,...) |
| void | ohshitv (const char *fmt, va_list args) |
| void | ohshite (const char *fmt,...) |
| void | do_internerr (const char *file, int line, const char *func, const char *fmt,...) |
Variables | |
| volatile int | onerr_abort = 0 |
| #define NCALLS 2 |
| void* args[20] |
Referenced by badusage(), command_add_args(), command_add_argv(), compress_filter(), debug(), decompress_filter(), do_internerr(), dpkg_error_print(), dpkg_put_errno(), dpkg_put_error(), dpkg_put_warn(), forcibleerr(), info(), log_message(), m_asprintf(), m_vasprintf(), maintscript_installed(), maintscript_new(), maintscript_postinst(), notice(), ohshit(), ohshite(), ohshitv(), parse_error(), parse_lax_problem(), parse_problem(), parse_warn(), push_cleanup(), push_cleanup_fallback(), statusfd_send(), str_concat(), str_fmt(), varbuf_printf(), varbuf_vprintf(), warning(), and warningv().
| struct cleanup_entry ce |
| char errmsg[4096] |
Emergency error message buffer.
The size is estimated using the following heuristic:
Referenced by ohshite().