1*4882a593Smuzhiyun/* Copyright (c) 2008 Apple Inc. 2*4882a593Smuzhiyun * 3*4882a593Smuzhiyun * Permission is hereby granted, free of charge, to any person 4*4882a593Smuzhiyun * obtaining a copy of this software and associated documentation files 5*4882a593Smuzhiyun * (the "Software"), to deal in the Software without restriction, 6*4882a593Smuzhiyun * including without limitation the rights to use, copy, modify, merge, 7*4882a593Smuzhiyun * publish, distribute, sublicense, and/or sell copies of the Software, 8*4882a593Smuzhiyun * and to permit persons to whom the Software is furnished to do so, 9*4882a593Smuzhiyun * subject to the following conditions: 10*4882a593Smuzhiyun * 11*4882a593Smuzhiyun * The above copyright notice and this permission notice shall be 12*4882a593Smuzhiyun * included in all copies or substantial portions of the Software. 13*4882a593Smuzhiyun * 14*4882a593Smuzhiyun * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15*4882a593Smuzhiyun * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16*4882a593Smuzhiyun * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17*4882a593Smuzhiyun * NONINFRINGEMENT. IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT 18*4882a593Smuzhiyun * HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 19*4882a593Smuzhiyun * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20*4882a593Smuzhiyun * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21*4882a593Smuzhiyun * DEALINGS IN THE SOFTWARE. 22*4882a593Smuzhiyun * 23*4882a593Smuzhiyun * Except as contained in this notice, the name(s) of the above 24*4882a593Smuzhiyun * copyright holders shall not be used in advertising or otherwise to 25*4882a593Smuzhiyun * promote the sale, use or other dealings in this Software without 26*4882a593Smuzhiyun * prior written authorization. 27*4882a593Smuzhiyun */ 28*4882a593Smuzhiyun 29*4882a593Smuzhiyun#include <mach/std_types.defs> 30*4882a593Smuzhiyun#include <mach/mach_types.defs> 31*4882a593Smuzhiyunimport "mach_startup_types.h"; 32*4882a593Smuzhiyun 33*4882a593Smuzhiyunsubsystem mach_startup 1000; 34*4882a593Smuzhiyunserverprefix do_; 35*4882a593Smuzhiyun 36*4882a593Smuzhiyuntype string_t = c_string[1024]; 37*4882a593Smuzhiyuntype string_array_t = array[] of string_t; 38*4882a593Smuzhiyun 39*4882a593Smuzhiyunroutine start_x11_server( 40*4882a593Smuzhiyun port : mach_port_t; 41*4882a593Smuzhiyun argv : string_array_t; 42*4882a593Smuzhiyun envp : string_array_t); 43*4882a593Smuzhiyun 44*4882a593Smuzhiyunroutine request_fd_handoff_socket ( 45*4882a593Smuzhiyun port : mach_port_t; 46*4882a593Smuzhiyun out socket_filename : string_t); 47*4882a593Smuzhiyun 48*4882a593Smuzhiyunroutine request_pid ( 49*4882a593Smuzhiyun port : mach_port_t; 50*4882a593Smuzhiyun out pid : int); 51