/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* 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 (c) 1997-1999 by Sun Microsystems, Inc.
* All rights reserved.
*/
/* Copyright (c) 1990, 1991 UNIX System Laboratories, Inc. */
/* Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T */
/* All Rights Reserved */
#ifndef _SYS_HRTCNTL_H
#define _SYS_HRTCNTL_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* The following are the possible commands for the hrtcntl,
* hrtalarm, and hrtsleep system calls.
*/
typedef enum hrtcmds {
/* hrtcntl commands */
/* 00:00:00 GMT, January 1, 1970 */
/* since the corresponding HRT_STARTIT */
/* command has been issued. */
/* hrtalarm commands */
/* event after the time interval has */
/* elapsed. */
/* every time interval. */
/* the time at which the alarm is to */
/* posted is specified by an absolute */
/* time. */
/* in the future. */
/* the time of day when the alarm */
/* should begin is specified. */
/* a pending alarm fires. */
/* hrtsleep commands */
/* interval. */
/* a specified time of day. */
/*
* The following fields will be used
* to implement BSD timers
*/
} hrtcmds_t;
/*
* Definitions for specifying rounding mode.
*/
/* part >= .5 otherwise round down). */
/*
* Definition for the type of internal buffer used with the
* HRT_STARTIT and HRT_GETIT commands.
*/
typedef struct interval {
unsigned long i_word1;
unsigned long i_word2;
int i_clock;
} interval_t;
/*
* Structure used to represent a high-resolution time-of-day
* or interval.
*/
typedef struct hrtime {
} hrtimes_t;
/*
* The structure used for the hrtalarm and hrtsleep system calls.
*/
typedef struct hrtcmd {
#ifdef notdef
#endif
} hrtcmd_t;
/*
* Flags for the hrtc_flags field.
*/
/*
* Multiple clocks
*/
/* virtual time. */
/* time. */
/*
* Function Prototypes
* ===================
*
* The following are prototypes for the library functions which
* users call.
*/
int hrtcancel(const long *, int);
#endif
#ifdef __cplusplus
}
#endif
#endif /* _SYS_HRTCNTL_H */