* gcc.dg/guality/guality.exp: Skip on AIX.
[official-gcc.git] / libgo / go / net / cgo_stub.go
blob52e57d7400e075ef3f6ee968bed1616ee93ed792
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.
5 // +build !cgo
7 // Stub cgo routines for systems that do not use cgo to do network lookups.
9 package net
11 func cgoLookupHost(name string) (addrs []string, err error, completed bool) {
12 return nil, nil, false
15 func cgoLookupPort(network, service string) (port int, err error, completed bool) {
16 return 0, nil, false
19 func cgoLookupIP(name string) (addrs []IP, err error, completed bool) {
20 return nil, nil, false
23 func cgoLookupCNAME(name string) (cname string, err error, completed bool) {
24 return "", nil, false