1 /***********************************************************************/
5 /* Xavier Leroy, projet Cristal, INRIA Rocquencourt */
7 /* Copyright 1996 Institut National de Recherche en Informatique et */
8 /* en Automatique. All rights reserved. This file is distributed */
9 /* under the terms of the GNU Library General Public License, with */
10 /* the special exception on linking described in file ../../LICENSE. */
12 /***********************************************************************/
22 #include <sys/types.h>
27 #include "unixsupport.h"
29 CAMLprim value
unix_getgroups(value unit
)
31 gid_t gidset
[NGROUPS_MAX
];
36 n
= getgroups(NGROUPS_MAX
, gidset
);
37 if (n
== -1) uerror("getgroups", Nothing
);
39 for (i
= 0; i
< n
; i
++)
40 Field(res
, i
) = Val_int(gidset
[i
]);
46 CAMLprim value
unix_getgroups(value unit
)
47 { invalid_argument("getgroups not implemented"); }