17c478bd9Sstevel@tonic-gate/*
27c478bd9Sstevel@tonic-gate * CDDL HEADER START
37c478bd9Sstevel@tonic-gate *
47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the
5f841f6adSraf * Common Development and Distribution License (the "License").
6f841f6adSraf * You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate *
87c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate * and limitations under the License.
127c478bd9Sstevel@tonic-gate *
137c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate *
197c478bd9Sstevel@tonic-gate * CDDL HEADER END
207c478bd9Sstevel@tonic-gate */
21f841f6adSraf
227c478bd9Sstevel@tonic-gate/*
23f841f6adSraf * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
247c478bd9Sstevel@tonic-gate * Use is subject to license terms.
257c478bd9Sstevel@tonic-gate */
267c478bd9Sstevel@tonic-gate
279a70fc3bSMark J. Nelson	.file	"__clock_timer.s"
287c478bd9Sstevel@tonic-gate
297c478bd9Sstevel@tonic-gate#include "SYS.h"
307c478bd9Sstevel@tonic-gate
317c478bd9Sstevel@tonic-gate/*
327c478bd9Sstevel@tonic-gate * int
337c478bd9Sstevel@tonic-gate * __clock_getres(clockid_t clock_id, timespec_t *res)
347c478bd9Sstevel@tonic-gate */
357c478bd9Sstevel@tonic-gate
367c478bd9Sstevel@tonic-gate	ENTRY(__clock_getres)
377c478bd9Sstevel@tonic-gate	SYSTRAP_RVAL1(clock_getres)
387c478bd9Sstevel@tonic-gate	SYSCERROR
397c478bd9Sstevel@tonic-gate	RET
407c478bd9Sstevel@tonic-gate	SET_SIZE(__clock_getres)
417c478bd9Sstevel@tonic-gate
427c478bd9Sstevel@tonic-gate/*
437c478bd9Sstevel@tonic-gate * int
447c478bd9Sstevel@tonic-gate * __clock_settime(clockid_t clock_id, timespec_t *tp)
457c478bd9Sstevel@tonic-gate */
467c478bd9Sstevel@tonic-gate
477c478bd9Sstevel@tonic-gate	ENTRY(__clock_settime)
487c478bd9Sstevel@tonic-gate	SYSTRAP_RVAL1(clock_settime)
497c478bd9Sstevel@tonic-gate	SYSCERROR
507c478bd9Sstevel@tonic-gate	RET
517c478bd9Sstevel@tonic-gate	SET_SIZE(__clock_settime)
527c478bd9Sstevel@tonic-gate
537c478bd9Sstevel@tonic-gate/*
547c478bd9Sstevel@tonic-gate * int
557c478bd9Sstevel@tonic-gate * __timer_create(clockid_t clock_id, struct sigevent *evp, timer_t *timerid)
567c478bd9Sstevel@tonic-gate */
577c478bd9Sstevel@tonic-gate
587c478bd9Sstevel@tonic-gate	ENTRY(__timer_create)
597c478bd9Sstevel@tonic-gate	SYSTRAP_RVAL1(timer_create)
607c478bd9Sstevel@tonic-gate	SYSCERROR
617c478bd9Sstevel@tonic-gate	RET
627c478bd9Sstevel@tonic-gate	SET_SIZE(__timer_create)
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gate/*
657c478bd9Sstevel@tonic-gate * int
667c478bd9Sstevel@tonic-gate * __timer_delete(timer_t timerid)
677c478bd9Sstevel@tonic-gate */
687c478bd9Sstevel@tonic-gate
697c478bd9Sstevel@tonic-gate	ENTRY(__timer_delete)
707c478bd9Sstevel@tonic-gate	SYSTRAP_RVAL1(timer_delete)
717c478bd9Sstevel@tonic-gate	SYSCERROR
727c478bd9Sstevel@tonic-gate	RET
737c478bd9Sstevel@tonic-gate	SET_SIZE(__timer_delete)
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gate/*
767c478bd9Sstevel@tonic-gate * int
777c478bd9Sstevel@tonic-gate * __timer_getoverrun(timer_t timerid)
787c478bd9Sstevel@tonic-gate */
797c478bd9Sstevel@tonic-gate
807c478bd9Sstevel@tonic-gate	ENTRY(__timer_getoverrun)
817c478bd9Sstevel@tonic-gate	SYSTRAP_RVAL1(timer_getoverrun)
827c478bd9Sstevel@tonic-gate	SYSCERROR
837c478bd9Sstevel@tonic-gate	RET
847c478bd9Sstevel@tonic-gate	SET_SIZE(__timer_getoverrun)
857c478bd9Sstevel@tonic-gate
867c478bd9Sstevel@tonic-gate/*
877c478bd9Sstevel@tonic-gate * int
887c478bd9Sstevel@tonic-gate * __timer_gettime(timer_t timerid, struct itimerspec *value)
897c478bd9Sstevel@tonic-gate */
907c478bd9Sstevel@tonic-gate
917c478bd9Sstevel@tonic-gate	ENTRY(__timer_gettime)
927c478bd9Sstevel@tonic-gate	SYSTRAP_RVAL1(timer_gettime)
937c478bd9Sstevel@tonic-gate	SYSCERROR
947c478bd9Sstevel@tonic-gate	RET
957c478bd9Sstevel@tonic-gate	SET_SIZE(__timer_gettime)
967c478bd9Sstevel@tonic-gate
977c478bd9Sstevel@tonic-gate/*
987c478bd9Sstevel@tonic-gate * int
997c478bd9Sstevel@tonic-gate * __timer_settime(timer_t timerid, int flags,
1007c478bd9Sstevel@tonic-gate *	const struct itimerspec *value, struct itimerspec *ovalue)
1017c478bd9Sstevel@tonic-gate */
1027c478bd9Sstevel@tonic-gate
1037c478bd9Sstevel@tonic-gate	ENTRY(__timer_settime)
1047c478bd9Sstevel@tonic-gate	SYSTRAP_RVAL1(timer_settime)
1057c478bd9Sstevel@tonic-gate	SYSCERROR
1067c478bd9Sstevel@tonic-gate	RET
1077c478bd9Sstevel@tonic-gate	SET_SIZE(__timer_settime)
1087c478bd9Sstevel@tonic-gate
1097c478bd9Sstevel@tonic-gate/*
1107c478bd9Sstevel@tonic-gate * int
111f841f6adSraf * __nanosleep(const timespec_t *rqtp, timespec_t *rmtp)
1127c478bd9Sstevel@tonic-gate */
1137c478bd9Sstevel@tonic-gate
114f841f6adSraf	ENTRY(__nanosleep)
1157c478bd9Sstevel@tonic-gate	SYSTRAP_RVAL1(nanosleep)
1167c478bd9Sstevel@tonic-gate	SYSLWPERR
1177c478bd9Sstevel@tonic-gate	RET
118f841f6adSraf	SET_SIZE(__nanosleep)
119