~ubuntu-branches/debian/jessie/arcboot/jessie

« back to all changes in this revision

Viewing changes to e2fslib/com_err.h

  • Committer: Bazaar Package Importer
  • Author(s): Guido Guenther
  • Date: 2004-03-02 12:01:14 UTC
  • Revision ID: james.westby@ubuntu.com-20040302120114-0pukal9hlpt3k0l7
Tags: 0.3.8.1
correct subarch detection for IP32

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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) */