go/src/net/cgo_unix.go

const cgoAvailable

type addrinfoErrno

func (eai addrinfoErrno) Error() string   {}

func (eai addrinfoErrno) Temporary() bool {}

func (eai addrinfoErrno) Timeout() bool   {}

// isAddrinfoErrno is just for testing purposes.
func (eai addrinfoErrno) isAddrinfoErrno() {}

// doBlockingWithCtx executes a blocking function in a separate goroutine when the provided
// context is cancellable. It is intended for use with calls that don't support context
// cancellation (cgo, syscalls). blocking func may still be running after this function finishes.
// For the duration of the execution of the blocking function, the thread is 'acquired' using [acquireThread],
// blocking might not be executed when the context gets canceled early.
func doBlockingWithCtx[T any](ctx context.Context, lookupName string, blocking func() (T, error)) (T, error) {}

func cgoLookupHost(ctx context.Context, name string) (hosts []string, err error) {}

func cgoLookupPort(ctx context.Context, network, service string) (port int, err error) {}

func cgoLookupServicePort(hints *_C_struct_addrinfo, network, service string) (port int, err error) {}

func cgoLookupHostIP(network, name string) (addrs []IPAddr, err error) {}

func cgoLookupIP(ctx context.Context, network, name string) (addrs []IPAddr, err error) {}

const nameinfoLen

const maxNameinfoLen

func cgoLookupPTR(ctx context.Context, addr string) (names []string, err error) {}

func cgoLookupAddrPTR(addr string, sa *_C_struct_sockaddr, salen _C_socklen_t) (names []string, err error) {}

func cgoSockaddr(ip IP, zone string) (*_C_struct_sockaddr, _C_socklen_t) {}

func cgoLookupCNAME(ctx context.Context, name string) (cname string, err error, completed bool) {}

// resSearch will make a call to the 'res_nsearch' routine in the C library
// and parse the output as a slice of DNS resources.
func resSearch(ctx context.Context, hostname string, rtype, class int) ([]dnsmessage.Resource, error) {}

func cgoResSearch(hostname string, rtype, class int) ([]dnsmessage.Resource, error) {}