···11+/*
22+ * Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved.
33+ *
44+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
55+ *
66+ * This file contains Original Code and/or Modifications of Original Code
77+ * as defined in and that are subject to the Apple Public Source License
88+ * Version 2.0 (the 'License'). You may not use this file except in
99+ * compliance with the License. The rights granted to you under the License
1010+ * may not be used to create, or enable the creation or redistribution of,
1111+ * unlawful or unlicensed copies of an Apple operating system, or to
1212+ * circumvent, violate, or enable the circumvention or violation of, any
1313+ * terms of an Apple operating system software license agreement.
1414+ *
1515+ * Please obtain a copy of the License at
1616+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
1717+ *
1818+ * The Original Code and all software distributed under the License are
1919+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
2020+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
2121+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
2222+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
2323+ * Please see the License for the specific language governing rights and
2424+ * limitations under the License.
2525+ *
2626+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
2727+ */
2828+/*
2929+ * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3030+ *
3131+ * HISTORY
3232+ *
3333+ * 31 August 2000 (debo)
3434+ * Created.
3535+ */
3636+3737+#ifndef _MACH_MK_TIMER_H_
3838+#define _MACH_MK_TIMER_H_
3939+4040+#include <mach/mach_time.h>
4141+#include <sys/cdefs.h>
4242+4343+__BEGIN_DECLS
4444+4545+mach_port_name_t mk_timer_create(void);
4646+4747+kern_return_t mk_timer_destroy(
4848+ mach_port_name_t name);
4949+5050+kern_return_t mk_timer_arm(
5151+ mach_port_name_t name,
5252+ uint64_t expire_time);
5353+5454+kern_return_t mk_timer_cancel(
5555+ mach_port_name_t name,
5656+ uint64_t *result_time);
5757+5858+__END_DECLS
5959+6060+#pragma pack(4)
6161+struct mk_timer_expire_msg {
6262+ mach_msg_header_t header;
6363+ uint64_t unused[3];
6464+};
6565+#pragma pack()
6666+6767+typedef struct mk_timer_expire_msg mk_timer_expire_msg_t;
6868+6969+#endif /* _MACH_MK_TIMER_H_ */