1 | /*␊ |
2 | * Copyright (c) 1999-2005 Apple Computer, Inc. All rights reserved.␊ |
3 | *␊ |
4 | * ␊ |
5 | * This file contains Original Code and/or Modifications of Original Code␊ |
6 | * as defined in and that are subject to the Apple Public Source License␊ |
7 | * Version 2.0 (the 'License'). You may not use this file except in␊ |
8 | * compliance with the License. The rights granted to you under the License␊ |
9 | * may not be used to create, or enable the creation or redistribution of,␊ |
10 | * unlawful or unlicensed copies of an Apple operating system, or to␊ |
11 | * circumvent, violate, or enable the circumvention or violation of, any␊ |
12 | * terms of an Apple operating system software license agreement.␊ |
13 | * ␊ |
14 | * Please obtain a copy of the License at␊ |
15 | * http://www.opensource.apple.com/apsl/ and read it before using this file.␊ |
16 | * ␊ |
17 | * The Original Code and all software distributed under the License are␊ |
18 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER␊ |
19 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,␊ |
20 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,␊ |
21 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.␊ |
22 | * Please see the License for the specific language governing rights and␊ |
23 | * limitations under the License.␊ |
24 | * ␊ |
25 | * Mach Operating System␊ |
26 | * Copyright (c) 1991,1990,1989 Carnegie Mellon University␊ |
27 | * All Rights Reserved.␊ |
28 | * ␊ |
29 | * Permission to use, copy, modify and distribute this software and its␊ |
30 | * documentation is hereby granted, provided that both the copyright␊ |
31 | * notice and this permission notice appear in all copies of the␊ |
32 | * software, derivative works or modified versions, and any portions␊ |
33 | * thereof, and that both notices appear in supporting documentation.␊ |
34 | * ␊ |
35 | * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"␊ |
36 | * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR␊ |
37 | * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.␊ |
38 | * ␊ |
39 | * Carnegie Mellon requests users of this software to return to␊ |
40 | * ␊ |
41 | * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU␊ |
42 | * School of Computer Science␊ |
43 | * Carnegie Mellon University␊ |
44 | * Pittsburgh PA 15213-3890␊ |
45 | * ␊ |
46 | * any improvements or extensions that they make and grant Carnegie Mellon␊ |
47 | * the rights to redistribute these changes.␊ |
48 | *␊ |
49 | * Includes all the types that a normal user␊ |
50 | * of Mach programs should need␊ |
51 | */␊ |
52 | ␊ |
53 | #ifndef␉_MACH_H_␊ |
54 | #define␉_MACH_H_␊ |
55 | ␊ |
56 | #define __MACH30__␊ |
57 | #define MACH_IPC_FLAVOR UNTYPED␊ |
58 | ␊ |
59 | #include <mach/std_types.h>␊ |
60 | #include <mach/mach_types.h>␊ |
61 | #include <mach/mach_interface.h>␊ |
62 | #include <mach/mach_port.h>␊ |
63 | #include <mach/mach_init.h>␊ |
64 | #include <mach/mach_host.h>␊ |
65 | #include <mach/thread_switch.h>␊ |
66 | ␊ |
67 | #include <mach/rpc.h> ␉␉/* for compatibility only */␊ |
68 | #include <mach/mig.h>␊ |
69 | ␊ |
70 | #include <mach/mig_errors.h>␊ |
71 | #include <mach/mach_error.h>␊ |
72 | ␊ |
73 | #include <sys/cdefs.h>␊ |
74 | ␊ |
75 | __BEGIN_DECLS␊ |
76 | /*␊ |
77 | * Standard prototypes␊ |
78 | */␊ |
79 | extern void␉␉␉panic_init(mach_port_t);␊ |
80 | extern void␉␉␉panic(const char *, ...);␊ |
81 | ␊ |
82 | extern void␉␉␉safe_gets(char *,␊ |
83 | ␉␉␉␉␉ char *,␊ |
84 | ␉␉␉␉␉ int);␊ |
85 | ␊ |
86 | extern void␉␉␉slot_name(cpu_type_t,␊ |
87 | ␉␉␉␉␉ cpu_subtype_t,␊ |
88 | ␉␉␉␉␉ char **,␊ |
89 | ␉␉␉␉␉ char **);␊ |
90 | ␊ |
91 | extern void␉␉␉mig_reply_setup(mach_msg_header_t *,␊ |
92 | ␉␉␉␉␉␉mach_msg_header_t *);␊ |
93 | ␊ |
94 | extern void␉␉␉mach_msg_destroy(mach_msg_header_t *);␊ |
95 | ␊ |
96 | extern mach_msg_return_t␉mach_msg_receive(mach_msg_header_t *);␊ |
97 | ␊ |
98 | extern mach_msg_return_t␉mach_msg_send(mach_msg_header_t *);␊ |
99 | ␊ |
100 | extern mach_msg_return_t␉mach_msg_server_once(boolean_t (*)␊ |
101 | ␉␉␉␉␉␉ (mach_msg_header_t *,␊ |
102 | ␉␉␉␉␉␉ mach_msg_header_t *),␊ |
103 | ␉␉␉␉␉␉ mach_msg_size_t,␊ |
104 | ␉␉␉␉␉␉ mach_port_t,␊ |
105 | ␉␉␉␉␉␉ mach_msg_options_t);␊ |
106 | extern mach_msg_return_t␉mach_msg_server(boolean_t (*)␊ |
107 | ␉␉␉␉␉␉(mach_msg_header_t *,␊ |
108 | ␉␉␉␉␉␉ mach_msg_header_t *),␊ |
109 | ␉␉␉␉␉␉mach_msg_size_t,␊ |
110 | ␉␉␉␉␉␉mach_port_t,␊ |
111 | ␉␉␉␉␉␉mach_msg_options_t);␊ |
112 | ␊ |
113 | /*␊ |
114 | * Prototypes for compatibility␊ |
115 | */␊ |
116 | extern kern_return_t␉clock_get_res(mach_port_t,␊ |
117 | ␉␉␉␉ clock_res_t *);␊ |
118 | extern kern_return_t␉clock_set_res(mach_port_t,␊ |
119 | ␉␉␉␉ clock_res_t);␊ |
120 | ␊ |
121 | extern kern_return_t␉clock_sleep(mach_port_t,␊ |
122 | ␉␉␉␉ int,␊ |
123 | ␉␉␉␉ mach_timespec_t,␊ |
124 | ␉␉␉␉ mach_timespec_t *);␊ |
125 | __END_DECLS␊ |
126 | ␊ |
127 | #endif␉/* _MACH_H_ */␊ |
128 | |