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