libc: add stub alarm

This commit is contained in:
K. Lange 2018-10-12 12:45:48 +09:00
parent fb0327a1cf
commit ffa655ad9d

8
libc/unistd/alarm.c Normal file
View File

@ -0,0 +1,8 @@
#include <stdio.h>
extern char * _argv_0;
unsigned int alarm(unsigned int seconds) {
fprintf(stderr, "%s: alarm requested (%d seconds)\n", _argv_0, seconds);
return 0;
}