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 //go:build !osusergo && darwin
6 7 package user
8 9 import (
10 "internal/syscall/unix"
11 )
12 13 func getGroupList(name *_C_char, userGID _C_gid_t, gids *_C_gid_t, n *_C_int) _C_int {
14 err := unix.Getgrouplist(name, userGID, gids, n)
15 if err != nil {
16 return -1
17 }
18 return 0
19 }
20