summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/rmdir.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix/rmdir.c')
-rw-r--r--otherlibs/unix/rmdir.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/otherlibs/unix/rmdir.c b/otherlibs/unix/rmdir.c
new file mode 100644
index 000000000..49e82b253
--- /dev/null
+++ b/otherlibs/unix/rmdir.c
@@ -0,0 +1,9 @@
+#include <mlvalues.h>
+#include "unix.h"
+
+value unix_rmdir(path) /* ML */
+ value path;
+{
+ if (rmdir(String_val(path)) == -1) uerror("rmdir", path);
+ return Atom(0);
+}