xref: /minix/minix/lib/libsys/sys_setalarm.c (revision 83133719)
1 #include "syslib.h"
2 
3 /*===========================================================================*
4  *                               sys_setalarm		     	     	     *
5  *===========================================================================*/
6 int sys_setalarm(exp_time, abs_time)
7 clock_t exp_time;	/* expiration time for the alarm */
8 int abs_time;		/* use absolute or relative expiration time */
9 {
10 /* Ask the SYSTEM schedule a synchronous alarm for the caller. The process
11  * number can be SELF if the caller doesn't know its process number.
12  */
13     message m;
14     m.m_lsys_krn_sys_setalarm.exp_time = exp_time; /* the expiration time */
15     m.m_lsys_krn_sys_setalarm.abs_time = abs_time; /* time is absolute? */
16     return _kernel_call(SYS_SETALARM, &m);
17 }
18