]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: add const ARCH, analogous to OS
authorRuss Cox <rsc@golang.org>
Wed, 17 Mar 2010 01:45:48 +0000 (18:45 -0700)
committerRuss Cox <rsc@golang.org>
Wed, 17 Mar 2010 01:45:48 +0000 (18:45 -0700)
R=r
CC=giles, golang-dev
https://golang.org/cl/600041

src/pkg/syscall/Makefile
src/pkg/syscall/syscall_386.go [new file with mode: 0644]
src/pkg/syscall/syscall_amd64.go [new file with mode: 0644]
src/pkg/syscall/syscall_arm.go [new file with mode: 0644]

index 5673da9d278d4f78624858ebc6203551185ebce4..ca3338b10c820dc221584af8da0247be000696b7 100644 (file)
@@ -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 (file)
index 0000000..cb948b8
--- /dev/null
@@ -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 (file)
index 0000000..75c3eac
--- /dev/null
@@ -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 (file)
index 0000000..b9d1ca0
--- /dev/null
@@ -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"