VM: simplify slab allocator
[minix.git] / lib / libsys / sys_setalarm.c
blob39d6017320f0c9bb8ed4eeb1decafa79c5b91438
1 #include "syslib.h"
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 */
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.
13 message m;
14 m.ALRM_EXP_TIME = exp_time; /* the expiration time */
15 m.ALRM_ABS_TIME = abs_time; /* time is absolute? */
16 return _kernel_call(SYS_SETALARM, &m);