mirror of
https://github.com/golang/go
synced 2024-10-04 15:21:22 -06:00
6d3a7e79a4
This change adds a type addrinfoErrno to represent getaddrinfo, getnameinfo-specific errors, and uses it in cgo-based lookup functions. Also retags cgo files for clarification and does minor cleanup. Change-Id: I6db7130ad7bf35bbd4e8839a97759e1364c43828 Reviewed-on: https://go-review.googlesource.com/9020 Reviewed-by: Ian Lance Taylor <iant@golang.org>
15 lines
273 B
Go
15 lines
273 B
Go
// 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.
|
|
|
|
// +build cgo,!netgo
|
|
|
|
package net
|
|
|
|
/*
|
|
#include <netdb.h>
|
|
*/
|
|
import "C"
|
|
|
|
const cgoAddrInfoFlags = C.AI_CANONNAME
|