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