/*	Copyright (c) 1988 AT&T	*/
/*	  All Rights Reserved  	*/

/*	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T	*/
/*	The copyright notice above does not evidence any   	*/
/*	actual or intended publication of such source code.	*/

#ident	"@(#)hrtsys.c	1.7	92/07/14 SMI"	/* SVr4.0 1.2	*/

#ifndef DSHLIB
#ifdef __STDC__
	#pragma weak hrtcntl = _hrtcntl
	#pragma weak hrtalarm = _hrtalarm
	#pragma weak hrtsleep = _hrtsleep
	#pragma weak hrtcancel = _hrtcancel
#endif
#endif
#include	"synonyms.h"
#include	"sys/types.h"
#include	"sys/evecb.h"
#include	"sys/hrtcntl.h"

#define	HRTSYS		109

#define	HRTCNTL		0
#define HRTALARM	1
#define HRTSLEEP	2
#define	HRTCANCEL	3

hrtcntl(cmd, clk, intp, hrtp)
int cmd, clk;
interval_t *intp;
hrtime_t *hrtp;
{
	return(syscall(HRTSYS, HRTCNTL, cmd, clk, intp, hrtp));
}

#ifndef DSHLIB

hrtalarm(cmdp, cmds)
hrtcmd_t *cmdp;
int cmds;
{
	return(syscall(HRTSYS, HRTALARM, cmdp, cmds));
}

hrtsleep(cmdp)
hrtcmd_t *cmdp;
{
	return(syscall(HRTSYS, HRTSLEEP, cmdp));
}

hrtcancel(eidp, eids)
#ifdef __STDC__
const long *eidp;
#else
long *eidp;
#endif
int eids;
{
	return(syscall(HRTSYS, HRTCANCEL, eidp, eids));
}
#endif
