From b2a5d5aa5ad185afa15b4f2fbb144093fe88fd64 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Wed, 28 Feb 2018 17:02:49 -0500 Subject: Remove unused vendor github.com/containerd/console Signed-off-by: Matthew Heon Closes: #425 Approved by: rhatdan --- vendor/github.com/containerd/console/tc_freebsd.go | 29 ---------------------- 1 file changed, 29 deletions(-) delete mode 100644 vendor/github.com/containerd/console/tc_freebsd.go (limited to 'vendor/github.com/containerd/console/tc_freebsd.go') diff --git a/vendor/github.com/containerd/console/tc_freebsd.go b/vendor/github.com/containerd/console/tc_freebsd.go deleted file mode 100644 index e2a10e441..000000000 --- a/vendor/github.com/containerd/console/tc_freebsd.go +++ /dev/null @@ -1,29 +0,0 @@ -package console - -import ( - "fmt" - "os" - - "golang.org/x/sys/unix" -) - -const ( - cmdTcGet = unix.TIOCGETA - cmdTcSet = unix.TIOCSETA -) - -// unlockpt unlocks the slave pseudoterminal device corresponding to the master pseudoterminal referred to by f. -// unlockpt should be called before opening the slave side of a pty. -// This does not exist on FreeBSD, it does not allocate controlling terminals on open -func unlockpt(f *os.File) error { - return nil -} - -// ptsname retrieves the name of the first available pts for the given master. -func ptsname(f *os.File) (string, error) { - n, err := unix.IoctlGetInt(int(f.Fd()), unix.TIOCGPTN) - if err != nil { - return "", err - } - return fmt.Sprintf("/dev/pts/%d", n), nil -} -- cgit v1.2.3-54-g00ecf