cgo_stub.go 692 Bytes
Newer Older
1 2 3 4
// Copyright 2011 The Go Authors.  All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

5
// +build netbsd openbsd
6

7 8 9 10
// Stub cgo routines for systems that do not use cgo to do network lookups.

package net

11
func cgoLookupHost(name string) (addrs []string, err error, completed bool) {
12 13 14
	return nil, nil, false
}

15
func cgoLookupPort(network, service string) (port int, err error, completed bool) {
16 17 18
	return 0, nil, false
}

19
func cgoLookupIP(name string) (addrs []IP, err error, completed bool) {
20 21
	return nil, nil, false
}
22

23
func cgoLookupCNAME(name string) (cname string, err error, completed bool) {
24 25
	return "", nil, false
}