kubernetes/vendor/github.com/moby/term/tc.go
Davanum Srinivas ee43102806
update vendor
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-03-19 07:18:10 -04:00

21 lines
440 B
Go

// +build !windows
package term // import "github.com/moby/term"
import (
"syscall"
"unsafe"
"golang.org/x/sys/unix"
)
func tcget(fd uintptr, p *Termios) syscall.Errno {
_, _, err := unix.Syscall(unix.SYS_IOCTL, fd, uintptr(getTermios), uintptr(unsafe.Pointer(p)))
return err
}
func tcset(fd uintptr, p *Termios) syscall.Errno {
_, _, err := unix.Syscall(unix.SYS_IOCTL, fd, setTermios, uintptr(unsafe.Pointer(p)))
return err
}