2 * Copyright (c) 2000 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@
26 * File: clock_types.defs
28 * Clock kernel interface type declarations
31 #ifndef _MACH_CLOCK_TYPES_DEFS_
32 #define _MACH_CLOCK_TYPES_DEFS_
34 #include <mach/std_types.defs>
36 type clock_serv_t = mach_port_t
39 intran: clock_serv_t convert_port_to_clock(mach_port_t)
40 outtran: mach_port_t convert_clock_to_port(clock_serv_t)
41 #endif /* KERNEL_SERVER */
44 type clock_ctrl_t = mach_port_t
47 intran: clock_ctrl_t convert_port_to_clock_ctrl(mach_port_t)
48 outtran: mach_port_t convert_clock_ctrl_to_port(clock_ctrl_t)
49 #endif /* KERNEL_SERVER */
52 type clock_reply_t = polymorphic|MACH_MSG_TYPE_MAKE_SEND_ONCE;
54 type clock_flavor_t = int;
55 type clock_attr_t = array[*:1] of int;
56 type mach_timespec_t = struct[2] of int;
58 type sleep_type_t = int;
59 type alarm_type_t = int;
60 type clock_res_t = int;
61 type clock_id_t = int;
63 import <mach/mach_types.h>;
65 #endif /* _MACH_CLOCK_TYPES_DEFS_ */