summaryrefslogtreecommitdiff
path: root/vendor/github.com/kr/pty/ioctl.go
blob: c57c19e7e25b08e658d0c10de970f9bd6ae9fa96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// +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
}