1
0
mirror of https://github.com/golang/go synced 2024-11-26 07:07:57 -07:00

syscall: add const ARCH, analogous to OS

R=r
CC=giles, golang-dev
https://golang.org/cl/600041
This commit is contained in:
Russ Cox 2010-03-16 18:45:48 -07:00
parent a24f8144e4
commit e153d3d818
4 changed files with 22 additions and 0 deletions

View File

@ -9,6 +9,7 @@ GOFILES=\
errstr.go\ errstr.go\
exec.go\ exec.go\
syscall.go\ syscall.go\
syscall_$(GOARCH).go\
syscall_$(GOOS).go\ syscall_$(GOOS).go\
syscall_$(GOOS)_$(GOARCH).go\ syscall_$(GOOS)_$(GOARCH).go\
zerrors_$(GOOS)_$(GOARCH).go\ zerrors_$(GOOS)_$(GOARCH).go\

View File

@ -0,0 +1,7 @@
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package syscall
const ARCH = "386"

View File

@ -0,0 +1,7 @@
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package syscall
const ARCH = "amd64"

View File

@ -0,0 +1,7 @@
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package syscall
const ARCH = "arm"