- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 2,217 for accept4 (0.19 sec)
-
src/net/internal/socktest/sys_cloexec.go
//go:build dragonfly || freebsd || linux || netbsd || openbsd || solaris package socktest import "syscall" // Accept4 wraps syscall.Accept4. func (sw *Switch) Accept4(s, flags int) (ns int, sa syscall.Sockaddr, err error) { so := sw.sockso(s) if so == nil { return syscall.Accept4(s, flags) } sw.fmu.RLock() f := sw.fltab[FilterAccept] sw.fmu.RUnlock() af, err := f.apply(so) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 03 14:38:32 UTC 2022 - 1K bytes - Viewed (0) -
src/syscall/syscall_linux_accept.go
// We require Linux kernel version 2.6.32. The accept4 system call was // added in version 2.6.28, so in general we can use accept4. // Unfortunately, for ARM only, accept4 was added in version 2.6.36. // Handle that case here, by using a copy of the Accept function that // we used in Go 1.17. //go:build linux && arm package syscall //sys accept(s int, rsa *RawSockaddrAny, addrlen *_Socklen) (fd int, err error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 16 03:40:42 UTC 2022 - 961 bytes - Viewed (0) -
src/internal/poll/sock_cloexec_accept.go
// This file implements accept for platforms that provide a fast path for // setting SetNonblock and CloseOnExec, but don't necessarily have accept4. // This is the code we used for accept in Go 1.17 and earlier. // On Linux the accept4 system call was introduced in 2.6.28 kernel, // and our minimum requirement is 2.6.32, so we simplified the function. // Unfortunately, on ARM accept4 wasn't added until 2.6.36, so for ARM
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 16 03:40:42 UTC 2022 - 1.8K bytes - Viewed (0) -
src/internal/poll/sock_cloexec_solaris.go
// license that can be found in the LICENSE file. // This file implements accept for platforms that provide a fast path for // setting SetNonblock and CloseOnExec, but don't necessarily have accept4. // The accept4(3c) function was added to Oracle Solaris in the Solaris 11.4.0 // release. Thus, on releases prior to 11.4, we fall back to the combination // of accept(3c) and fcntl(2). package poll import ( "internal/syscall/unix"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:17:25 UTC 2024 - 1.5K bytes - Viewed (0) -
src/internal/poll/hook_cloexec.go
//go:build dragonfly || freebsd || linux || netbsd || openbsd || solaris package poll import "syscall" // Accept4Func is used to hook the accept4 call.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 03 14:38:32 UTC 2022 - 395 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_illumos.go
iovecs := bytes2iovec(iovs) n, err = pwritev(fd, iovecs, off) return n, err } //sys accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) = libsocket.accept4 func Accept4(fd int, flags int) (nfd int, sa Sockaddr, err error) { var rsa RawSockaddrAny var len _Socklen = SizeofSockaddrAny nfd, err = accept4(fd, &rsa, &len, flags) if err != nil { return } if len > SizeofSockaddrAny {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 1.8K bytes - Viewed (0) -
src/internal/syscall/unix/kernel_version_solaris.go
} return major > 11 || (major == 11 && minor >= 4) } return false }) // SupportAccept4 tests whether accept4 system call is available. var SupportAccept4 = sync.OnceValue(func() bool { for { // Test if the accept4() is available. _, _, err := syscall.Accept4(0, syscall.SOCK_NONBLOCK|syscall.SOCK_CLOEXEC) if err == syscall.EINTR { continue } return err != syscall.ENOSYS } })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 03:10:07 UTC 2024 - 3.1K bytes - Viewed (0) -
src/syscall/syscall_linux_accept4.go
// license that can be found in the LICENSE file. // This file provides the Accept function used on all systems // other than arm. See syscall_linux_accept.go for why. //go:build linux && !arm package syscall func Accept(fd int) (nfd int, sa Sockaddr, err error) { var rsa RawSockaddrAny var len _Socklen = SizeofSockaddrAny nfd, err = accept4(fd, &rsa, &len, 0) if err != nil { return } sa, err = anyToSockaddr(&rsa)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 16 03:40:42 UTC 2022 - 592 bytes - Viewed (0) -
src/internal/poll/sock_cloexec.go
// This file implements accept for platforms that provide a fast path for // setting SetNonblock and CloseOnExec. //go:build dragonfly || freebsd || (linux && !arm) || netbsd || openbsd package poll import "syscall" // Wrapper around the accept system call that marks the returned file // descriptor as nonblocking and close-on-exec. func accept(s int) (int, syscall.Sockaddr, string, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:17:25 UTC 2024 - 712 bytes - Viewed (0) -
src/net/main_cloexec_test.go
} var ( // Placeholders for saving original socket system calls. origAccept4 = poll.Accept4Func ) func installAccept4TestHook() { poll.Accept4Func = sw.Accept4 } func uninstallAccept4TestHook() { poll.Accept4Func = origAccept4
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 03 14:38:32 UTC 2022 - 693 bytes - Viewed (0)