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;
|
2010-06-08 15:58:01 +02:00
|
|
|
return( (unsigned) _syscall(PM_PROC_NR, ALARM, &m));
|
2005-04-21 16:53:53 +02:00
|
|
|
}
|