Files
docker-cli/vendor/github.com/moby/term/tc_illumos.go
Sebastiaan van Stijn d10e2b9a6d vendor: golang.org/x/sys 85ca7c5b95cdf1e557abb38a283d1e61a5959c31
full diff: d5e6a3e2c0...85ca7c5b95

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-05-09 17:26:23 +02:00

26 lines
458 B
Go

//+build solaris illumos
package term
import (
"golang.org/x/sys/unix"
"syscall"
)
func tcget(fd uintptr, p *Termios) syscall.Errno {
termios, err := unix.IoctlGetTermios(int(fd), getTermios)
if err != nil {
return syscall.EINVAL
}
p = (*Termios)(termios)
return 0
}
func tcset(fd uintptr, p *Termios) syscall.Errno {
if err := unix.IoctlSetTermios(int(fd), setTermios, (*unix.Termios)(p)); err != nil {
return syscall.EINVAL
}
return 0
}