keksvpn/vendor/github.com/mdlayher/socket/accept4.go
2022-02-27 04:22:11 +01:00

15 lines
296 B
Go

//go:build dragonfly || freebsd || illumos || linux
// +build dragonfly freebsd illumos linux
package socket
import (
"golang.org/x/sys/unix"
)
const sysAccept = "accept4"
// accept wraps accept4(2).
func accept(fd, flags int) (int, unix.Sockaddr, error) {
return unix.Accept4(fd, flags)
}