1139743Simp/*- 243412Snewton * Copyright (c) 1998 Mark Newton 343412Snewton * Copyright (c) 1994 Christos Zoulas 443412Snewton * All rights reserved. 543412Snewton * 643412Snewton * Redistribution and use in source and binary forms, with or without 743412Snewton * modification, are permitted provided that the following conditions 843412Snewton * are met: 943412Snewton * 1. Redistributions of source code must retain the above copyright 1043412Snewton * notice, this list of conditions and the following disclaimer. 1143412Snewton * 2. Redistributions in binary form must reproduce the above copyright 1243412Snewton * notice, this list of conditions and the following disclaimer in the 1343412Snewton * documentation and/or other materials provided with the distribution. 1443412Snewton * 3. The name of the author may not be used to endorse or promote products 1543412Snewton * derived from this software without specific prior written permission 1643412Snewton * 1743412Snewton * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1843412Snewton * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1943412Snewton * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2043412Snewton * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2143412Snewton * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2243412Snewton * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2343412Snewton * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2443412Snewton * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2543412Snewton * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2643412Snewton * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2749267Snewton * 2850477Speter * $FreeBSD: releng/11.0/sys/compat/svr4/svr4_hrt.h 139743 2005-01-05 22:34:37Z imp $ 2943412Snewton */ 3043412Snewton 3143412Snewton#ifndef _SVR4_HRT_H_ 3243412Snewton#define _SVR4_HRT_H_ 3343412Snewton 3443412Snewton#define SVR4_HRT_CNTL 0 3543412Snewton#define SVR4_HRT_CNTL_RES 0 3643412Snewton#define SVR4_HRT_CNTL_TOFD 1 3743412Snewton#define SVR4_HRT_CNTL_START 2 3843412Snewton#define SVR4_HRT_CNTL_GET 3 3943412Snewton 4043412Snewton#define SVR4_HRT_ALRM 1 4143412Snewton#define SVR4_HRT_ALRM_DO 4 4243412Snewton#define SVR4_HRT_ALRM_REP 5 4343412Snewton#define SVR4_HRT_ALRM_TOD 6 4443412Snewton#define SVR4_HRT_ALRM_FUTREP 7 4543412Snewton#define SVR4_HRT_ALRM_TODREP 8 4643412Snewton#define SVR4_HRT_ALRM_PEND 9 4743412Snewton 4843412Snewton#define SVR4_HRT_SLP 2 4943412Snewton#define SVR4_HRT_SLP_INT 10 5043412Snewton#define SVR4_HRT_SLP_TOD 11 5143412Snewton 5243412Snewton#define SVR4_HRT_BSD 12 5343412Snewton#define SVR4_HRT_BSD_PEND 13 5443412Snewton#define SVR4_HRT_BSD_REP1 14 5543412Snewton#define SVR4_HRT_BSD_REP2 15 5643412Snewton#define SVR4_HRT_BSD_CANCEL 16 5743412Snewton 5843412Snewton#define SVR4_HRT_CAN 3 5943412Snewton 6043412Snewton#define SVR4_HRT_SEC 1 6143412Snewton#define SVR4_HRT_MSEC 1000 6243412Snewton#define SVR4_HRT_USEC 1000000 6343412Snewton#define SVR4_HRT_NSEC 1000000000 6443412Snewton 6543412Snewton#define SVR4_HRT_TRUNC 0 6643412Snewton#define SVR4_HRT_RND 1 6743412Snewton 6843412Snewtontypedef struct { 6943412Snewton u_long i_word1; 7043412Snewton u_long i_word2; 7143412Snewton int i_clock; 7243412Snewton} svr4_hrt_interval_t; 7343412Snewton 7443412Snewtontypedef struct { 7543412Snewton u_long h_sec; 7643412Snewton long h_rem; 7743412Snewton u_long h_res; 7843412Snewton} svr4_hrt_time_t; 7943412Snewton 8043412Snewton#define SVR4_HRT_DONE 1 8143412Snewton#define SVR4_HRT_ERROR 2 8243412Snewton 8343412Snewton#define SVR4_HRT_CLK_STD 1 8443412Snewton#define SVR4_HRT_CLK_USERVIRT 2 8543412Snewton#define SVR4_HRT_CLK_PROCVIRT 4 8643412Snewton 8743412Snewton#endif /* !_SVR4_HRT_H_ */ 88