mirror of https://github.com/elisescu/tty-share
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
203 B
Go
14 lines
203 B
Go
2 years ago
|
// +build !windows,!solaris
|
||
4 years ago
|
|
||
|
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
|
||
|
}
|