Update.
[glibc.git] / include / netdb.h
blob26b8cf58500329ed4e30eae53e2213f1fdd02fe8
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);
10 extern int __gethostbyaddr_r (__const void *__restrict __addr,
11 socklen_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);
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);
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);
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);
34 extern int __getnetbyaddr_r (uint32_t __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);
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);
46 extern int __getservent_r (struct servent *__restrict __result_buf,
47 char *__restrict __buf, size_t __buflen,
48 struct servent **__restrict __result);
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);
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);
62 extern int __getprotoent_r (struct protoent *__restrict __result_buf,
63 char *__restrict __buf, size_t __buflen,
64 struct protoent **__restrict __result);
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);
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);
76 extern int __getnetgrent_r (char **__restrict __hostp,
77 char **__restrict __userp,
78 char **__restrict __domainp,
79 char *__restrict __buffer, size_t __buflen);
81 extern int ruserpass (const char *host, const char **aname,
82 const char **apass);
83 #endif /* !_NETDB_H */