raw
vtools_genesis          1 #ifndef _ERROR_H
vtools_genesis 2 #define _ERROR_H 1
vtools_genesis 3
vtools_genesis 4 /* Print a message with |fprintf(stderr, format, ...);| if |errnum| is
vtools_genesis 5 nonzero, follow it with ": " and |strerror(errnum)|. If |status|
vtools_genesis 6 is nonzero, terminate the program with |exit(status)|. */
vtools_genesis 7
vtools_genesis 8 extern void error(int __status, int __errnum, const char *__format, ...);
vtools_genesis 9
vtools_genesis 10 extern void error_at_line(int __status, int __errnum, const char *__fname,
vtools_genesis 11 unsigned int __lineno, const char *__format, ...);
vtools_genesis 12
vtools_genesis 13 /* If |NULL|, error will flush |stdout|, then print on |stderr| the
vtools_genesis 14 program name, a colon and a space. Otherwise, error will call this
vtools_genesis 15 function without parameters instead. */
vtools_genesis 16 extern void (*error_print_progname)(void);
vtools_genesis 17
vtools_genesis 18 /* This variable is incremented each time |error| is called. */
vtools_genesis 19 extern unsigned int error_message_count;
vtools_genesis 20
vtools_genesis 21 /* Sometimes we want to have at most one error per line. This
vtools_genesis 22 variable controls whether this mode is selected or not. */
vtools_genesis 23 extern int error_one_per_line;
vtools_genesis 24
vtools_genesis 25 #endif