diff options
Diffstat (limited to 'otherlibs/unix/mkdir.c')
-rw-r--r-- | otherlibs/unix/mkdir.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/otherlibs/unix/mkdir.c b/otherlibs/unix/mkdir.c new file mode 100644 index 000000000..a65157532 --- /dev/null +++ b/otherlibs/unix/mkdir.c @@ -0,0 +1,9 @@ +#include <mlvalues.h> +#include "unix.h" + +value unix_mkdir(path, perm) /* ML */ + value path, perm; +{ + if (mkdir(String_val(path), Int_val(perm)) == -1) uerror("mkdir", path); + return Val_unit; +} |