Codebase list golang-github-creack-pty / upstream/1.1.9 ioctl.go
upstream/1.1.9

Tree @upstream/1.1.9 (Download .tar.gz)

ioctl.go @upstream/1.1.9raw · history · blame

// +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
}