Explorar o código

Added res_init and res_query

David McCullough %!s(int64=23) %!d(string=hai) anos
pai
achega
a7c7b0948e
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      include/resolv.h

+ 4 - 0
include/resolv.h

@@ -90,4 +90,8 @@ extern void close_nameservers(void);
 extern struct hostent * gethostbyname(const char * name);
 extern struct hostent * gethostbyaddr(const char * addr, int len, int type);
 
+extern int res_init(void);
+extern int res_query(const char *dname, int class, int type,
+	unsigned char *answer, int anslen);
+
 #endif /*_RESOLV_H_*/