]> git.saurik.com Git - apple/xnu.git/blame - osfmk/mach/clock_types.defs
xnu-344.49.tar.gz
[apple/xnu.git] / osfmk / mach / clock_types.defs
CommitLineData
1c79356b
A
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
43866e37 6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
1c79356b 7 *
43866e37
A
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
1c79356b
A
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
43866e37
A
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
1c79356b
A
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25/*
26 * @OSF_COPYRIGHT@
27 */
28/*
29 * File: clock_types.defs
30 * Purpose:
31 * Clock kernel interface type declarations
32 */
33
34#ifndef _MACH_CLOCK_TYPES_DEFS_
35#define _MACH_CLOCK_TYPES_DEFS_
36
37#include <mach/std_types.defs>
38
39type clock_serv_t = mach_port_t
40 ctype: clock_serv_t
41#if KERNEL_SERVER
42 intran: clock_serv_t convert_port_to_clock(mach_port_t)
43 outtran: mach_port_t convert_clock_to_port(clock_serv_t)
44#endif /* KERNEL_SERVER */
45 ;
46
47type clock_ctrl_t = mach_port_t
48 ctype: clock_ctrl_t
49#if KERNEL_SERVER
50 intran: clock_ctrl_t convert_port_to_clock_ctrl(mach_port_t)
51 outtran: mach_port_t convert_clock_ctrl_to_port(clock_ctrl_t)
52#endif /* KERNEL_SERVER */
53 ;
54
55type clock_reply_t = polymorphic|MACH_MSG_TYPE_MAKE_SEND_ONCE;
56
57type clock_flavor_t = int;
58type clock_attr_t = array[*:1] of int;
59type mach_timespec_t = struct[2] of int;
60type time_t = int;
61type sleep_type_t = int;
62type alarm_type_t = int;
63type clock_res_t = int;
64type clock_id_t = int;
65
66import <mach/mach_types.h>;
67
68#endif /* _MACH_CLOCK_TYPES_DEFS_ */