func current() (*User, error) { … }
func lookupUser(username string) (*User, error) { … }
func lookupUserId(uid string) (*User, error) { … }
func lookupUnixUid(uid int) (*User, error) { … }
func buildUser(pwd *_C_struct_passwd) *User { … }
func lookupGroup(groupname string) (*Group, error) { … }
func lookupGroupId(gid string) (*Group, error) { … }
func lookupUnixGid(gid int) (*Group, error) { … }
func buildGroup(grp *_C_struct_group) *Group { … }
type bufferKind …
var userBuffer …
var groupBuffer …
func (k bufferKind) initialSize() _C_size_t { … }
func retryWithBuffer(kind bufferKind, f func([]byte) syscall.Errno) error { … }
const maxBufferSize …
func isSizeReasonable(sz int64) bool { … }
func structPasswdForNegativeTest() _C_struct_passwd { … }