Merge pull request #277 from yoheiueda/support-for-ppc64-ppc64le-s390x

Add support for ppc64, ppc64le, s390x
This commit is contained in:
Mrunal Patel 2014-11-24 12:40:28 -08:00
commit 72942137ef
2 changed files with 7 additions and 4 deletions

View File

@ -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 {

View File

@ -1,4 +1,4 @@
// +build linux,amd64
// +build linux,amd64 linux,ppc64 linux,ppc64le linux,s390x
package system