Debian Codegraph @

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

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