1// Copyright 2017 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 5package user 6 7import "syscall" 8 9// Declarations for the libc functions on AIX. 10 11//extern _posix_getpwnam_r 12func libc_getpwnam_r(name *byte, pwd *syscall.Passwd, buf *byte, buflen syscall.Size_t, result **syscall.Passwd) int 13 14//extern _posix_getpwuid_r 15func libc_getpwuid_r(uid syscall.Uid_t, pwd *syscall.Passwd, buf *byte, buflen syscall.Size_t, result **syscall.Passwd) int 16 17//extern _posix_getgrnam_r 18func libc_getgrnam_r(name *byte, grp *syscall.Group, buf *byte, buflen syscall.Size_t, result **syscall.Group) int 19 20//extern _posix_getgrgid_r 21func libc_getgrgid_r(gid syscall.Gid_t, grp *syscall.Group, buf *byte, buflen syscall.Size_t, result **syscall.Group) int 22 23//extern getgrset 24func libc_getgrset(user *byte) *byte 25