Created
April 15, 2019 19:20
-
-
Save grantseltzer/38c76591c532f3bc40e1367c19502167 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//go:nosplit | |
//go:cgo_unsafe_args | |
func res_search(dname *byte, class int32, rtype int32, answer *byte, anslen int32) (int32, int32) { | |
args := struct { | |
dname *byte | |
class, rtype int32 | |
answer *byte | |
anslen, retSize, retErr int32 | |
}{dname, class, rtype, answer, anslen, 0, 0} | |
libcCall(unsafe.Pointer(funcPC(res_search_trampoline)), unsafe.Pointer(&args)) | |
return args.retSize, args.retErr | |
} | |
func res_search_trampoline() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment