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#pragma ident "%Z%%M% %I% %E% SMI" 28 29 .file "%M%" 30 31#include "SYS.h" 32 33/* 34 * int 35 * __clock_getres(clockid_t clock_id, timespec_t *res) 36 */ 37 38 ENTRY(__clock_getres) 39 SYSTRAP_RVAL1(clock_getres) 40 SYSCERROR 41 RET 42 SET_SIZE(__clock_getres) 43 44/* 45 * int 46 * __clock_settime(clockid_t clock_id, timespec_t *tp) 47 */ 48 49 ENTRY(__clock_settime) 50 SYSTRAP_RVAL1(clock_settime) 51 SYSCERROR 52 RET 53 SET_SIZE(__clock_settime) 54 55/* 56 * int 57 * __timer_create(clockid_t clock_id, struct sigevent *evp, timer_t *timerid) 58 */ 59 60 ENTRY(__timer_create) 61 SYSTRAP_RVAL1(timer_create) 62 SYSCERROR 63 RET 64 SET_SIZE(__timer_create) 65 66/* 67 * int 68 * __timer_delete(timer_t timerid) 69 */ 70 71 ENTRY(__timer_delete) 72 SYSTRAP_RVAL1(timer_delete) 73 SYSCERROR 74 RET 75 SET_SIZE(__timer_delete) 76 77/* 78 * int 79 * __timer_getoverrun(timer_t timerid) 80 */ 81 82 ENTRY(__timer_getoverrun) 83 SYSTRAP_RVAL1(timer_getoverrun) 84 SYSCERROR 85 RET 86 SET_SIZE(__timer_getoverrun) 87 88/* 89 * int 90 * __timer_gettime(timer_t timerid, struct itimerspec *value) 91 */ 92 93 ENTRY(__timer_gettime) 94 SYSTRAP_RVAL1(timer_gettime) 95 SYSCERROR 96 RET 97 SET_SIZE(__timer_gettime) 98 99/* 100 * int 101 * __timer_settime(timer_t timerid, int flags, 102 * const struct itimerspec *value, struct itimerspec *ovalue) 103 */ 104 105 ENTRY(__timer_settime) 106 SYSTRAP_RVAL1(timer_settime) 107 SYSCERROR 108 RET 109 SET_SIZE(__timer_settime) 110 111/* 112 * int 113 * __nanosleep(const timespec_t *rqtp, timespec_t *rmtp) 114 */ 115 116 ENTRY(__nanosleep) 117 SYSTRAP_RVAL1(nanosleep) 118 SYSLWPERR 119 RET 120 SET_SIZE(__nanosleep) 121