(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
[glibc.git] / mach / mach_error.h
blob78f7c526ea80e0ba6985833963d8f3b722e6d0f2
1 /*
2 * Mach Operating System
3 * Copyright (c) 1991,1990,1989 Carnegie Mellon University
4 * All Rights Reserved.
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.4 2001/04/01 05:03:14 roland
30 * 2001-03-11 Roland McGrath <roland@frob.com>
32 * * mach/mach_error.h: Fix ancient #endif syntax.
33 * * hurd/hurdmalloc.c: Likewise.
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.
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>
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.
48 * * mach/spin-solid.c: Include <mach/mach_traps.h>.
49 * * mach/spin-solid.c (__spin_lock_solid): Provide arg to
50 * swtch_pri.
52 * * mach/mach_init.c: Include <mach/mig_support.h>.
54 * * mach/mach_error.h (mach_error_string, mach_error,
55 * mach_error_type): Always provide prototypes.
57 * Revision 1.2 1993/11/23 20:39:08 mib
58 * entered into RCS
60 * Revision 2.2 92/01/16 00:08:10 rpd
61 * Moved from user collection to mk collection.
63 * Revision 2.2 91/03/27 15:39:13 mrt
64 * First checkin
68 * File: mach_error.h
69 * Author: Douglas Orr, Carnegie Mellon University
70 * Date: Mar. 1988
72 * Definitions of routines in mach_error.c
75 #ifndef _MACH_ERROR_
76 #define _MACH_ERROR_ 1
78 #include <mach/error.h>
80 const char *mach_error_string(
82 * Returns a string appropriate to the error argument given
84 mach_error_t error_value
87 void mach_error(
89 * Prints an appropriate message on the standard error stream
91 char *str,
92 mach_error_t error_value
95 const char *mach_error_type(
97 * Returns a string with the error system, subsystem and code
99 mach_error_t error_value
102 #endif /* _MACH_ERROR_ */