Skip to content

Commit c128781

Browse files
Merge pull request opencontainers#1447 from justincormack/unix-linux
Clean up unix vs linux usage
2 parents 21ef2e3 + 4c67360 commit c128781

10 files changed

+2
-18
lines changed

libcontainer/configs/cgroup_unix.go renamed to libcontainer/configs/cgroup_linux.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// +build linux freebsd
2-
31
package configs
42

53
type FreezerState string

libcontainer/configs/config_unix.go renamed to libcontainer/configs/config_linux.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// +build freebsd linux
2-
31
package configs
42

53
import "fmt"

libcontainer/configs/config_unix_test.go renamed to libcontainer/configs/config_linux_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// +build linux freebsd
2-
31
package configs
42

53
import (

libcontainer/configs/namespaces_unix.go renamed to libcontainer/configs/namespaces_linux.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// +build linux freebsd
2-
31
package configs
42

53
import (

libcontainer/configs/namespaces_unsupported.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// +build !linux,!freebsd
1+
// +build !linux
22

33
package configs
44

libcontainer/criu_opts_unix.go renamed to libcontainer/criu_opts_linux.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// +build linux freebsd
2-
31
package libcontainer
42

53
// cgroup restoring strategy provided by criu

libcontainer/devices/devices_unix.go renamed to libcontainer/devices/devices_linux.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// +build linux freebsd
2-
31
package devices
42

53
import (
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
// +build windows
1+
// +build !linux
22

33
package devices

main_unix.go renamed to main_linux.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// +build linux
2-
31
package main
42

53
import (

main_solaris.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// +build solaris
2-
31
package main
42

53
import "github.com/urfave/cli"

0 commit comments

Comments
 (0)