Whamcloud - gitweb
Many files:
[tools/e2fsprogs.git] / lib / 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 #ifndef __HIGHC__               /* gives us STDC but not stdarg */
17 #include <stdarg.h>
18 #else
19 #include <varargs.h>
20 #endif
21 /* ANSI C -- use prototypes etc */
22 void com_err (const char *, long, const char *, ...);
23 char const *error_message (long);
24 void (*com_err_hook) (const char *, long, const char *, va_list);
25 void (*set_com_err_hook (void (*) (const char *, long, const char *, va_list)))
26     (const char *, long, const char *, va_list);
27 void (*reset_com_err_hook (void)) (const char *, long, const char *, va_list);
28 #else
29 /* no prototypes */
30 void com_err ();
31 char *error_message ();
32 void (*com_err_hook) ();
33 void (*set_com_err_hook ()) ();
34 void (*reset_com_err_hook ()) ();
35 #endif
36
37 #define __COM_ERR_H
38 #endif /* ! defined(__COM_ERR_H) */