]>
git.saurik.com Git - apple/libc.git/blob - mach/servers/bootstrap_defs.h
2 * Copyright (c) 1999-2002 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
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
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.
23 * @APPLE_LICENSE_HEADER_END@
26 * bootstrap -- fundamental service initiator and port server
27 * Mike DeMoney, NeXT, Inc.
28 * Copyright, 1990. All rights reserved.
30 * bootstrap_defs.h -- bootstrap service data types and constants
31 * See bootstrap.defs for description of bootstrap services.
34 #ifndef _BOOTSTRAP_DEFS_
35 #define _BOOTSTRAP_DEFS_
36 #import <mach/boolean.h>
38 #define BOOTSTRAP_MAX_NAME_LEN 128
39 #define BOOTSTRAP_MAX_CMD_LEN 512
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
;
47 typedef boolean_t
*bool_array_t
;
49 #define BOOTSTRAP_MAX_LOOKUP_COUNT 20
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
59 #define BOOTSTRAP_STATUS_INACTIVE 0
60 #define BOOTSTRAP_STATUS_ACTIVE 1
61 #define BOOTSTRAP_STATUS_ON_DEMAND 2
63 #endif /* _BOOTSTRAP_DEFS_ */