ioctl.go 174 B

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