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