Clean up unix vs linux usage

FreeBSD does not support cgroups or namespaces, which the code suggested, and is not supported
in runc anyway right now. So clean up the file naming to use `_linux` where appropriate.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2017-05-12 17:22:09 +01:00
parent 21ef2e3d12
commit 4c67360296
10 changed files with 2 additions and 18 deletions
@@ -1,5 +1,3 @@
// +build linux freebsd
package configs
type FreezerState string
@@ -1,5 +1,3 @@
// +build freebsd linux
package configs
import "fmt"
@@ -1,5 +1,3 @@
// +build linux freebsd
package configs
import (
@@ -1,5 +1,3 @@
// +build linux freebsd
package configs
import (
@@ -1,4 +1,4 @@
// +build !linux,!freebsd
// +build !linux
package configs
@@ -1,5 +1,3 @@
// +build linux freebsd
package libcontainer
// cgroup restoring strategy provided by criu
@@ -1,5 +1,3 @@
// +build linux freebsd
package devices
import (
+1 -1
View File
@@ -1,3 +1,3 @@
// +build windows
// +build !linux
package devices
-2
View File
@@ -1,5 +1,3 @@
// +build linux
package main
import (
-2
View File
@@ -1,5 +1,3 @@
// +build solaris
package main
import "github.com/urfave/cli"