source: trunk/minix/lib/syslib/sys_setalarm.c@ 22

Last change on this file since 22 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 739 bytes
Line 
1#include "syslib.h"
2
3/*===========================================================================*
4 * sys_setalarm *
5 *===========================================================================*/
6PUBLIC int sys_setalarm(exp_time, abs_time)
7clock_t exp_time; /* expiration time for the alarm */
8int 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.ALRM_EXP_TIME = exp_time; /* the expiration time */
15 m.ALRM_ABS_TIME = abs_time; /* time is absolute? */
16 return _taskcall(SYSTASK, SYS_SETALARM, &m);
17}
18
Note: See TracBrowser for help on using the repository browser.