Title: et Version: 1 Submitted: May 7 1990 Author: "Jonathan I. Kamens" Submittor: "Jonathan I. Kamens" Description: Error table compiler and library [ This was originally bundled into the Delete package, but I split it out because I think it should be available more easily. It's used in lots of Athena software. The introduction below comes from the manpage. The file texinfo.tex was split into two parts for posting. --r$ ] This is an error-table library. #include void com_err (whoami, code, format, ...); const char *whoami; long code; const char *format; proc = set_com_err_hook (proc); void (* proc) (const char *, long, const char *, va_list); proc = reset_com_err_hook (); void initialize_XXXX_error_table (); Com_err displays an error message on the standard error stream stderr composed of the whoami string, which should specify the program name or some subportion of a program, followed by an error message generated from the code value (derived from compile_et, and a string produced using the format string and any following arguments, in the same style as fprintf. The behavior of com_err can be modified using set_com_err_hook; this defines a procedure which is called with the arguments passed to com_err, instead of the default internal procedure which sends the formatted text to error output. Thus the error messages from a program can all easily be diverted to another form of diagnostic logging, such as syslog (3). Reset_com_err_hook may be used to restore the behavior of com_err to its default form. Both procedures return the previous ``hook'' value. These ``hook'' procedures must have the declaration given for proc above in the synopsis.