diff options
author | Garrett Wollman <wollman@FreeBSD.org> | 1995-01-14 22:23:41 +0000 |
---|---|---|
committer | Garrett Wollman <wollman@FreeBSD.org> | 1995-01-14 22:23:41 +0000 |
commit | af4d8ead38cac8e7026de67ff7ba3b744623c279 (patch) | |
tree | 77542679c39d3d1f555f94fe8f357cc9d8a36be7 /lib/libcom_err/com_err.h | |
parent | e7f8d55240ec1c16dd7d3c836c9922e4bb26b3ce (diff) | |
download | src-af4d8ead38cac8e7026de67ff7ba3b744623c279.tar.gz src-af4d8ead38cac8e7026de67ff7ba3b744623c279.zip |
The Common Error Description Library, developed by MIT SIPB and used by
a number of (ex-)Athena programs. Breaking my own rules for importing
somewhat, as this code does not appear to be actively maintained by anyone
(not that it really needs it).
Notes
Notes:
svn path=/cvs2svn/branches/sipb/; revision=5622
Diffstat (limited to 'lib/libcom_err/com_err.h')
-rw-r--r-- | lib/libcom_err/com_err.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/libcom_err/com_err.h b/lib/libcom_err/com_err.h new file mode 100644 index 000000000000..7bea01004317 --- /dev/null +++ b/lib/libcom_err/com_err.h @@ -0,0 +1,36 @@ +/* + * Header file for common error description library. + * + * Copyright 1988, Student Information Processing Board of the + * Massachusetts Institute of Technology. + * + * For copyright and distribution info, see the documentation supplied + * with this package. + */ + +#ifndef __COM_ERR_H + +#ifdef __STDC__ +#ifndef __HIGHC__ /* gives us STDC but not stdarg */ +#include <stdarg.h> +#else +#include <varargs.h> +#endif +/* ANSI C -- use prototypes etc */ +void com_err (const char *, long, const char *, ...); +char const *error_message (long); +void (*com_err_hook) (const char *, long, const char *, va_list); +void (*set_com_err_hook (void (*) (const char *, long, const char *, va_list))) + (const char *, long, const char *, va_list); +void (*reset_com_err_hook ()) (const char *, long, const char *, va_list); +#else +/* no prototypes */ +void com_err (); +char *error_message (); +void (*com_err_hook) (); +void (*set_com_err_hook ()) (); +void (*reset_com_err_hook ()) (); +#endif + +#define __COM_ERR_H +#endif /* ! defined(__COM_ERR_H) */ |