diff options
author | Dawid Dziurla <dawidd0811@gmail.com> | 2020-03-25 10:37:39 +0100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-03-25 21:26:15 +1100 |
commit | 8a06b6067ebe5b96a885c8d02b23d9d23fc8e132 (patch) | |
tree | 69534cbd4380ab151f607b4031fbfc54567b9aad /vendor/github.com/creack/pty/ioctl.go | |
parent | 2dcc52abd066c968d007114f44c55ae8205ded5a (diff) |
go mod vendor
Diffstat (limited to 'vendor/github.com/creack/pty/ioctl.go')
-rw-r--r-- | vendor/github.com/creack/pty/ioctl.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vendor/github.com/creack/pty/ioctl.go b/vendor/github.com/creack/pty/ioctl.go new file mode 100644 index 000000000..c85cdcd14 --- /dev/null +++ b/vendor/github.com/creack/pty/ioctl.go @@ -0,0 +1,13 @@ +// +build !windows,!solaris + +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 +} |