open-nomad/vendor/github.com/kr/pty/ioctl.go
2019-05-10 19:17:14 -04:00

14 lines
194 B
Go

// +build !windows
package pty
import "syscall"
func ioctl(fd, cmd, ptr uintptr) error {
_, _, e := syscall.Syscall(syscall.SYS_IOCTL, fd, cmd, ptr)
if e != 0 {
return e
}
return nil
}