1// Copyright 2011 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// +build !cgo netgo
6
7package net
8
9import "context"
10
11func init() { netGo = true }
12
13type addrinfoErrno int
14
15func (eai addrinfoErrno) Error() string   { return "<nil>" }
16func (eai addrinfoErrno) Temporary() bool { return false }
17func (eai addrinfoErrno) Timeout() bool   { return false }
18
19func cgoLookupHost(ctx context.Context, name string) (addrs []string, err error, completed bool) {
20	return nil, nil, false
21}
22
23func cgoLookupPort(ctx context.Context, network, service string) (port int, err error, completed bool) {
24	return 0, nil, false
25}
26
27func cgoLookupIP(ctx context.Context, name string) (addrs []IPAddr, err error, completed bool) {
28	return nil, nil, false
29}
30
31func cgoLookupCNAME(ctx context.Context, name string) (cname string, err error, completed bool) {
32	return "", nil, false
33}
34
35func cgoLookupPTR(ctx context.Context, addr string) (ptrs []string, err error, completed bool) {
36	return nil, nil, false
37}
38