ocaml/otherlibs/unix/setuid.c

23 lines
943 B
C

/***********************************************************************/
/* */
/* Objective Caml */
/* */
/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */
/* */
/* Copyright 1996 Institut National de Recherche en Informatique et */
/* Automatique. Distributed only by permission. */
/* */
/***********************************************************************/
/* $Id$ */
#include <mlvalues.h>
#include "unixsupport.h"
value unix_setuid(uid) /* ML */
value uid;
{
if (setuid(Int_val(uid)) == -1) uerror("setuid", Nothing);
return Val_unit;
}