package user
import (
"syscall"
)
import _ "unsafe"
type _C_char = _Ctype_char
type _C_int = _Ctype_int
type _C_gid_t = _Ctype_gid_t
type _C_uid_t = _Ctype_uid_t
type _C_size_t = _Ctype_size_t
type _C_struct_group = _Ctype_struct_group
type _C_struct_passwd = _Ctype_struct_passwd
type _C_long = _Ctype_long
func _C_pw_uid(p *_C_struct_passwd ) _C_uid_t { return p .pw_uid }
func _C_pw_uidp(p *_C_struct_passwd ) *_C_uid_t { return &p .pw_uid }
func _C_pw_gid(p *_C_struct_passwd ) _C_gid_t { return p .pw_gid }
func _C_pw_gidp(p *_C_struct_passwd ) *_C_gid_t { return &p .pw_gid }
func _C_pw_name(p *_C_struct_passwd ) *_C_char { return p .pw_name }
func _C_pw_gecos(p *_C_struct_passwd ) *_C_char { return p .pw_gecos }
func _C_pw_dir(p *_C_struct_passwd ) *_C_char { return p .pw_dir }
func _C_gr_gid(g *_C_struct_group ) _C_gid_t { return g .gr_gid }
func _C_gr_name(g *_C_struct_group ) *_C_char { return g .gr_name }
func _C_GoString(p *_C_char ) string { return ( _Cfunc_GoString )(p ) }
func _C_getpwnam_r(name *_C_char , buf *_C_char , size _C_size_t ) (pwd _C_struct_passwd , found bool , errno syscall .Errno ) {
var f , e _C_int
pwd = ( _Cfunc_mygetpwnam_r )(name , buf , size , &f , &e )
return pwd , f != 0 , syscall .Errno (e )
}
func _C_getpwuid_r(uid _C_uid_t , buf *_C_char , size _C_size_t ) (pwd _C_struct_passwd , found bool , errno syscall .Errno ) {
var f , e _C_int
pwd = ( _Cfunc_mygetpwuid_r )(_C_int (uid ), buf , size , &f , &e )
return pwd , f != 0 , syscall .Errno (e )
}
func _C_getgrnam_r(name *_C_char , buf *_C_char , size _C_size_t ) (grp _C_struct_group , found bool , errno syscall .Errno ) {
var f , e _C_int
grp = ( _Cfunc_mygetgrnam_r )(name , buf , size , &f , &e )
return grp , f != 0 , syscall .Errno (e )
}
func _C_getgrgid_r(gid _C_gid_t , buf *_C_char , size _C_size_t ) (grp _C_struct_group , found bool , errno syscall .Errno ) {
var f , e _C_int
grp = ( _Cfunc_mygetgrgid_r )(_C_int (gid ), buf , size , &f , &e )
return grp , f != 0 , syscall .Errno (e )
}
const (
_C__SC_GETPW_R_SIZE_MAX = ( _Ciconst__SC_GETPW_R_SIZE_MAX )
_C__SC_GETGR_R_SIZE_MAX = ( _Ciconst__SC_GETGR_R_SIZE_MAX )
)
func _C_sysconf(key _C_int ) _C_long { return ( _Cfunc_sysconf )(key ) }
The pages are generated with Golds v0.8.2 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .