]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Declare __gethostbyaddr2_r and __gethostbyname3_r.
authorUlrich Drepper <drepper@redhat.com>
Tue, 30 Oct 2007 00:43:16 +0000 (00:43 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 30 Oct 2007 00:43:16 +0000 (00:43 +0000)
include/netdb.h

index 0bf84c21c0e09983cbcbb062291a99ef2358530f..9bbe31b438da6e339e4ae5a393f6c922c2d0143b 100644 (file)
@@ -62,6 +62,14 @@ extern int __old_gethostbyaddr_r (__const void *__restrict __addr,
                                  struct hostent **__restrict __result,
                                  int *__restrict __h_errnop);
 
+extern int __gethostbyaddr2_r (__const void *__restrict __addr,
+                              socklen_t __len, int __type,
+                              struct hostent *__restrict __result_buf,
+                              char *__restrict __buf, size_t __buflen,
+                              struct hostent **__restrict __result,
+                              int *__restrict __h_errnop,
+                              int32_t *ttlp);
+
 extern int __gethostbyname_r (__const char *__restrict __name,
                              struct hostent *__restrict __result_buf,
                              char *__restrict __buf, size_t __buflen,
@@ -84,6 +92,13 @@ extern int __old_gethostbyname2_r (__const char *__restrict __name, int __af,
                                   struct hostent **__restrict __result,
                                   int *__restrict __h_errnop);
 
+extern int __gethostbyname3_r (__const char *__restrict __name, int __af,
+                              struct hostent *__restrict __result_buf,
+                              char *__restrict __buf, size_t __buflen,
+                              struct hostent **__restrict __result,
+                              int *__restrict __h_errnop,
+                              int32_t *ttlp, char **canonp);
+
 extern int __getnetent_r (struct netent *__restrict __result_buf,
                          char *__restrict __buf, size_t __buflen,
                          struct netent **__restrict __result,