Home | History | Annotate | Download | only in net

Lines Matching full:syscall

14 	"syscall"
20 s, err := socketFunc(family, sotype|syscall.SOCK_NONBLOCK|syscall.SOCK_CLOEXEC, proto)
31 case syscall.EPROTONOSUPPORT, syscall.EINVAL:
34 // See ../syscall/exec_unix.go for description of ForkLock.
35 syscall.ForkLock.RLock()
38 syscall.CloseOnExec(s)
40 syscall.ForkLock.RUnlock()
44 if err = syscall.SetNonblock(s, true); err != nil {
53 func accept(s int) (int, syscall.Sockaddr, error) {
54 ns, sa, err := accept4Func(s, syscall.SOCK_NONBLOCK|syscall.SOCK_CLOEXEC)
64 case syscall.ENOSYS: // syscall missing
65 case syscall.EINVAL: // some Linux use this instead of ENOSYS
66 case syscall.EACCES: // some Linux use this instead of ENOSYS
67 case syscall.EFAULT: // some Linux use this instead of ENOSYS
70 // See ../syscall/exec_unix.go for description of ForkLock.
71 // It is probably okay to hold the lock across syscall.Accept
77 syscall.CloseOnExec(ns)
82 if err = syscall.SetNonblock(ns, true); err != nil {