14642e01fSmrg/* Copyright (c) 2008 Apple Inc.
24642e01fSmrg *
34642e01fSmrg * Permission is hereby granted, free of charge, to any person
44642e01fSmrg * obtaining a copy of this software and associated documentation files
54642e01fSmrg * (the "Software"), to deal in the Software without restriction,
64642e01fSmrg * including without limitation the rights to use, copy, modify, merge,
74642e01fSmrg * publish, distribute, sublicense, and/or sell copies of the Software,
84642e01fSmrg * and to permit persons to whom the Software is furnished to do so,
94642e01fSmrg * subject to the following conditions:
104642e01fSmrg *
114642e01fSmrg * The above copyright notice and this permission notice shall be
124642e01fSmrg * included in all copies or substantial portions of the Software.
134642e01fSmrg *
144642e01fSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
154642e01fSmrg * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
164642e01fSmrg * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
174642e01fSmrg * NONINFRINGEMENT.  IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT
184642e01fSmrg * HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
194642e01fSmrg * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
204642e01fSmrg * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
214642e01fSmrg * DEALINGS IN THE SOFTWARE.
224642e01fSmrg *
234642e01fSmrg * Except as contained in this notice, the name(s) of the above
244642e01fSmrg * copyright holders shall not be used in advertising or otherwise to
254642e01fSmrg * promote the sale, use or other dealings in this Software without
264642e01fSmrg * prior written authorization.
274642e01fSmrg */
284642e01fSmrg
294642e01fSmrg#include <mach/std_types.defs>
304642e01fSmrg#include <mach/mach_types.defs>
314642e01fSmrgimport "mach_startup_types.h";
324642e01fSmrg
334642e01fSmrgsubsystem mach_startup 1000;
344642e01fSmrgserverprefix do_;
354642e01fSmrg
364642e01fSmrgtype string_t = c_string[1024];
374642e01fSmrgtype string_array_t = array[] of string_t;
384642e01fSmrg
394642e01fSmrgroutine start_x11_server(
404642e01fSmrg    port  : mach_port_t;
414642e01fSmrg    argv  : string_array_t;
424642e01fSmrg    envp  : string_array_t);
434642e01fSmrg
444642e01fSmrgroutine request_fd_handoff_socket (
454642e01fSmrg        port             : mach_port_t;
464642e01fSmrg    out socket_filename  : string_t);
474642e01fSmrg
484642e01fSmrgroutine request_pid (
494642e01fSmrg        port    : mach_port_t;
504642e01fSmrg    out pid     : int);
51