runtime: clean up libc_* definitions on Solaris

All functions defined in syscall2_solaris.go have the respective libc_*
var in syscall_solaris.go, except for libc_close. Move it from
os3_solaris.go

Remove unused libc_fstat.

Order go:cgo_import_dynamic and go:linkname lists in
syscall2_solaris.go alphabetically.

Change-Id: I9f12fa473cf1ae351448ac45597c82a67d799c31
Reviewed-on: https://go-review.googlesource.com/97736
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Tobias Klauser 2018-02-28 16:49:33 +01:00 committed by Tobias Klauser
parent 4338518da8
commit c7c01efd96
3 changed files with 3 additions and 8 deletions

View file

@ -9,6 +9,7 @@ import "unsafe"
var (
libc_chdir,
libc_chroot,
libc_close,
libc_execve,
libc_fcntl,
libc_forkx,