Codebase list golang-pty / debian/1.1.1-1 ioctl.go
debian/1.1.1-1

Tree @debian/1.1.1-1 (Download .tar.gz)

ioctl.go @debian/1.1.1-1raw · history · blame

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