os/user: use _posix_* libc functions

libc getpwnam_r function has a different signature, we must use
_posix_getpwnam_r instead (by default, the pwd.h system include
 file defines getpwnam_r as a static function calling
_posix_getpwnam_r, so a C program calling getpwnam_r will indeed
reference the _posix_getpwnam_r symbol).

Idem for getpwuid_r, getgrnam_r and getgrgid_r.

Issue golang/go#19200

Change-Id: Ib33b3215949a280e2f67bd0f5ba5b4e8a3a559b8
Reviewed-on: https://go-review.googlesource.com/41334
Reviewed-by: Ian Lance Taylor <iant@golang.org>
1 file changed