Update.
[glibc.git] / mach / mach_error.h
blobf88d1732e820ca0ca6b925beaac5d793d319413a
1 /*
2 * Mach Operating System
3 * Copyright (c) 1991,1990,1989 Carnegie Mellon University
4 * All Rights Reserved.
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the
9 * software, derivative works or modified versions, and any portions
10 * thereof, and that both notices appear in supporting documentation.
12 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS
13 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
16 * Carnegie Mellon requests users of this software to return to
18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 * School of Computer Science
20 * Carnegie Mellon University
21 * Pittsburgh PA 15213-3890
23 * any improvements or extensions that they make and grant Carnegie the
24 * rights to redistribute these changes.
27 * HISTORY
28 * $Log$
29 * Revision 1.3 1997/03/16 17:42:25 drepper
30 * (mach_error_string, mach_error, mach_error_type): Always provide
31 * prototypes.
32 * (mach_error_fn_t): Comment out declaration; it appears to be entirely
33 * unused dead code.
35 * Revision 1.3 1997/03/14 15:26:31 thomas
36 * Wed Mar 5 10:40:05 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
38 * * mach/mach_error.c (mach_error_string_int): Give full prototype.
39 * * mach/errstring.c (mach_error_string_int): Likewise.
40 * * mach/error_compat.c (__mach_error_map_compat): Likewise.
42 * * mach/spin-solid.c: Include <mach/mach_traps.h>.
43 * * mach/spin-solid.c (__spin_lock_solid): Provide arg to
44 * swtch_pri.
46 * * mach/mach_init.c: Include <mach/mig_support.h>.
48 * * mach/mach_error.h (mach_error_string, mach_error,
49 * mach_error_type): Always provide prototypes.
51 * Revision 1.2 1993/11/23 20:39:08 mib
52 * entered into RCS
54 * Revision 2.2 92/01/16 00:08:10 rpd
55 * Moved from user collection to mk collection.
57 * Revision 2.2 91/03/27 15:39:13 mrt
58 * First checkin
62 * File: mach_error.h
63 * Author: Douglas Orr, Carnegie Mellon University
64 * Date: Mar. 1988
66 * Definitions of routines in mach_error.c
69 #ifndef _MACH_ERROR_
70 #define _MACH_ERROR_ 1
72 #include <mach/error.h>
74 const char *mach_error_string(
76 * Returns a string appropriate to the error argument given
78 mach_error_t error_value
81 void mach_error(
83 * Prints an appropriate message on the standard error stream
85 char *str,
86 mach_error_t error_value
89 const char *mach_error_type(
91 * Returns a string with the error system, subsystem and code
93 mach_error_t error_value
96 #endif _MACH_ERROR_