]> git.ozlabs.org Git - yaboot.git/blob - include/et/com_err.h
Merge branch 'netboot'
[yaboot.git] / include / et / com_err.h
1 /*
2  * Header file for common error description library.
3  *
4  * Copyright 1988, Student Information Processing Board of the
5  * Massachusetts Institute of Technology.
6  *
7  * For copyright and distribution info, see the documentation supplied
8  * with this package.
9  */
10
11 #ifndef __COM_ERR_H
12
13 typedef long errcode_t;
14
15 #ifdef __STDC__
16 #include <stdarg.h>
17
18 /* ANSI C -- use prototypes etc */
19 void com_err (const char *, long, const char *, ...);
20 void com_err_va (const char *whoami, errcode_t code, const char *fmt,
21                  va_list args);
22 char const *error_message (long);
23 extern void (*com_err_hook) (const char *, long, const char *, va_list);
24 void (*set_com_err_hook (void (*) (const char *, long, const char *, va_list)))
25     (const char *, long, const char *, va_list);
26 void (*reset_com_err_hook (void)) (const char *, long, const char *, va_list);
27 int init_error_table(const char * const *msgs, int base, int count);
28 #else
29 /* no prototypes */
30 void com_err ();
31 void com_err_va ();
32 char *error_message ();
33 extern void (*com_err_hook) ();
34 void (*set_com_err_hook ()) ();
35 void (*reset_com_err_hook ()) ();
36 int init_error_table();
37 #endif
38
39 #define __COM_ERR_H
40 #endif /* ! defined(__COM_ERR_H) */