mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
4338518da8
commit
c7c01efd96
3 changed files with 3 additions and 8 deletions
|
|
@ -12,9 +12,7 @@ import "unsafe"
|
|||
|
||||
//go:cgo_import_dynamic libc____errno ___errno "libc.so"
|
||||
//go:cgo_import_dynamic libc_clock_gettime clock_gettime "libc.so"
|
||||
//go:cgo_import_dynamic libc_close close "libc.so"
|
||||
//go:cgo_import_dynamic libc_exit exit "libc.so"
|
||||
//go:cgo_import_dynamic libc_fstat fstat "libc.so"
|
||||
//go:cgo_import_dynamic libc_getcontext getcontext "libc.so"
|
||||
//go:cgo_import_dynamic libc_kill kill "libc.so"
|
||||
//go:cgo_import_dynamic libc_madvise madvise "libc.so"
|
||||
|
|
@ -46,9 +44,7 @@ import "unsafe"
|
|||
|
||||
//go:linkname libc____errno libc____errno
|
||||
//go:linkname libc_clock_gettime libc_clock_gettime
|
||||
//go:linkname libc_close libc_close
|
||||
//go:linkname libc_exit libc_exit
|
||||
//go:linkname libc_fstat libc_fstat
|
||||
//go:linkname libc_getcontext libc_getcontext
|
||||
//go:linkname libc_kill libc_kill
|
||||
//go:linkname libc_madvise libc_madvise
|
||||
|
|
@ -81,9 +77,7 @@ import "unsafe"
|
|||
var (
|
||||
libc____errno,
|
||||
libc_clock_gettime,
|
||||
libc_close,
|
||||
libc_exit,
|
||||
libc_fstat,
|
||||
libc_getcontext,
|
||||
libc_kill,
|
||||
libc_madvise,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue