gotty/vendor/github.com/kr/pty/ioctl.go
2016-04-13 16:17:57 +09:00

12 lines
174 B
Go

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
}