mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
71e9f5c520
Signed-off-by: Tibor Vass <tibor@docker.com>
21 lines
465 B
Go
21 lines
465 B
Go
// +build !windows
|
|
// +build !linux !cgo
|
|
// +build !linux !ppc64le
|
|
// +build !solaris !cgo
|
|
|
|
package term
|
|
|
|
import (
|
|
"syscall"
|
|
"unsafe"
|
|
)
|
|
|
|
func tcget(fd uintptr, p *Termios) syscall.Errno {
|
|
_, _, err := syscall.Syscall(syscall.SYS_IOCTL, fd, uintptr(getTermios), uintptr(unsafe.Pointer(p)))
|
|
return err
|
|
}
|
|
|
|
func tcset(fd uintptr, p *Termios) syscall.Errno {
|
|
_, _, err := syscall.Syscall(syscall.SYS_IOCTL, fd, setTermios, uintptr(unsafe.Pointer(p)))
|
|
return err
|
|
}
|