// Code generated by cmd/cgo; DO NOT EDIT.
//line /usr/local/go/src/net/cgo_resnew.go:1:1
// Copyright 2015 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
// +build darwin linux,!android netbsd solaris
package net
/*
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
*/
import _ "unsafe"
import "unsafe"
func cgoNameinfoPTR(b []byte, sa * /*line :20:35*/_Ctype_struct_sockaddr /*line :20:52*/, salen /*line :20:60*/_Ctype_socklen_t /*line :20:71*/) (int, error) {
gerrno, err := ( /*line :21:17*/_C2func_getnameinfo /*line :21:29*/)(sa, salen, (* /*line :21:44*/_Ctype_char /*line :21:50*/)(unsafe.Pointer(&b[0])), /*line :21:76*/_Ctype_socklen_t /*line :21:87*/(len(b)), nil, 0, ( /*line :21:105*/_Ciconst_NI_NAMEREQD /*line :21:117*/))
return int(gerrno), err
}
 |
The pages are generated with Golds v0.1.6. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project and developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |