pkg/ns: evaluate syscall number at compile-time
authorAngus Lees <gus@inodes.org>
Fri, 13 May 2016 07:32:40 +0000 (17:32 +1000)
committerStefan Junker <mail@stefanjunker.de>
Tue, 17 May 2016 16:36:29 +0000 (18:36 +0200)
commit2b019bfde1b46fef44ebaa6f53945dfc1a975e15
treed685c7764ba94e811d13463d996f27dfb489bc7e
parenta2f23f5a847b4982248e60b642ab5222f011a45d
pkg/ns: evaluate syscall number at compile-time

Previously this code used a run-time map lookup keyed by
runtime.GOOS/GOARCH.  This version uses conditional compilation to make
this choice at compile time, giving immediate feedback for unsupported
platforms.
pkg/ns/consts_linux_386.go [new file with mode: 0644]
pkg/ns/consts_linux_amd64.go [new file with mode: 0644]
pkg/ns/consts_linux_arm.go [new file with mode: 0644]
pkg/ns/ns.go