summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/chmod.c
blob: ebfa6368b38e33db13cc15509199c9c5b6612e89 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <mlvalues.h>
#include "unix.h"

value unix_chmod(path, perm)     /* ML */
     value path, perm;
{
  int ret;
  ret = chmod(String_val(path), Int_val(perm));
  if (ret == -1) uerror("chmod", path);
  return Val_unit;
}