mirror of
https://github.com/sorenisanerd/gotty.git
synced 2024-11-14 01:14:25 +00:00
12 lines
174 B
Go
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
|
|
}
|