github.com/weedge/lib@v0.0.0-20230424045628-a36dcc1d90e4/poller/helper.go (about)

     1  //go:build linux
     2  // +build linux
     3  
     4  package poller
     5  
     6  import (
     7  	"syscall"
     8  	_ "unsafe"
     9  )
    10  
    11  //go:linkname anyToSockaddr syscall.anyToSockaddr
    12  func anyToSockaddr(rsa *syscall.RawSockaddrAny) (syscall.Sockaddr, error)