source:
trunk/minix/lib/posix/_alarm.c@
12
Last change on this file since 12 was 9, checked in by , 14 years ago | |
---|---|
File size: 196 bytes |
Line | |
---|---|
1 | #include <lib.h> |
2 | #define alarm _alarm |
3 | #include <unistd.h> |
4 | |
5 | PUBLIC unsigned int alarm(sec) |
6 | unsigned int sec; |
7 | { |
8 | message m; |
9 | |
10 | m.m1_i1 = (int) sec; |
11 | return( (unsigned) _syscall(MM, ALARM, &m)); |
12 | } |
Note:
See TracBrowser
for help on using the repository browser.