summaryrefslogtreecommitdiff
path: root/otherlibs/unix/alarm.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix/alarm.c')
-rw-r--r--otherlibs/unix/alarm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/otherlibs/unix/alarm.c b/otherlibs/unix/alarm.c
new file mode 100644
index 0000000000..a4bd78c9d8
--- /dev/null
+++ b/otherlibs/unix/alarm.c
@@ -0,0 +1,8 @@
+#include <mlvalues.h>
+#include "unix.h"
+
+value unix_alarm(t) /* ML */
+ value t;
+{
+ return Val_int(alarm((unsigned int) Long_val(t)));
+}