]> git.saurik.com Git - apple/system_cmds.git/blob - mach_init.tproj/bootstrap_internal.h
b494e93ab7ce94995fb9e4bd46675a9b53d06f2a
[apple/system_cmds.git] / mach_init.tproj / bootstrap_internal.h
1 /*
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * "Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7 * Reserved. This file contains Original Code and/or Modifications of
8 * Original Code as defined in and that are subject to the Apple Public
9 * Source License Version 1.0 (the 'License'). You may not use this file
10 * except in compliance with the License. Please obtain a copy of the
11 * License at http://www.apple.com/publicsource and read it before using
12 * this file.
13 *
14 * The Original Code and all software distributed under the License are
15 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
19 * License for the specific language governing rights and limitations
20 * under the License."
21 *
22 * @APPLE_LICENSE_HEADER_END@
23 */
24 /*
25 * bootstrap -- fundamental service initiator and port server
26 * Mike DeMoney, NeXT, Inc.
27 * Copyright, 1990. All rights reserved.
28 *
29 * bootstrap_internal.h -- global internal data definitions
30 */
31
32 #import <mach/mach.h>
33 #import <mach/boolean.h>
34
35 #define BASEPRI_USER 10 /* AOF Thu Feb 16 14:42:57 PST 1995 */
36
37 #define BITS_PER_BYTE 8 /* this SHOULD be a well defined constant */
38 #define ANYWHERE TRUE /* For use with vm_allocate() */
39
40 extern const char *program_name;
41 extern const char *conf_file;
42 extern const char *default_conf;
43 extern mach_port_t lookup_only_port;
44 extern mach_port_t inherited_bootstrap_port;
45 extern mach_port_t self_port; /* Compatability hack */
46 extern boolean_t forward_ok;
47 extern boolean_t debugging;
48 extern mach_port_t bootstrap_port_set;
49 extern int init_priority;
50 extern boolean_t canReceive(mach_port_t port);
51 extern boolean_t canSend(mach_port_t port);
52
53 extern void msg_destroy_port(mach_port_t p);