4 #include <netinet/in.h>
5 #include <arpa/nameser.h>
9 int main(int argc
, char **argv
)
12 struct __res_state state
;
14 r
= res_ninit(&state
);
25 #ifdef __UCLIBC_HAS_BSD_RES_CLOSE__
29 /* assume there is at least one resolver configured */
30 assert (state
._u
._ext
.nscount
> 0);
32 assert (state
._u
._ext
.nscount
== 0);
34 assert (state
.options
& RES_INIT
);
37 /* We wipe the whole thing */
38 assert ((state
.options
& RES_INIT
) == 0);
40 assert (state
._u
._ext
.nscount
== 0);