1 // Copyright 2011 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.
9 var executablePath string
12 func getexecname() *byte
15 func getPageSize() int32
18 func sysconf(int32) _C_long
22 if physPageSize == 0 {
23 physPageSize = uintptr(getPageSize())
27 func sysargs(argc int32, argv **byte) {
28 executablePath = gostringnocopy(getexecname())
31 //go:linkname solarisExecutablePath os.solarisExecutablePath
33 // solarisExecutablePath is called from the os package to fetch the
34 // saved executable path.
35 func solarisExecutablePath() string {