]> Cypherpunks repositories - gostls13.git/commit
os/user: don't create C function mygetgrouplist
authorIan Lance Taylor <iant@golang.org>
Tue, 10 May 2016 21:27:32 +0000 (14:27 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 10 May 2016 22:32:38 +0000 (22:32 +0000)
commit9780bf2a9587b6aa0c92526cc1d6d6d1ed4c7210
treef5414d9379d64b72d4d0a0a5c57a652b80975c07
parent81a89606ef7e1334a0a23dab2eaa295b381caebc
os/user: don't create C function mygetgrouplist

Instead of exporting the C function mygetgrouplist as a global symbol to
conflict with other symbols of the same name, use trivial Go code and a
static C function.

Change-Id: I98dd667814d0a0ed8f7b1d4cfc6483d5a6965b26
Reviewed-on: https://go-review.googlesource.com/23008
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/os/user/getgrouplist_darwin.go [moved from src/os/user/getgrouplist_darwin.c with 64% similarity]
src/os/user/getgrouplist_unix.go [moved from src/os/user/getgrouplist_unix.c with 56% similarity]
src/os/user/listgroups_unix.go