minix/lib/libc/posix/_alarm.c

13 lines
204 B
C
Raw Normal View History

2005-04-21 16:53:53 +02:00
#include <lib.h>
#define alarm _alarm
#include <unistd.h>
PUBLIC unsigned int alarm(sec)
unsigned int sec;
{
message m;
m.m1_i1 = (int) sec;
return( (unsigned) _syscall(PM_PROC_NR, ALARM, &m));
2005-04-21 16:53:53 +02:00
}