void err_msg(const char *fmt, ...) { va_list ap; va_start(ap, fmt); err_doit(0, LOG_INFO, fmt, ap); va_end(ap); return; }
/* * Fatal error unrelated to a system call. * Error code passed as explict parameter. * Print a message and terminate. */ void err_exit(int error, const char *fmt, ...) { va_list ap; va_start(ap, fmt); err_doit(1, error, fmt, ap); va_end(ap); exit(1); }
void err_ret(const char *fmt, ...) { va_list ap; va_start(ap, fmt); err_doit(1, fmt, ap); va_end(ap); return; }
void err_quit(const char *fmt, ...) { va_list ap; va_start(ap, fmt); err_doit(0, fmt, ap); va_end(ap); exit(EXIT_FAILURE); }
void err_sys(const char* fmt,...) { va_list ap; va_start(ap,fmt); //err_doit(1,LOG_ERR,fmt,ap); err_doit(1,1,fmt,ap); va_end(ap); exit(1); }
void err_dump(const char *fmt, ...) { va_list ap; va_start(ap, fmt); err_doit(1, errno, fmt, ap); va_end(ap); abort(); exit(1); }
/* * === FUNCTION ====================================================================== * Name: err_sys * Description: Fatal error related to a system call. Print a message and * terminate. * ===================================================================================== */ void err_sys ( const char *fmt, ... ) { va_list ap; va_start(ap,fmt); err_doit(1, fmt, ap); va_end(ap); exit(EXIT_FAILURE); } /* ----- end of function err_sys ----- */
void err_dump(const char *fmt, ...) { va_list ap; va_start(ap, fmt); err_doit(1, LOG_ERR, fmt, ap); va_end(ap); abort(); /* dump core and terminate */ exit(1); /* shouldn't get here */ }
void err_sys (const char *fmt, ...) { va_list ap; va_start (ap, fmt); err_doit (1, errno, fmt, ap); va_end (ap); exit (-1); }
void err_quit(const char *fmt, ...) { va_list ap; va_start(ap, fmt); err_doit(1, LOG_ERR, fmt, ap); /* sunny: unp default: no errorNr */ va_end(ap); exit(1); }
void err_msg(const char *fmt, ...) { va_list ap; va_start(ap, fmt); err_doit(1, LOG_INFO, fmt, ap); /* sunny: unp default: 0, no errNr */ va_end(ap); return; }
void err_warn(const char *fmt, ...) { va_list ap; va_start(ap, fmt); err_doit(0, LOG_WARNING, fmt, ap); va_end(ap); return; }
void err_quit(const char *fmt, ...) { va_list ap; va_start(ap, fmt); err_doit(0, LOG_ERR, fmt, ap); va_end(ap); exit(1); }
void /* $f err_msg $ */ err_msg(const char *fmt, ...) { va_list ap; va_start(ap, fmt); err_doit(0, fmt, ap); va_end(ap); return; }
void err_msg (enum msgtype type, const char *fmt, ...) { va_list ap; va_start (ap, fmt); err_doit (type, 0, fmt, ap); va_end (ap); return; }
/* * === FUNCTION ====================================================================== * Name: err_msg * Description: Nonfatal error related to a system call. Print a message and * return. * ===================================================================================== */ void err_msg ( const char *fmt, ... ) { va_list ap; va_start(ap,fmt); err_doit(0, fmt, ap); va_end(ap); return; } /* ----- end of function err_msg ----- */
void /* $f err_quit $ */ err_quit(const char *fmt, ...) { va_list ap; va_start(ap, fmt); err_doit(0, fmt, ap); va_end(ap); exit(1); }
void err_fatal (const char *fmt, ...) { va_list ap; va_start (ap, fmt); err_doit (MSGTYPE_ERROR, 0, fmt, ap); va_end (ap); exit (1); }
/* * === FUNCTION ====================================================================== * Name: err_dump * Description: Fatal error related to a system call. Print a message, dump * core, and terminate. * ===================================================================================== */ void err_dump ( const char *fmt, ... ) { va_list ap; va_start(ap,fmt); err_doit(1, fmt, ap); va_end(ap); abort(); exit(EXIT_FAILURE); return; } /* ----- end of function err_dump ----- */
void err_sys(const char *fmt, ...) { va_list ap; va_start(ap, fmt); err_doit(1, LOG_ERR, fmt, ap); va_end(ap); if (!daemon_proc) { exit(1); } }
void err_system (const char *fmt,...) { int e; va_list ap; e = errno; va_start (ap, fmt); err_doit (MSGTYPE_ERROR, e, fmt, ap); va_end (ap); exit (1); }
void err_msg(const char *fmt, ...) { va_list ap; va_start(ap, fmt); err_doit(0, 0, fmt, ap); va_end(ap); }