erm/vendor/github.com/creack/pty/ioctl.go

14 lines
203 B
Go
Raw Normal View History

2021-07-30 22:29:20 +00:00
// +build !windows,!solaris
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
}