mirror of
https://github.com/creack/pty.git
synced 2026-03-31 10:37:09 +09:00
* Add GHA workflow to run test_crosscompile and go test * crosscompile job doesn't need setup-go * Test more go versions * Test 1.6 * Remove 1.13 and add comment of testing strategy
20 lines
312 B
Go
20 lines
312 B
Go
//go:build !windows && !solaris
|
|
// +build !windows,!solaris
|
|
|
|
package pty
|
|
|
|
import "syscall"
|
|
|
|
const (
|
|
TIOCGWINSZ = syscall.TIOCGWINSZ
|
|
TIOCSWINSZ = syscall.TIOCSWINSZ
|
|
)
|
|
|
|
func ioctl(fd, cmd, ptr uintptr) error {
|
|
_, _, e := syscall.Syscall(syscall.SYS_IOCTL, fd, cmd, ptr)
|
|
if e != 0 {
|
|
return e
|
|
}
|
|
return nil
|
|
}
|