minix/lib/libsys/sys_setalarm.c
Lionel Sambuc 30eae10274 Message type for SYS_SETALARM
Change-Id: I2c2ee24c19085cbd1e7ffba7b2db714b2561ff17
2014-07-28 17:05:46 +02:00

17 lines
761 B
C

#include "syslib.h"
/*===========================================================================*
* sys_setalarm *
*===========================================================================*/
int sys_setalarm(exp_time, abs_time)
clock_t exp_time; /* expiration time for the alarm */
int abs_time; /* use absolute or relative expiration time */
{
/* Ask the SYSTEM schedule a synchronous alarm for the caller. The process
* number can be SELF if the caller doesn't know its process number.
*/
message m;
m.m_lsys_krn_sys_setalarm.exp_time = exp_time; /* the expiration time */
m.m_lsys_krn_sys_setalarm.abs_time = abs_time; /* time is absolute? */
return _kernel_call(SYS_SETALARM, &m);
}