mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-20 02:01:19 +01:00
37 lines
1.0 KiB
C
37 lines
1.0 KiB
C
|
/*
|
||
|
* 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) */
|