Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(454)

Delta Between Two Patch Sets: src/pkg/net/cgo_stub.go

Issue 5489100: code review 5489100: go/build: add new +build tags 'cgo' and 'nocgo' (Closed)
Left Patch Set: Created 12 years, 3 months ago
Right Patch Set: diff -r 40e366e721a9 https://go.googlecode.com/hg/ Created 12 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/go/build/dir.go ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // Copyright 2011 The Go Authors. All rights reserved. 1 // Copyright 2011 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // +build netbsd openbsd 5 // +build nocgo
6 6
7 // Stub cgo routines for systems that do not use cgo to do network lookups. 7 // Stub cgo routines for systems that do not use cgo to do network lookups.
8 8
9 package net 9 package net
10 10
11 func cgoLookupHost(name string) (addrs []string, err error, completed bool) { 11 func cgoLookupHost(name string) (addrs []string, err error, completed bool) {
12 return nil, nil, false 12 return nil, nil, false
13 } 13 }
14 14
15 func cgoLookupPort(network, service string) (port int, err error, completed bool ) { 15 func cgoLookupPort(network, service string) (port int, err error, completed bool ) {
16 return 0, nil, false 16 return 0, nil, false
17 } 17 }
18 18
19 func cgoLookupIP(name string) (addrs []IP, err error, completed bool) { 19 func cgoLookupIP(name string) (addrs []IP, err error, completed bool) {
20 return nil, nil, false 20 return nil, nil, false
21 } 21 }
22 22
23 func cgoLookupCNAME(name string) (cname string, err error, completed bool) { 23 func cgoLookupCNAME(name string) (cname string, err error, completed bool) {
24 return "", nil, false 24 return "", nil, false
25 } 25 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b