source: asp3_tinet_ecnl_arm/trunk/musl-1.1.18/src/misc/initgroups.c@ 352

Last change on this file since 352 was 352, checked in by coas-nagasima, 6 years ago

arm向けASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 255 bytes
Line 
1#define _GNU_SOURCE
2#include <grp.h>
3#include <limits.h>
4
5int initgroups(const char *user, gid_t gid)
6{
7 gid_t groups[NGROUPS_MAX];
8 int count = NGROUPS_MAX;
9 if (getgrouplist(user, gid, groups, &count) < 0) return -1;
10 return setgroups(count, groups);
11}
Note: See TracBrowser for help on using the repository browser.