~ubuntu-branches/ubuntu/saucy/golang/saucy

« back to all changes in this revision

Viewing changes to src/pkg/net/cgo_linux.go

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2013-07-08 05:52:37 UTC
  • mfrom: (29.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130708055237-at01839e0hp8z3ni
Tags: 2:1.1-1ubuntu1
016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
*/
10
10
import "C"
11
11
 
12
 
func cgoAddrInfoMask() C.int {
 
12
func cgoAddrInfoFlags() C.int {
 
13
        // NOTE(rsc): In theory there are approximately balanced
 
14
        // arguments for and against including AI_ADDRCONFIG
 
15
        // in the flags (it includes IPv4 results only on IPv4 systems,
 
16
        // and similarly for IPv6), but in practice setting it causes
 
17
        // getaddrinfo to return the wrong canonical name on Linux.
 
18
        // So definitely leave it out.
13
19
        return C.AI_CANONNAME | C.AI_V4MAPPED | C.AI_ALL
14
20
}