Merge from trunk
[official-gcc.git] / libgo / go / os / user / decls_unix.go
blobf76e4c9bdfcc92fe4716cf41513be5e08989d2d7
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 darwin dragonfly freebsd linux netbsd openbsd
6 // +build cgo
8 package user
10 import "syscall"
12 // Declarations for the libc functions on most Unix systems.
14 //extern getpwnam_r
15 func libc_getpwnam_r(name *byte, pwd *syscall.Passwd, buf *byte, buflen syscall.Size_t, result **syscall.Passwd) int
17 //extern getpwuid_r
18 func libc_getpwuid_r(uid syscall.Uid_t, pwd *syscall.Passwd, buf *byte, buflen syscall.Size_t, result **syscall.Passwd) int