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