...

Source file src/github.com/mdlayher/socket/accept4.go

Documentation: github.com/mdlayher/socket

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

View as plain text