1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22/* 23 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 .file "__clock_timer.s" 28 29#include "SYS.h" 30 31/* 32 * int 33 * __clock_getres(clockid_t clock_id, timespec_t *res) 34 */ 35 36 ENTRY(__clock_getres) 37 SYSTRAP_RVAL1(clock_getres) 38 SYSCERROR 39 RET 40 SET_SIZE(__clock_getres) 41 42/* 43 * int 44 * __clock_settime(clockid_t clock_id, timespec_t *tp) 45 */ 46 47 ENTRY(__clock_settime) 48 SYSTRAP_RVAL1(clock_settime) 49 SYSCERROR 50 RET 51 SET_SIZE(__clock_settime) 52 53/* 54 * int 55 * __timer_create(clockid_t clock_id, struct sigevent *evp, timer_t *timerid) 56 */ 57 58 ENTRY(__timer_create) 59 SYSTRAP_RVAL1(timer_create) 60 SYSCERROR 61 RET 62 SET_SIZE(__timer_create) 63 64/* 65 * int 66 * __timer_delete(timer_t timerid) 67 */ 68 69 ENTRY(__timer_delete) 70 SYSTRAP_RVAL1(timer_delete) 71 SYSCERROR 72 RET 73 SET_SIZE(__timer_delete) 74 75/* 76 * int 77 * __timer_getoverrun(timer_t timerid) 78 */ 79 80 ENTRY(__timer_getoverrun) 81 SYSTRAP_RVAL1(timer_getoverrun) 82 SYSCERROR 83 RET 84 SET_SIZE(__timer_getoverrun) 85 86/* 87 * int 88 * __timer_gettime(timer_t timerid, struct itimerspec *value) 89 */ 90 91 ENTRY(__timer_gettime) 92 SYSTRAP_RVAL1(timer_gettime) 93 SYSCERROR 94 RET 95 SET_SIZE(__timer_gettime) 96 97/* 98 * int 99 * __timer_settime(timer_t timerid, int flags, 100 * const struct itimerspec *value, struct itimerspec *ovalue) 101 */ 102 103 ENTRY(__timer_settime) 104 SYSTRAP_RVAL1(timer_settime) 105 SYSCERROR 106 RET 107 SET_SIZE(__timer_settime) 108 109/* 110 * int 111 * __nanosleep(const timespec_t *rqtp, timespec_t *rmtp) 112 */ 113 114 ENTRY(__nanosleep) 115 SYSTRAP_RVAL1(nanosleep) 116 SYSLWPERR 117 RET 118 SET_SIZE(__nanosleep) 119