]> git.saurik.com Git - apple/launchd.git/blame - launchd/src/bootstrap_internal.h
launchd-106.13.tar.gz
[apple/launchd.git] / launchd / src / bootstrap_internal.h
CommitLineData
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;