1706f2543Smrg/* Copyright (c) 2008 Apple Inc. 2706f2543Smrg * 3706f2543Smrg * Permission is hereby granted, free of charge, to any person 4706f2543Smrg * obtaining a copy of this software and associated documentation files 5706f2543Smrg * (the "Software"), to deal in the Software without restriction, 6706f2543Smrg * including without limitation the rights to use, copy, modify, merge, 7706f2543Smrg * publish, distribute, sublicense, and/or sell copies of the Software, 8706f2543Smrg * and to permit persons to whom the Software is furnished to do so, 9706f2543Smrg * subject to the following conditions: 10706f2543Smrg * 11706f2543Smrg * The above copyright notice and this permission notice shall be 12706f2543Smrg * included in all copies or substantial portions of the Software. 13706f2543Smrg * 14706f2543Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15706f2543Smrg * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16706f2543Smrg * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17706f2543Smrg * NONINFRINGEMENT. IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT 18706f2543Smrg * HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 19706f2543Smrg * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20706f2543Smrg * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21706f2543Smrg * DEALINGS IN THE SOFTWARE. 22706f2543Smrg * 23706f2543Smrg * Except as contained in this notice, the name(s) of the above 24706f2543Smrg * copyright holders shall not be used in advertising or otherwise to 25706f2543Smrg * promote the sale, use or other dealings in this Software without 26706f2543Smrg * prior written authorization. 27706f2543Smrg */ 28706f2543Smrg 29706f2543Smrg#include <mach/std_types.defs> 30706f2543Smrg#include <mach/mach_types.defs> 31706f2543Smrgimport "mach_startup_types.h"; 32706f2543Smrg 33706f2543Smrgsubsystem mach_startup 1000; 34706f2543Smrgserverprefix do_; 35706f2543Smrg 36706f2543Smrgtype string_t = c_string[1024]; 37706f2543Smrgtype string_array_t = array[] of string_t; 38706f2543Smrg 39706f2543Smrgroutine start_x11_server( 40706f2543Smrg port : mach_port_t; 41706f2543Smrg argv : string_array_t; 42706f2543Smrg envp : string_array_t); 43706f2543Smrg 44706f2543Smrgroutine request_fd_handoff_socket ( 45706f2543Smrg port : mach_port_t; 46706f2543Smrg out socket_filename : string_t); 47706f2543Smrg 48706f2543Smrgroutine request_pid ( 49706f2543Smrg port : mach_port_t; 50706f2543Smrg out pid : int); 51