kubernetes/vendor/github.com/moby/term/tc.go
David Porter 761dd3640e deps: Bump to cAdvisor v0.47.1
Signed-off-by: David Porter <david@porter.me>
2023-01-11 16:07:12 -08:00

21 lines
341 B
Go

//go:build !windows
// +build !windows
package term
import (
"golang.org/x/sys/unix"
)
func tcget(fd uintptr) (*Termios, error) {
p, err := unix.IoctlGetTermios(int(fd), getTermios)
if err != nil {
return nil, err
}
return p, nil
}
func tcset(fd uintptr, p *Termios) error {
return unix.IoctlSetTermios(int(fd), setTermios, p)
}