]> git.saurik.com Git - apple/libc.git/blob - mach/servers/bootstrap_defs.h
Libc-262.2.12.tar.gz
[apple/libc.git] / mach / servers / bootstrap_defs.h
1 /*
2 * Copyright (c) 1999-2002 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25 /*
26 * bootstrap -- fundamental service initiator and port server
27 * Mike DeMoney, NeXT, Inc.
28 * Copyright, 1990. All rights reserved.
29 *
30 * bootstrap_defs.h -- bootstrap service data types and constants
31 * See bootstrap.defs for description of bootstrap services.
32 */
33
34 #ifndef _BOOTSTRAP_DEFS_
35 #define _BOOTSTRAP_DEFS_
36 #import <mach/boolean.h>
37
38 #define BOOTSTRAP_MAX_NAME_LEN 128
39 #define BOOTSTRAP_MAX_CMD_LEN 512
40
41 typedef char name_t[BOOTSTRAP_MAX_NAME_LEN];
42 typedef char cmd_t[BOOTSTRAP_MAX_CMD_LEN];
43 typedef name_t *name_array_t;
44 typedef int bootstrap_status_t;
45 typedef bootstrap_status_t *bootstrap_status_array_t;
46
47 typedef boolean_t *bool_array_t;
48
49 #define BOOTSTRAP_MAX_LOOKUP_COUNT 20
50
51 #define BOOTSTRAP_SUCCESS 0
52 #define BOOTSTRAP_NOT_PRIVILEGED 1100
53 #define BOOTSTRAP_NAME_IN_USE 1101
54 #define BOOTSTRAP_UNKNOWN_SERVICE 1102
55 #define BOOTSTRAP_SERVICE_ACTIVE 1103
56 #define BOOTSTRAP_BAD_COUNT 1104
57 #define BOOTSTRAP_NO_MEMORY 1105
58
59 #define BOOTSTRAP_STATUS_INACTIVE 0
60 #define BOOTSTRAP_STATUS_ACTIVE 1
61 #define BOOTSTRAP_STATUS_ON_DEMAND 2
62
63 #endif /* _BOOTSTRAP_DEFS_ */