github.com/miolini/go@v0.0.0-20160405192216-fca68c8cb408/src/os/user/getgrouplist_unix.c (about) 1 // Copyright 2016 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // +build cgo 6 // +build dragonfly freebsd !android,linux netbsd openbsd 7 8 #include <unistd.h> 9 #include <sys/types.h> 10 #include <grp.h> 11 12 int mygetgrouplist(const char* user, gid_t group, gid_t* groups, int* ngroups) { 13 return getgrouplist(user, group, groups, ngroups); 14 }