sys_setalarm.c

来自「minix操作系统最新版本(3.1.1)的源代码」· C语言 代码 · 共 19 行

C
19
字号
#include "syslib.h"/*===========================================================================* *                               sys_setalarm		     	     	     * *===========================================================================*/PUBLIC 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.ALRM_EXP_TIME = exp_time;		/* the expiration time */    m.ALRM_ABS_TIME = abs_time;		/* time is absolute? */    return _taskcall(SYSTASK, SYS_SETALARM, &m);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?