diff options
author | Russ Cox <rsc@golang.org> | 2010-03-16 18:45:48 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-03-16 18:45:48 -0700 |
commit | 9ae1e9707533289470c48e93a2ecf1eb44e29b47 (patch) | |
tree | be98120bf2f584e4e73b3b6d6a1138c4cc71016e /src | |
parent | 1192c24f4916df7e3cf343f7476d0af27f8a20cb (diff) | |
download | golang-9ae1e9707533289470c48e93a2ecf1eb44e29b47.tar.gz |
syscall: add const ARCH, analogous to OS
R=r
CC=giles, golang-dev
http://codereview.appspot.com/600041
Diffstat (limited to 'src')
-rw-r--r-- | src/pkg/syscall/Makefile | 1 | ||||
-rw-r--r-- | src/pkg/syscall/syscall_386.go | 7 | ||||
-rw-r--r-- | src/pkg/syscall/syscall_amd64.go | 7 | ||||
-rw-r--r-- | src/pkg/syscall/syscall_arm.go | 7 |
4 files changed, 22 insertions, 0 deletions
diff --git a/src/pkg/syscall/Makefile b/src/pkg/syscall/Makefile index 5673da9d2..ca3338b10 100644 --- a/src/pkg/syscall/Makefile +++ b/src/pkg/syscall/Makefile @@ -9,6 +9,7 @@ GOFILES=\ errstr.go\ exec.go\ syscall.go\ + syscall_$(GOARCH).go\ syscall_$(GOOS).go\ syscall_$(GOOS)_$(GOARCH).go\ zerrors_$(GOOS)_$(GOARCH).go\ diff --git a/src/pkg/syscall/syscall_386.go b/src/pkg/syscall/syscall_386.go new file mode 100644 index 000000000..cb948b87a --- /dev/null +++ b/src/pkg/syscall/syscall_386.go @@ -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" diff --git a/src/pkg/syscall/syscall_amd64.go b/src/pkg/syscall/syscall_amd64.go new file mode 100644 index 000000000..75c3eac6f --- /dev/null +++ b/src/pkg/syscall/syscall_amd64.go @@ -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" diff --git a/src/pkg/syscall/syscall_arm.go b/src/pkg/syscall/syscall_arm.go new file mode 100644 index 000000000..b9d1ca0c0 --- /dev/null +++ b/src/pkg/syscall/syscall_arm.go @@ -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" |