ioctl.go 194 B

12345678910111213
  1. // +build !windows
  2. package pty
  3. import "syscall"
  4. func ioctl(fd, cmd, ptr uintptr) error {
  5. _, _, e := syscall.Syscall(syscall.SYS_IOCTL, fd, cmd, ptr)
  6. if e != 0 {
  7. return e
  8. }
  9. return nil
  10. }