mirror of
https://github.com/elisescu/tty-share
synced 2024-11-11 13:10:32 +00:00
14 lines
194 B
Go
14 lines
194 B
Go
// +build !windows
|
|
|
|
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
|
|
}
|