com_err.h revision 50764
150764Smarkm/*
250764Smarkm * Copyright (c) 1997, 1998 Kungliga Tekniska H�gskolan
350764Smarkm * (Royal Institute of Technology, Stockholm, Sweden).
450764Smarkm * All rights reserved.
550764Smarkm *
650764Smarkm * Redistribution and use in source and binary forms, with or without
750764Smarkm * modification, are permitted provided that the following conditions
850764Smarkm * are met:
950764Smarkm *
1050764Smarkm * 1. Redistributions of source code must retain the above copyright
1150764Smarkm *    notice, this list of conditions and the following disclaimer.
1250764Smarkm *
1350764Smarkm * 2. Redistributions in binary form must reproduce the above copyright
1450764Smarkm *    notice, this list of conditions and the following disclaimer in the
1550764Smarkm *    documentation and/or other materials provided with the distribution.
1650764Smarkm *
1750764Smarkm * 3. All advertising materials mentioning features or use of this software
1850764Smarkm *    must display the following acknowledgement:
1950764Smarkm *      This product includes software developed by Kungliga Tekniska
2050764Smarkm *      H�gskolan and its contributors.
2150764Smarkm *
2250764Smarkm * 4. Neither the name of the Institute nor the names of its contributors
2350764Smarkm *    may be used to endorse or promote products derived from this software
2450764Smarkm *    without specific prior written permission.
2550764Smarkm *
2650764Smarkm * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
2750764Smarkm * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2850764Smarkm * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2950764Smarkm * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
3050764Smarkm * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
3150764Smarkm * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
3250764Smarkm * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
3350764Smarkm * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
3450764Smarkm * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3550764Smarkm * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3650764Smarkm * SUCH DAMAGE.
3750764Smarkm */
3850764Smarkm
3950764Smarkm/* $Id: com_err.h,v 1.3 1998/05/02 20:13:28 assar Exp $ */
4050764Smarkm
4150764Smarkm/* MIT compatible com_err library */
4250764Smarkm
4350764Smarkm#ifndef __COM_ERR_H__
4450764Smarkm#define __COM_ERR_H__
4550764Smarkm
4650764Smarkm#ifdef __STDC__
4750764Smarkm#include <stdarg.h>
4850764Smarkm#endif
4950764Smarkm
5050764Smarkm#ifndef __P
5150764Smarkm#ifdef __STDC__
5250764Smarkm#define __P(X) X
5350764Smarkm#else
5450764Smarkm#define __P(X) ()
5550764Smarkm#endif
5650764Smarkm#endif
5750764Smarkm
5850764Smarkm#include <com_right.h>
5950764Smarkm
6050764Smarkmtypedef void (*errf) __P((const char *, long, const char *, va_list));
6150764Smarkm
6250764Smarkmconst char * error_message __P((long));
6350764Smarkmint init_error_table __P((const char**, long, int));
6450764Smarkm
6550764Smarkmvoid com_err_va __P((const char *, long, const char *, va_list));
6650764Smarkmvoid com_err __P((const char *, long, const char *, ...));
6750764Smarkm
6850764Smarkmerrf set_com_err_hook __P((errf));
6950764Smarkmerrf reset_com_err_hook __P((void));
7050764Smarkm
7150764Smarkmconst char *error_table_name(int num);
7250764Smarkm
7350764Smarkm#endif /* __COM_ERR_H__ */
74