Merge from trunk
[official-gcc.git] / libgo / go / os / user / decls_solaris.go
blob788a00f06613020ded87045b819f3470894f258f
1 // Copyright 2014 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.
5 // +build solaris
6 // +build cgo
8 package user
10 import "syscall"
12 // Declarations for the libc functions on Solaris.
14 //extern __posix_getpwnam_r
15 func libc_getpwnam_r(name *byte, pwd *syscall.Passwd, buf *byte, buflen syscall.Size_t, result **syscall.Passwd) int
17 //extern __posix_getpwuid_r
18 func libc_getpwuid_r(uid syscall.Uid_t, pwd *syscall.Passwd, buf *byte, buflen syscall.Size_t, result **syscall.Passwd) int