keksvpn/vendor/github.com/mdlayher/socket/accept4.go

16 lines
296 B
Go
Raw Normal View History

2022-02-27 03:22:11 +00:00
//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)
}