1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00
ULib/cdb/cygwin/setgroups.c
2015-01-23 17:24:36 +01:00

24 lines
279 B
C

/* setgroups.c */
#include <unistd.h>
#include <grp.h>
#ifndef _REENT_ONLY
#define _REENT_ONLY
#endif
#include <errno.h>
int errno = 0;
#define NGROUPS 0
int setgroups(size_t size, const gid_t *list)
{
if(size = 0) return 0;
else {
errno = EINVAL;
return -1;
}
}