1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
|
//go:cgo_ldflag "-g"
//go:cgo_ldflag "-O2"
// Code generated by cmd/cgo; DO NOT EDIT.
package net
import "unsafe"
import _ "runtime/cgo"
import "syscall"
var _ syscall.Errno
func _Cgo_ptr(ptr unsafe.Pointer) unsafe.Pointer { return ptr }
//go:linkname _Cgo_always_false runtime.cgoAlwaysFalse
var _Cgo_always_false bool
//go:linkname _Cgo_use runtime.cgoUse
func _Cgo_use(interface{})
type _Ctype___socklen_t = _Ctype_uint
type _Ctype_char int8
type _Ctype_int int32
type _Ctype_intgo = _Ctype_ptrdiff_t
type _Ctype_long int64
type _Ctype_ptrdiff_t = _Ctype_long
type _Ctype_sa_family_t = _Ctype_ushort
type _Ctype_socklen_t = _Ctype___socklen_t
type _Ctype_struct_addrinfo struct {
ai_flags _Ctype_int
ai_family _Ctype_int
ai_socktype _Ctype_int
ai_protocol _Ctype_int
ai_addrlen _Ctype_socklen_t
ai_addr *_Ctype_struct_sockaddr
ai_canonname *_Ctype_char
ai_next *_Ctype_struct_addrinfo
}
type _Ctype_struct_sockaddr struct {
sa_family _Ctype_sa_family_t
sa_data [14]_Ctype_char
}
type _Ctype_uint uint32
type _Ctype_ushort uint16
type _Ctype_void [0]byte
//go:linkname _cgo_runtime_cgocall runtime.cgocall
func _cgo_runtime_cgocall(unsafe.Pointer, uintptr) int32
//go:linkname _cgo_runtime_cgocallback runtime.cgocallback
func _cgo_runtime_cgocallback(unsafe.Pointer, unsafe.Pointer, uintptr, uintptr)
//go:linkname _cgoCheckPointer runtime.cgoCheckPointer
func _cgoCheckPointer(interface{}, ...interface{})
//go:linkname _cgoCheckResult runtime.cgoCheckResult
func _cgoCheckResult(interface{})
const _Ciconst_AF_INET = 0x2
const _Ciconst_AF_INET6 = 0xa
const _Ciconst_AI_ALL = 0x10
const _Ciconst_AI_CANONNAME = 0x2
const _Ciconst_AI_V4MAPPED = 0x8
const _Ciconst_EAI_AGAIN = -0x3
const _Ciconst_EAI_NONAME = -0x2
const _Ciconst_EAI_OVERFLOW = -0xc
const _Ciconst_EAI_SYSTEM = -0xb
const _Ciconst_IPPROTO_TCP = 0x6
const _Ciconst_IPPROTO_UDP = 0x11
const _Ciconst_NI_NAMEREQD = 0x8
const _Ciconst_SOCK_DGRAM = 0x2
const _Ciconst_SOCK_STREAM = 0x1
//go:cgo_import_static _cgo_18049202ccd9_C2func_getaddrinfo
//go:linkname __cgofn__cgo_18049202ccd9_C2func_getaddrinfo _cgo_18049202ccd9_C2func_getaddrinfo
var __cgofn__cgo_18049202ccd9_C2func_getaddrinfo byte
var _cgo_18049202ccd9_C2func_getaddrinfo = unsafe.Pointer(&__cgofn__cgo_18049202ccd9_C2func_getaddrinfo)
//go:cgo_unsafe_args
func _C2func_getaddrinfo(p0 *_Ctype_char, p1 *_Ctype_char, p2 *_Ctype_struct_addrinfo, p3 **_Ctype_struct_addrinfo) (r1 _Ctype_int, r2 error) {
errno := _cgo_runtime_cgocall(_cgo_18049202ccd9_C2func_getaddrinfo, uintptr(unsafe.Pointer(&p0)))
if errno != 0 { r2 = syscall.Errno(errno) }
if _Cgo_always_false {
_Cgo_use(p0)
_Cgo_use(p1)
_Cgo_use(p2)
_Cgo_use(p3)
}
return
}
//go:cgo_import_static _cgo_18049202ccd9_C2func_getnameinfo
//go:linkname __cgofn__cgo_18049202ccd9_C2func_getnameinfo _cgo_18049202ccd9_C2func_getnameinfo
var __cgofn__cgo_18049202ccd9_C2func_getnameinfo byte
var _cgo_18049202ccd9_C2func_getnameinfo = unsafe.Pointer(&__cgofn__cgo_18049202ccd9_C2func_getnameinfo)
//go:cgo_unsafe_args
func _C2func_getnameinfo(p0 *_Ctype_struct_sockaddr, p1 _Ctype_socklen_t, p2 *_Ctype_char, p3 _Ctype_socklen_t, p4 *_Ctype_char, p5 _Ctype_socklen_t, p6 _Ctype_int) (r1 _Ctype_int, r2 error) {
errno := _cgo_runtime_cgocall(_cgo_18049202ccd9_C2func_getnameinfo, uintptr(unsafe.Pointer(&p0)))
if errno != 0 { r2 = syscall.Errno(errno) }
if _Cgo_always_false {
_Cgo_use(p0)
_Cgo_use(p1)
_Cgo_use(p2)
_Cgo_use(p3)
_Cgo_use(p4)
_Cgo_use(p5)
_Cgo_use(p6)
}
return
}
//go:linkname _cgo_runtime_gostring runtime.gostring
func _cgo_runtime_gostring(*_Ctype_char) string
func _Cfunc_GoString(p *_Ctype_char) string {
return _cgo_runtime_gostring(p)
}
//go:cgo_import_static _cgo_18049202ccd9_Cfunc_freeaddrinfo
//go:linkname __cgofn__cgo_18049202ccd9_Cfunc_freeaddrinfo _cgo_18049202ccd9_Cfunc_freeaddrinfo
var __cgofn__cgo_18049202ccd9_Cfunc_freeaddrinfo byte
var _cgo_18049202ccd9_Cfunc_freeaddrinfo = unsafe.Pointer(&__cgofn__cgo_18049202ccd9_Cfunc_freeaddrinfo)
//go:cgo_unsafe_args
func _Cfunc_freeaddrinfo(p0 *_Ctype_struct_addrinfo) (r1 _Ctype_void) {
_cgo_runtime_cgocall(_cgo_18049202ccd9_Cfunc_freeaddrinfo, uintptr(unsafe.Pointer(&p0)))
if _Cgo_always_false {
_Cgo_use(p0)
}
return
}
//go:cgo_import_static _cgo_18049202ccd9_Cfunc_gai_strerror
//go:linkname __cgofn__cgo_18049202ccd9_Cfunc_gai_strerror _cgo_18049202ccd9_Cfunc_gai_strerror
var __cgofn__cgo_18049202ccd9_Cfunc_gai_strerror byte
var _cgo_18049202ccd9_Cfunc_gai_strerror = unsafe.Pointer(&__cgofn__cgo_18049202ccd9_Cfunc_gai_strerror)
//go:cgo_unsafe_args
func _Cfunc_gai_strerror(p0 _Ctype_int) (r1 *_Ctype_char) {
_cgo_runtime_cgocall(_cgo_18049202ccd9_Cfunc_gai_strerror, uintptr(unsafe.Pointer(&p0)))
if _Cgo_always_false {
_Cgo_use(p0)
}
return
}
//go:cgo_import_static _cgo_18049202ccd9_Cfunc_getaddrinfo
//go:linkname __cgofn__cgo_18049202ccd9_Cfunc_getaddrinfo _cgo_18049202ccd9_Cfunc_getaddrinfo
var __cgofn__cgo_18049202ccd9_Cfunc_getaddrinfo byte
var _cgo_18049202ccd9_Cfunc_getaddrinfo = unsafe.Pointer(&__cgofn__cgo_18049202ccd9_Cfunc_getaddrinfo)
//go:cgo_unsafe_args
func _Cfunc_getaddrinfo(p0 *_Ctype_char, p1 *_Ctype_char, p2 *_Ctype_struct_addrinfo, p3 **_Ctype_struct_addrinfo) (r1 _Ctype_int) {
_cgo_runtime_cgocall(_cgo_18049202ccd9_Cfunc_getaddrinfo, uintptr(unsafe.Pointer(&p0)))
if _Cgo_always_false {
_Cgo_use(p0)
_Cgo_use(p1)
_Cgo_use(p2)
_Cgo_use(p3)
}
return
}
//go:cgo_import_static _cgo_18049202ccd9_Cfunc_getnameinfo
//go:linkname __cgofn__cgo_18049202ccd9_Cfunc_getnameinfo _cgo_18049202ccd9_Cfunc_getnameinfo
var __cgofn__cgo_18049202ccd9_Cfunc_getnameinfo byte
var _cgo_18049202ccd9_Cfunc_getnameinfo = unsafe.Pointer(&__cgofn__cgo_18049202ccd9_Cfunc_getnameinfo)
//go:cgo_unsafe_args
func _Cfunc_getnameinfo(p0 *_Ctype_struct_sockaddr, p1 _Ctype_socklen_t, p2 *_Ctype_char, p3 _Ctype_socklen_t, p4 *_Ctype_char, p5 _Ctype_socklen_t, p6 _Ctype_int) (r1 _Ctype_int) {
_cgo_runtime_cgocall(_cgo_18049202ccd9_Cfunc_getnameinfo, uintptr(unsafe.Pointer(&p0)))
if _Cgo_always_false {
_Cgo_use(p0)
_Cgo_use(p1)
_Cgo_use(p2)
_Cgo_use(p3)
_Cgo_use(p4)
_Cgo_use(p5)
_Cgo_use(p6)
}
return
}
|