]>
git.saurik.com Git - apple/libc.git/blob - mach/servers/bootstrap_defs.h
1bcd27d16e2ccef930f7124e7e6156fc2b77312c
2 * Copyright (c) 1999-2002 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 int bootstrap_status_t
;
42 typedef bootstrap_status_t
*bootstrap_status_array_t
;
44 typedef boolean_t
*bool_array_t
;
46 #define BOOTSTRAP_MAX_LOOKUP_COUNT 20
48 #define BOOTSTRAP_SUCCESS 0
49 #define BOOTSTRAP_NOT_PRIVILEGED 1100
50 #define BOOTSTRAP_NAME_IN_USE 1101
51 #define BOOTSTRAP_UNKNOWN_SERVICE 1102
52 #define BOOTSTRAP_SERVICE_ACTIVE 1103
53 #define BOOTSTRAP_BAD_COUNT 1104
54 #define BOOTSTRAP_NO_MEMORY 1105
56 #define BOOTSTRAP_STATUS_INACTIVE 0
57 #define BOOTSTRAP_STATUS_ACTIVE 1
58 #define BOOTSTRAP_STATUS_ON_DEMAND 2
60 #endif /* _BOOTSTRAP_DEFS_ */