]> git.saurik.com Git - apple/launchd.git/blob - launchd/src/bootstrap_private.h
a2dace1c83bf068cf6936ae9e3eea4c7fcaf3e11
[apple/launchd.git] / launchd / src / bootstrap_private.h
1 #ifndef _BOOTSTRAP_PRIVATE_H_
2 #define _BOOTSTRAP_PRIVATE_H_
3 /*
4 * Copyright (c) 2006 Apple Computer, Inc. All rights reserved.
5 *
6 * @APPLE_APACHE_LICENSE_HEADER_START@
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 *
20 * @APPLE_APACHE_LICENSE_HEADER_END@
21 */
22
23 typedef char *_internal_string_t;
24 #define SPAWN_HAS_PATH 0x0001
25 #define SPAWN_HAS_WDIR 0x0002
26 #define SPAWN_HAS_UMASK 0x0004
27 #define SPAWN_WANTS_WAIT4DEBUGGER 0x0008
28 #define SPAWN_WANTS_FORCE_PPC 0x0010
29
30 kern_return_t
31 _launchd_to_launchd(mach_port_t bp, mach_port_t *reqport, mach_port_t *rcvright,
32 name_array_t *service_names, mach_msg_type_number_t *service_namesCnt,
33 mach_port_array_t *ports, mach_msg_type_number_t *portCnt);
34
35 kern_return_t bootstrap_getsocket(mach_port_t bp, name_t);
36
37
38 kern_return_t
39 bootstrap_look_up_array(
40 mach_port_t bp,
41 name_array_t service_names,
42 mach_msg_type_number_t service_namesCnt,
43 mach_port_array_t *sps,
44 mach_msg_type_number_t *service_portsCnt,
45 boolean_t *all_services_known);
46
47 kern_return_t
48 bootstrap_info(
49 mach_port_t bp,
50 name_array_t *service_names,
51 mach_msg_type_number_t *service_namesCnt,
52 bootstrap_status_array_t *service_active,
53 mach_msg_type_number_t *service_activeCnt);
54
55 #endif