summaryrefslogtreecommitdiff
path: root/otherlibs/unix/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix/exit.c')
-rw-r--r--otherlibs/unix/exit.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/otherlibs/unix/exit.c b/otherlibs/unix/exit.c
new file mode 100644
index 0000000000..c3cf6572c9
--- /dev/null
+++ b/otherlibs/unix/exit.c
@@ -0,0 +1,12 @@
+#include <mlvalues.h>
+#include "unix.h"
+
+value unix_exit(n) /* ML */
+ value n;
+{
+ _exit(Int_val(n));
+ return Val_unit; /* never reached, but suppress warnings */
+ /* from smart compilers */
+}
+
+