Update.
[glibc.git] / include / netdb.h
blobcefd492a228db762d9799f82150f982a15f0bffc
1 #ifndef _NETDB_H
2 #include <resolv/netdb.h>
4 /* Document internal interfaces. */
5 extern int __gethostent_r (struct hostent *__restrict __result_buf,
6 char *__restrict __buf, size_t __buflen,
7 struct hostent **__restrict __result,
8 int *__restrict __h_errnop) __THROW;
10 extern int __gethostbyaddr_r (__const char *__restrict __addr,
11 size_t __len, int __type,
12 struct hostent *__restrict __result_buf,
13 char *__restrict __buf, size_t __buflen,
14 struct hostent **__restrict __result,
15 int *__restrict __h_errnop) __THROW;
17 extern int __gethostbyname_r (__const char *__restrict __name,
18 struct hostent *__restrict __result_buf,
19 char *__restrict __buf, size_t __buflen,
20 struct hostent **__restrict __result,
21 int *__restrict __h_errnop) __THROW;
23 extern int __gethostbyname2_r (__const char *__restrict __name, int __af,
24 struct hostent *__restrict __result_buf,
25 char *__restrict __buf, size_t __buflen,
26 struct hostent **__restrict __result,
27 int *__restrict __h_errnop) __THROW;
29 extern int __getnetent_r (struct netent *__restrict __result_buf,
30 char *__restrict __buf, size_t __buflen,
31 struct netent **__restrict __result,
32 int *__restrict __h_errnop) __THROW;
34 extern int __getnetbyaddr_r (unsigned long int __net, int __type,
35 struct netent *__restrict __result_buf,
36 char *__restrict __buf, size_t __buflen,
37 struct netent **__restrict __result,
38 int *__restrict __h_errnop) __THROW;
40 extern int __getnetbyname_r (__const char *__restrict __name,
41 struct netent *__restrict __result_buf,
42 char *__restrict __buf, size_t __buflen,
43 struct netent **__restrict __result,
44 int *__restrict __h_errnop) __THROW;
46 extern int __getservent_r (struct servent *__restrict __result_buf,
47 char *__restrict __buf, size_t __buflen,
48 struct servent **__restrict __result) __THROW;
50 extern int __getservbyname_r (__const char *__restrict __name,
51 __const char *__restrict __proto,
52 struct servent *__restrict __result_buf,
53 char *__restrict __buf, size_t __buflen,
54 struct servent **__restrict __result) __THROW;
56 extern int __getservbyport_r (int __port,
57 __const char *__restrict __proto,
58 struct servent *__restrict __result_buf,
59 char *__restrict __buf, size_t __buflen,
60 struct servent **__restrict __result) __THROW;
62 extern int __getprotoent_r (struct protoent *__restrict __result_buf,
63 char *__restrict __buf, size_t __buflen,
64 struct protoent **__restrict __result) __THROW;
66 extern int __getprotobyname_r (__const char *__restrict __name,
67 struct protoent *__restrict __result_buf,
68 char *__restrict __buf, size_t __buflen,
69 struct protoent **__restrict __result) __THROW;
71 extern int __getprotobynumber_r (int __proto,
72 struct protoent *__restrict __res_buf,
73 char *__restrict __buf, size_t __buflen,
74 struct protoent **__restrict __result) __THROW;
76 extern int __getnetgrent_r (char **__restrict __hostp,
77 char **__restrict __userp,
78 char **__restrict __domainp,
79 char *__restrict __buffer, size_t __buflen) __THROW;
80 #endif /* !_NETDB_H */