ocaml/otherlibs/unix/setgid.c

23 lines
936 B
C
Raw Normal View History

/***********************************************************************/
/* */
/* Caml Special Light */
/* */
/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */
/* */
/* Copyright 1995 Institut National de Recherche en Informatique et */
/* Automatique. Distributed only by permission. */
/* */
/***********************************************************************/
/* $Id$ */
#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;
}