6 * Mach Operating System
7 * Copyright (c) 1991,1990,1989 Carnegie Mellon University
10 * Permission to use, copy, modify and distribute this software and its
11 * documentation is hereby granted, provided that both the copyright
12 * notice and this permission notice appear in all copies of the
13 * software, derivative works or modified versions, and any portions
14 * thereof, and that both notices appear in supporting documentation.
16 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS
17 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
18 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
20 * Carnegie Mellon requests users of this software to return to
22 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
23 * School of Computer Science
24 * Carnegie Mellon University
25 * Pittsburgh PA 15213-3890
27 * any improvements or extensions that they make and grant Carnegie the
28 * rights to redistribute these changes.
33 * Author: Douglas Orr, Carnegie Mellon University
36 * Error bases for subsytems errors.
39 #include <mach/error.h>
40 #include <mach/boolean.h>
42 #define MACH_IPC_SEND_MOD (err_mach_ipc|err_sub(0))
43 #define MACH_IPC_RCV_MOD (err_mach_ipc|err_sub(1))
44 #define MACH_IPC_MIG_MOD (err_mach_ipc|err_sub(2))
46 #define IPC_SEND_MOD (err_ipc|err_sub(0))
47 #define IPC_RCV_MOD (err_ipc|err_sub(1))
48 #define IPC_MIG_MOD (err_ipc|err_sub(2))
50 #define SERV_NETNAME_MOD (err_server|err_sub(0))
51 #define SERV_ENV_MOD (err_server|err_sub(1))
52 #define SERV_EXECD_MOD (err_server|err_sub(2))
55 #define NO_SUCH_ERROR "unknown error code"
57 struct error_subsystem
{
66 struct error_subsystem
* subsystem
;
69 __private_extern__
struct error_system _mach_errors
[err_max_system
+1];
71 __private_extern__
char *mach_error_string_int(mach_error_t
, boolean_t
*);
73 #define errlib_count(s) (sizeof(s)/sizeof(s[0]))