From 51510a8806a36262e23e345f688703bf88f04724 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Tue, 29 Nov 2016 15:38:24 -0800 Subject: [PATCH] Move osutil to sys package Signed-off-by: Michael Crosby --- {osutils => sys}/fds.go | 2 +- {osutils => sys}/prctl.go | 2 +- {osutils => sys}/prctl_solaris.go | 2 +- {osutils => sys}/proc.go | 2 +- {osutils => sys}/reaper.go | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename {osutils => sys}/fds.go (95%) rename {osutils => sys}/prctl.go (99%) rename {osutils => sys}/prctl_solaris.go (96%) rename {osutils => sys}/proc.go (98%) rename {osutils => sys}/reaper.go (98%) diff --git a/osutils/fds.go b/sys/fds.go similarity index 95% rename from osutils/fds.go rename to sys/fds.go index 98fc930..3c1ec67 100644 --- a/osutils/fds.go +++ b/sys/fds.go @@ -1,6 +1,6 @@ // +build !windows,!darwin -package osutils +package sys import ( "io/ioutil" diff --git a/osutils/prctl.go b/sys/prctl.go similarity index 99% rename from osutils/prctl.go rename to sys/prctl.go index 1d6e251..2715773 100644 --- a/osutils/prctl.go +++ b/sys/prctl.go @@ -3,7 +3,7 @@ // Package osutils provide access to the Get Child and Set Child prctl // flags. // See http://man7.org/linux/man-pages/man2/prctl.2.html -package osutils +package sys import ( "syscall" diff --git a/osutils/prctl_solaris.go b/sys/prctl_solaris.go similarity index 96% rename from osutils/prctl_solaris.go rename to sys/prctl_solaris.go index 88d6c71..9443f14 100644 --- a/osutils/prctl_solaris.go +++ b/sys/prctl_solaris.go @@ -1,6 +1,6 @@ // +build solaris -package osutils +package sys import ( "errors" diff --git a/osutils/proc.go b/sys/proc.go similarity index 98% rename from osutils/proc.go rename to sys/proc.go index 1bb728e..fbe7b51 100644 --- a/osutils/proc.go +++ b/sys/proc.go @@ -1,6 +1,6 @@ // +build linux -package osutils +package sys import ( "bufio" diff --git a/osutils/reaper.go b/sys/reaper.go similarity index 98% rename from osutils/reaper.go rename to sys/reaper.go index 6a80335..343cc8f 100644 --- a/osutils/reaper.go +++ b/sys/reaper.go @@ -1,6 +1,6 @@ // +build !windows -package osutils +package sys import "syscall"