summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc/common/sys/__clock_timer.s
blob: 82e0d1e22e407ce67a02bbbd6af32545fd52d252 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/*
 * CDDL HEADER START
 *
 * The contents of this file are subject to the terms of the
 * Common Development and Distribution License (the "License").
 * You may not use this file except in compliance with the License.
 *
 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
 * or http://www.opensolaris.org/os/licensing.
 * See the License for the specific language governing permissions
 * and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL HEADER in each
 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
 * If applicable, add the following below this CDDL HEADER, with the
 * fields enclosed by brackets "[]" replaced with your own identifying
 * information: Portions Copyright [yyyy] [name of copyright owner]
 *
 * CDDL HEADER END
 */

/*
 * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 * Use is subject to license terms.
 */

	.file	"__clock_timer.s"

#include "SYS.h"

/*
 * int
 * __clock_getres(clockid_t clock_id, timespec_t *res)
 */

	ENTRY(__clock_getres)
	SYSTRAP_RVAL1(clock_getres)
	SYSCERROR
	RET
	SET_SIZE(__clock_getres)

/*
 * int
 * __clock_settime(clockid_t clock_id, timespec_t *tp)
 */

	ENTRY(__clock_settime)
	SYSTRAP_RVAL1(clock_settime)
	SYSCERROR
	RET
	SET_SIZE(__clock_settime)

/*
 * int
 * __timer_create(clockid_t clock_id, struct sigevent *evp, timer_t *timerid)
 */

	ENTRY(__timer_create)
	SYSTRAP_RVAL1(timer_create)
	SYSCERROR
	RET
	SET_SIZE(__timer_create)

/*
 * int
 * __timer_delete(timer_t timerid)
 */

	ENTRY(__timer_delete)
	SYSTRAP_RVAL1(timer_delete)
	SYSCERROR
	RET
	SET_SIZE(__timer_delete)

/*
 * int
 * __timer_getoverrun(timer_t timerid)
 */

	ENTRY(__timer_getoverrun)
	SYSTRAP_RVAL1(timer_getoverrun)
	SYSCERROR
	RET
	SET_SIZE(__timer_getoverrun)

/*
 * int
 * __timer_gettime(timer_t timerid, struct itimerspec *value)
 */

	ENTRY(__timer_gettime)
	SYSTRAP_RVAL1(timer_gettime)
	SYSCERROR
	RET
	SET_SIZE(__timer_gettime)

/*
 * int
 * __timer_settime(timer_t timerid, int flags,
 *	const struct itimerspec *value, struct itimerspec *ovalue)
 */

	ENTRY(__timer_settime)
	SYSTRAP_RVAL1(timer_settime)
	SYSCERROR
	RET
	SET_SIZE(__timer_settime)

/*
 * int
 * __nanosleep(const timespec_t *rqtp, timespec_t *rmtp)
 */

	ENTRY(__nanosleep)
	SYSTRAP_RVAL1(nanosleep)
	SYSLWPERR
	RET
	SET_SIZE(__nanosleep)