Chameleon

Chameleon Svn Source Tree

Root/branches/ErmaC/Trunk/i386/include/mach/mach.h

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 */
79extern voidpanic_init(mach_port_t);
80extern voidpanic(const char *, ...);
81
82extern voidsafe_gets(char *,
83 char *,
84 int);
85
86extern voidslot_name(cpu_type_t,
87 cpu_subtype_t,
88 char **,
89 char **);
90
91extern voidmig_reply_setup(mach_msg_header_t *,
92mach_msg_header_t *);
93
94extern voidmach_msg_destroy(mach_msg_header_t *);
95
96extern mach_msg_return_tmach_msg_receive(mach_msg_header_t *);
97
98extern mach_msg_return_tmach_msg_send(mach_msg_header_t *);
99
100extern mach_msg_return_tmach_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);
106extern mach_msg_return_tmach_msg_server(boolean_t (*)
107(mach_msg_header_t *,
108 mach_msg_header_t *),
109mach_msg_size_t,
110mach_port_t,
111mach_msg_options_t);
112
113/*
114 * Prototypes for compatibility
115 */
116extern kern_return_tclock_get_res(mach_port_t,
117 clock_res_t *);
118extern kern_return_tclock_set_res(mach_port_t,
119 clock_res_t);
120
121extern kern_return_tclock_sleep(mach_port_t,
122 int,
123 mach_timespec_t,
124 mach_timespec_t *);
125__END_DECLS
126
127#endif/* _MACH_H_ */
128

Archive Download this file

Revision: 2111