wide/vendor/github.com/kr/pty/ioctl.go

14 lines
194 B
Go
Raw Normal View History

2018-03-13 08:11:10 +03:00
// +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
}