//go:build !windows && go1.12// +build !windows,go1.12package ptyimportfunc ioctl( *os.File, , uintptr) error {returnioctlInner(.Fd(), , ) // Fall back to blocking io.}// NOTE: Unused. Keeping for reference.func ioctlNonblock( *os.File, , uintptr) error { , := .SyscallConn()if != nil {returnioctlInner(.Fd(), , ) // Fall back to blocking io (old behavior). } := make(chanerror, 1)deferclose() = .Control(func( uintptr) { <- ioctlInner(, , ) })if != nil {return } = <-return}
The pages are generated with Goldsv0.8.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.