github.com/weedge/lib@v0.0.0-20230424045628-a36dcc1d90e4/poller/netpoll/handle_unix.go (about) 1 // +build linux darwin dragonfly freebsd netbsd openbsd 2 3 package netpoll 4 5 import "syscall" 6 7 func setNonblock(fd int, nonblocking bool) (err error) { 8 return syscall.SetNonblock(fd, nonblocking) 9 }