Source file
src/net/cgo_unix_cgo_resn.go
1
2
3
4
5
6
7
8
9 package net
10
11
23 import "C"
24
25 type _C_struct___res_state = C.struct___res_state
26
27 func _C_res_ninit(state *_C_struct___res_state) error {
28 _, err := C.res_ninit(state)
29 return err
30 }
31
32 func _C_res_nclose(state *_C_struct___res_state) {
33 C.res_nclose(state)
34 }
35
36 func _C_res_nsearch(state *_C_struct___res_state, dname *_C_char, class, typ int, ans *_C_uchar, anslen int) int {
37 x := C.res_nsearch(state, dname, C.int(class), C.int(typ), ans, C.int(anslen))
38 return int(x)
39 }
40
View as plain text