gotty/Godeps/_workspace/src/github.com/kr/pty/ioctl.go

12 lines
174 B
Go
Raw Normal View History

2015-08-16 09:47:23 +00:00
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
}