accept4.go 296 B

123456789101112131415
  1. //go:build dragonfly || freebsd || illumos || linux
  2. // +build dragonfly freebsd illumos linux
  3. package socket
  4. import (
  5. "golang.org/x/sys/unix"
  6. )
  7. const sysAccept = "accept4"
  8. // accept wraps accept4(2).
  9. func accept(fd, flags int) (int, unix.Sockaddr, error) {
  10. return unix.Accept4(fd, flags)
  11. }