aboutsummaryrefslogtreecommitdiff
path: root/src/syscall/syscall_linux_ppc64x.go
diff options
context:
space:
mode:
authorDave Cheney <dave@cheney.net>2015-03-09 07:03:00 +1100
committerDave Cheney <dave@cheney.net>2015-03-10 22:52:09 +0000
commit532bc5f11ca47cdcdf96128800685f0b214f801c (patch)
tree2d43a3e9005d8fee2d561cb12f5a1445f8bd0a4b /src/syscall/syscall_linux_ppc64x.go
parentf00c19add5b5bd2126af689563ad24013e12faa9 (diff)
downloadgo-532bc5f11ca47cdcdf96128800685f0b214f801c.tar.xz
syscall: exec_linux.go: support platforms without SYS_DUP2
Updates #9974 This change is in preparation for merging the arm64 platform. Arm64 does not support SYS_DUP2 at all, so define a new constant to be the minimum dup(2) version supported. This constant defaults to SYS_DUP2 on all existing platforms. Change-Id: If405878105082c7c880f8541c1491970124c9ce4 Reviewed-on: https://go-review.googlesource.com/7123 Reviewed-by: Minux Ma <minux@golang.org> Run-TryBot: Minux Ma <minux@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Dave Cheney <dave@cheney.net>
Diffstat (limited to 'src/syscall/syscall_linux_ppc64x.go')
-rw-r--r--src/syscall/syscall_linux_ppc64x.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/syscall/syscall_linux_ppc64x.go b/src/syscall/syscall_linux_ppc64x.go
index c266c855e2..fcf1d7b178 100644
--- a/src/syscall/syscall_linux_ppc64x.go
+++ b/src/syscall/syscall_linux_ppc64x.go
@@ -7,6 +7,8 @@
package syscall
+const _SYS_dup = SYS_DUP2
+
//sysnb Dup2(oldfd int, newfd int) (err error)
//sys Fchown(fd int, uid int, gid int) (err error)
//sys Fstat(fd int, stat *Stat_t) (err error)