1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-12 11:15:00 +02:00
lazygit/vendor/github.com/creack/pty/ioctl.go

14 lines
203 B
Go
Raw Normal View History

2020-03-25 11:37:39 +02:00
// +build !windows,!solaris
2018-10-27 14:56:15 +02:00
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
}