~ubuntu-branches/ubuntu/hardy/silo/hardy-updates

« back to all changes in this revision

Viewing changes to include/et/com_err.h

  • Committer: Bazaar Package Importer
  • Author(s): Fabio M. Di Nitto
  • Date: 2007-10-25 09:28:08 UTC
  • mfrom: (15.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071025092808-1yhj12t7s4zqsfu5
Tags: 1.4.13a+git20070930-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Build with -fno-stack-protector.
  - Change silo.postinst to automatically update the boot block without
    invoking siloconfig and keep asking questions on upgrades.
  - Convert silo.conf to use /dev/disk/by-uuid.
  - Ubuntu maintainer foobar.
  - Fix debian/rules call to dh_installdocs.
  - Drop the requirement of gcc-4.1 and start using default gcc.

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) */