Codebase list golang-pty / lintian-fixes/main ioctl.go
lintian-fixes/main

Tree @lintian-fixes/main (Download .tar.gz)

ioctl.go @lintian-fixes/mainraw · 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
}