Add support for ppc64, ppc64le, s390x
Signed-off-by: Yohei Ueda <yohei@jp.ibm.com>
This commit is contained in:
parent
0aa8280708
commit
3bd18c2c54
|
@ -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 {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// +build linux,amd64
|
||||
// +build linux,amd64 linux,ppc64 linux,ppc64le linux,s390x
|
||||
|
||||
package system
|
||||
|
Loading…
Reference in New Issue