mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
f2614f2107
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
11 lines
174 B
Go
11 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
|
|
}
|