]>
git.saurik.com Git - apple/libc.git/blob - mach.subproj/servers.subproj/bootstrap_defs.h
18a8ca82c33fbbabf22d05192232bbbaa5fe1c60
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
23 * bootstrap -- fundamental service initiator and port server
24 * Mike DeMoney, NeXT, Inc.
25 * Copyright, 1990. All rights reserved.
27 * bootstrap_defs.h -- bootstrap service data types and constants
28 * See bootstrap.defs for description of bootstrap services.
31 #ifndef _BOOTSTRAP_DEFS_
32 #define _BOOTSTRAP_DEFS_
33 #import <mach/boolean.h>
35 #define BOOTSTRAP_MAX_NAME_LEN 128
36 #define BOOTSTRAP_MAX_CMD_LEN 512
38 typedef char name_t
[BOOTSTRAP_MAX_NAME_LEN
];
39 typedef char cmd_t
[BOOTSTRAP_MAX_CMD_LEN
];
40 typedef name_t
*name_array_t
;
41 typedef boolean_t
*bool_array_t
;
43 #define BOOTSTRAP_MAX_LOOKUP_COUNT 20
45 #define BOOTSTRAP_SUCCESS 0
46 #define BOOTSTRAP_NOT_PRIVILEGED 1100
47 #define BOOTSTRAP_NAME_IN_USE 1101
48 #define BOOTSTRAP_UNKNOWN_SERVICE 1102
49 #define BOOTSTRAP_SERVICE_ACTIVE 1103
50 #define BOOTSTRAP_BAD_COUNT 1104
51 #define BOOTSTRAP_NO_MEMORY 1105
53 #endif /* _BOOTSTRAP_DEFS_ */