mirror of
https://github.com/creack/pty.git
synced 2026-04-01 19:09:48 +09:00
(*os.File).Fd() implicitly sets file descriptor into blocking mode [1], [2] We avoid that by calling (*os.File).SyscallConn instead. This method was added in go1.12 (released on 2019-02-25) [1]: https://pkg.go.dev/os#File.Fd [2]: https://cs.opensource.google/go/go/+/refs/tags/go1.20.3:src/os/file_unix.go;l=80-87
14 lines
158 B
Go
14 lines
158 B
Go
//go:build aix
|
|
// +build aix
|
|
|
|
package pty
|
|
|
|
const (
|
|
TIOCGWINSZ = 0
|
|
TIOCSWINSZ = 0
|
|
)
|
|
|
|
func ioctl_inner(fd, cmd, ptr uintptr) error {
|
|
return ErrUnsupported
|
|
}
|