]>
Commit | Line | Data |
---|---|---|
e91b9f68 A |
1 | /* |
2 | * Copyright (c) 1999-2003 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 | #include <mach/mach.h> | |
33 | #include <mach/notify.h> | |
34 | #include <sys/types.h> | |
35 | #include <stdbool.h> | |
36 | ||
37 | #define BASEPRI_USER 31 /* AOF 20/02/2002 */ | |
38 | ||
39 | #define ANYWHERE TRUE /* For use with vm_allocate() */ | |
40 | ||
41 | #define DEMAND_REQUEST MACH_NOTIFY_LAST /* demand service messaged */ | |
42 | ||
43 | __private_extern__ void mach_start_shutdown(int); | |
44 | __private_extern__ mach_port_t mach_init_init(void); | |
45 | __private_extern__ void *mach_server_loop(void*); | |
46 | __private_extern__ pid_t fork_with_bootstrap_port(mach_port_t); | |
47 | ||
48 | __private_extern__ mach_port_t lookup_only_port; | |
49 | __private_extern__ mach_port_t inherited_bootstrap_port; | |
50 | __private_extern__ mach_port_t self_port; /* Compatability hack */ | |
51 | __private_extern__ bool forward_ok; | |
52 | __private_extern__ bool debugging; | |
53 | __private_extern__ mach_port_t bootstrap_port_set; | |
54 | __private_extern__ mach_port_t demand_port_set; | |
55 | __private_extern__ mach_port_t notify_port; | |
56 | __private_extern__ mach_port_t backup_port; | |
57 | __private_extern__ bool canReceive(mach_port_t); | |
58 | __private_extern__ bool canSend(mach_port_t); | |
59 | __private_extern__ bool register_self; | |
60 | __private_extern__ const char *register_name; |