Browse Source

libc: add stub alarm

K. Lange 4 years ago
parent
commit
ffa655ad9d
1 changed files with 8 additions and 0 deletions
  1. 8 0
      libc/unistd/alarm.c

+ 8 - 0
libc/unistd/alarm.c

@@ -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;
+}