From f074fcfdd06e86e485cf3a76f2d4d0386343b452 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Thu, 18 May 2017 09:02:42 -0400 Subject: [PATCH] [pkg/term] switch more syscalls to /x/sys/ Switches the remaining syscalls except Errno to /x/sys/. This was supposed to be part of 33180 Signed-off-by: Christopher Jones Upstream-commit: df6dfcf198a769e7f411736e1abb93e1aabb2698 Component: engine --- components/engine/pkg/term/tc_solaris_cgo.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/engine/pkg/term/tc_solaris_cgo.go b/components/engine/pkg/term/tc_solaris_cgo.go index ebbded77c8..50234affc0 100644 --- a/components/engine/pkg/term/tc_solaris_cgo.go +++ b/components/engine/pkg/term/tc_solaris_cgo.go @@ -13,7 +13,7 @@ import ( import "C" // Termios is the Unix API for terminal I/O. -// It is passthrough for syscall.Termios in order to make it portable with +// It is passthrough for unix.Termios in order to make it portable with // other platforms where it is not available or handled differently. type Termios unix.Termios @@ -28,11 +28,11 @@ func MakeRaw(fd uintptr) (*State, error) { newState := oldState.termios - newState.Iflag &^= (syscall.IGNBRK | syscall.BRKINT | syscall.PARMRK | syscall.ISTRIP | syscall.INLCR | syscall.IGNCR | syscall.ICRNL | syscall.IXON | syscall.IXANY) - newState.Oflag &^= syscall.OPOST - newState.Lflag &^= (syscall.ECHO | syscall.ECHONL | syscall.ICANON | syscall.ISIG | syscall.IEXTEN) - newState.Cflag &^= (syscall.CSIZE | syscall.PARENB) - newState.Cflag |= syscall.CS8 + newState.Iflag &^= (unix.IGNBRK | unix.BRKINT | unix.PARMRK | unix.ISTRIP | unix.INLCR | unix.IGNCR | unix.ICRNL | unix.IXON | unix.IXANY) + newState.Oflag &^= unix.OPOST + newState.Lflag &^= (unix.ECHO | unix.ECHONL | unix.ICANON | unix.ISIG | unix.IEXTEN) + newState.Cflag &^= (unix.CSIZE | unix.PARENB) + newState.Cflag |= unix.CS8 /* VMIN is the minimum number of characters that needs to be read in non-canonical mode for it to be returned