Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Commit

Permalink
Add support for ppc64, ppc64le, s390x
Browse files Browse the repository at this point in the history
Signed-off-by: Yohei Ueda <yohei@jp.ibm.com>
  • Loading branch information
yoheiueda committed Nov 21, 2014
1 parent 0aa8280 commit 3bd18c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions system/setns_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ import (
// We need different setns values for the different platforms and arch
// We are declaring the macro here because the SETNS syscall does not exist in th stdlib
var setNsMap = map[string]uintptr{
"linux/386": 346,
"linux/amd64": 308,
"linux/arm": 374,
"linux/386": 346,
"linux/amd64": 308,
"linux/arm": 374,
"linux/ppc64": 350,
"linux/ppc64le": 350,
"linux/s390x": 339,
}

func Setns(fd uintptr, flags uintptr) error {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux,amd64
// +build linux,amd64 linux,ppc64 linux,ppc64le linux,s390x

package system

Expand Down

0 comments on commit 3bd18c2

Please sign in to comment.