Update.
[platform/upstream/glibc.git] / mach / mach_error.h
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.
11  *
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.
15  *
16  * Carnegie Mellon requests users of this software to return to
17  *
18  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
19  *  School of Computer Science
20  *  Carnegie Mellon University
21  *  Pittsburgh PA 15213-3890
22  *
23  * any improvements or extensions that they make and grant Carnegie the
24  * rights to redistribute these changes.
25  */
26 /*
27  * HISTORY
28  * $Log$
29  * Revision 1.4  2001/04/01 05:03:14  roland
30  * 2001-03-11  Roland McGrath  <roland@frob.com>
31  *
32  *      * mach/mach_error.h: Fix ancient #endif syntax.
33  *      * hurd/hurdmalloc.c: Likewise.
34  *
35  * Revision 1.3  1997/03/16 17:42:25  drepper
36  * (mach_error_string, mach_error, mach_error_type): Always provide
37  * prototypes.
38  * (mach_error_fn_t): Comment out declaration; it appears to be entirely
39  * unused dead code.
40  *
41  * Revision 1.3  1997/03/14 15:26:31  thomas
42  * Wed Mar  5 10:40:05 1997  Thomas Bushnell, n/BSG  <thomas@gnu.ai.mit.edu>
43  *
44  *      * mach/mach_error.c (mach_error_string_int): Give full prototype.
45  *      * mach/errstring.c (mach_error_string_int): Likewise.
46  *      * mach/error_compat.c (__mach_error_map_compat): Likewise.
47  *
48  *      * mach/spin-solid.c: Include <mach/mach_traps.h>.
49  *      * mach/spin-solid.c (__spin_lock_solid): Provide arg to
50  *      swtch_pri.
51  *
52  *      * mach/mach_init.c: Include <mach/mig_support.h>.
53  *
54  *      * mach/mach_error.h (mach_error_string, mach_error,
55  *      mach_error_type): Always provide prototypes.
56  *
57  * Revision 1.2  1993/11/23 20:39:08  mib
58  * entered into RCS
59  *
60  * Revision 2.2  92/01/16  00:08:10  rpd
61  *      Moved from user collection to mk collection.
62  *
63  * Revision 2.2  91/03/27  15:39:13  mrt
64  *      First checkin
65  *
66  */
67 /*
68  *      File:   mach_error.h
69  *      Author: Douglas Orr, Carnegie Mellon University
70  *      Date:   Mar. 1988
71  *
72  *      Definitions of routines in mach_error.c
73  */
74
75 #ifndef _MACH_ERROR_
76 #define _MACH_ERROR_    1
77
78 #include <mach/error.h>
79
80 const char      *mach_error_string(
81 /*
82  *      Returns a string appropriate to the error argument given
83  */
84         mach_error_t error_value
85                                 );
86
87 void            mach_error(
88 /*
89  *      Prints an appropriate message on the standard error stream
90  */
91         char            *str,
92         mach_error_t    error_value
93                                 );
94
95 const char      *mach_error_type(
96 /*
97  *      Returns a string with the error system, subsystem and code
98 */
99         mach_error_t    error_value
100                                 );
101
102 #endif  /* _MACH_ERROR_ */