src: make use of runtime.GOOS, GOARCH instead of syscall.OS, ARCH

R=rsc, r
CC=golang-dev
https://golang.org/cl/5545048
This commit is contained in:
Mikio Hara 2012-01-14 06:40:55 +09:00
parent 5f7337769c
commit 92c8df46c6
35 changed files with 51 additions and 83 deletions

View file

@ -7,6 +7,7 @@
package syscall
import (
"runtime"
"unsafe"
)
@ -41,7 +42,7 @@ func forkAndExecInChild(argv0 *byte, argv, envv []*byte, chroot, dir *byte, attr
// guard against side effects of shuffling fds below.
fd := append([]int(nil), attr.Files...)
darwin := OS == "darwin"
darwin := runtime.GOOS == "darwin"
// About to call fork.
// No more allocation or calls of non-assembly functions.