Update.
[glibc.git] / include / netdb.h
blob3311e45046cee0403718caf7c3e1c301408d57a3
1 #ifndef _NETDB_H
2 #include <resolv/netdb.h>
4 /* Document internal interfaces. */
5 extern int __gethostent_r __P ((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 __P ((__const char *__restrict __addr,
11 int __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 __P ((__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 __P ((__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 __P ((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 __P ((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));
40 extern int __getnetbyname_r __P ((__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 __P ((struct servent *__restrict __result_buf,
47 char *__restrict __buf, size_t __buflen,
48 struct servent **__restrict __result));
50 extern int __getservbyname_r __P ((__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 __P ((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 __P ((struct protoent *__restrict __result_buf,
63 char *__restrict __buf, size_t __buflen,
64 struct protoent **__restrict __result));
66 extern int __getprotobyname_r __P ((__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 __P ((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 __P ((char **__restrict __hostp,
77 char **__restrict __userp,
78 char **__restrict __domainp,
79 char *__restrict __buffer, size_t __buflen));
80 #endif /* !_NETDB_H */