]> git.saurik.com Git - apple/system_cmds.git/blame - mach_init.tproj/bootstrap_internal.h
system_cmds-279.6.tar.gz
[apple/system_cmds.git] / mach_init.tproj / bootstrap_internal.h
CommitLineData
1815bff5 1/*
20e66415 2 * Copyright (c) 1999-2003 Apple Computer, Inc. All rights reserved.
1815bff5
A
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
d904471c
A
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.
1815bff5
A
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,
d904471c
A
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."
1815bff5
A
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>
b51d5b5f 34#import <mach/notify.h>
1815bff5 35
b51d5b5f 36#define BASEPRI_USER 31 /* AOF 20/02/2002 */
1815bff5
A
37
38#define BITS_PER_BYTE 8 /* this SHOULD be a well defined constant */
39#define ANYWHERE TRUE /* For use with vm_allocate() */
40
b51d5b5f
A
41#define DEMAND_REQUEST MACH_NOTIFY_LAST /* demand service messaged */
42
1815bff5 43extern const char *program_name;
1815bff5
A
44extern mach_port_t lookup_only_port;
45extern mach_port_t inherited_bootstrap_port;
46extern mach_port_t self_port; /* Compatability hack */
47extern boolean_t forward_ok;
48extern boolean_t debugging;
49extern mach_port_t bootstrap_port_set;
b51d5b5f
A
50extern mach_port_t demand_port_set;
51extern mach_port_t notify_port;
52extern mach_port_t backup_port;
1815bff5
A
53extern boolean_t canReceive(mach_port_t port);
54extern boolean_t canSend(mach_port_t port);