| 3 |
- |
1 |
|
|
|
2 |
/* /usr/include/netdb.h */
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
int* __h_errno_location();
|
|
|
6 |
void herror(char *str);
|
|
|
7 |
char* hstrerror(int err_num);
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
struct hostent {
|
|
|
11 |
char* h_name;
|
|
|
12 |
void* h_aliases;
|
|
|
13 |
int h_addrtype;
|
|
|
14 |
int h_length;
|
|
|
15 |
void* h_addr_list;
|
|
|
16 |
};
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
void sethostent(int stay_open);
|
|
|
20 |
void endhostent();
|
|
|
21 |
struct hostent* gethostent();
|
|
|
22 |
struct hostent* gethostbyaddr(void *addr, socklen_t len, int type);
|
|
|
23 |
struct hostent* gethostbyname(char *name);
|
|
|
24 |
struct hostent* gethostbyname2(char *name, int af);
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
int gethostent_r(struct hostent *result_buf, char *buf, size_t buflen, void *result, int *h_errnop);
|
|
|
28 |
int gethostbyaddr_r(void *addr, socklen_t len, int type, struct hostent *result_buf, char *buf, size_t buflen, void *result, int *h_errnop);
|
|
|
29 |
int gethostbyname_r(char *name, struct hostent *result_buf, char *buf, size_t buflen, void *result, int *h_errnop);
|
|
|
30 |
int gethostbyname2_r(char *name, int af, struct hostent *result_buf, char *buf, size_t buflen, void *result, int *h_errnop);
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
void setnetent(int stay_open);
|
|
|
34 |
void endnetent();
|
|
|
35 |
void* getnetent();
|
|
|
36 |
void* getnetbyaddr(uint32_t net, int type);
|
|
|
37 |
void* getnetbyname(char *name);
|
|
|
38 |
int getnetent_r(void *result_buf, char *buf, size_t buflen,void *result, int *h_errnop);
|
|
|
39 |
int getnetbyaddr_r(uint32_t net, int type, void *result_buf, char *buf, size_t buflen, void *result, int *h_errnop);
|
|
|
40 |
int getnetbyname_r(char *name, void *result_buf, char *buf, size_t buflen, void *result, int *h_errnop);
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
struct servent {
|
|
|
44 |
char *s_name;
|
|
|
45 |
void *s_aliases;
|
|
|
46 |
int s_port;
|
|
|
47 |
char *s_proto;
|
|
|
48 |
};
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
void setservent(int stay_open);
|
|
|
52 |
void endservent();
|
|
|
53 |
struct servent* getservent();
|
|
|
54 |
struct servent* getservbyname(char *name, char *proto);
|
|
|
55 |
struct servent* getservbyport(int port, char *proto);
|
|
|
56 |
int getservent_r(struct servent *result_buf, char *buf, size_t buflen, void *result);
|
|
|
57 |
int getservbyname_r(char *name, char *proto, struct servent *result_buf, char *buf, size_t buflen, void *result);
|
|
|
58 |
int getservbyport_r(int port, char *proto, struct servent *result_buf, char *buf, size_t buflen, void *result);
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
struct protoent {
|
|
|
62 |
char *p_name;
|
|
|
63 |
char *p_aliases;
|
|
|
64 |
int p_proto;
|
|
|
65 |
};
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
void setprotoent(int stay_open);
|
|
|
69 |
void endprotoent();
|
|
|
70 |
struct protoent* getprotoent();
|
|
|
71 |
struct protoent* getprotobyname(char *name);
|
|
|
72 |
struct protoent* getprotobynumber(int proto);
|
|
|
73 |
int getprotoent_r(struct protoent* result_buf, char *buf, size_t buflen, void *result);
|
|
|
74 |
int getprotobyname_r(char *name, struct protoent *result_buf, char *buf, size_t buflen, void *result);
|
|
|
75 |
int getprotobynumber_r(int proto, struct protoent* result_buf, char *buf, size_t buflen, void *result);
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
int setnetgrent(char *netgroup);
|
|
|
79 |
void endnetgrent();
|
|
|
80 |
int getnetgrent(void *hostp, void *userp, void *domainp);
|
|
|
81 |
int innetgr(char *netgroup, char *host, char *user, char *domain);
|
|
|
82 |
int getnetgrent_r(void *hostp, void *userp, void *domainp, char *buffer, size_t buflen);
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
int rcmd(void *ahost, u_short rport, char *locuser, char *remuser, char *cmd, int *fd2p);
|
|
|
86 |
int rcmd_af(void *ahost, u_short rport, char *locuser, char *remuser, char *cmd, int *fd2p, u_int af);
|
|
|
87 |
|
|
|
88 |
|
|
|
89 |
int rexec(void *ahost, int rport, char *name, char *pass, char *cmd, int *fd2p);
|
|
|
90 |
int rexec_af(void *ahost, int rport, char *name, char *pass, char *cmd, int *fd2p, u_int af);
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
int ruserok(char *rhost, int suser, char *remuser, char *locuser);
|
|
|
94 |
int ruserok_af(char *rhost, int suser, char *remuser, char *locuser, u_int af);
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
int rresvport(int *alport);
|
|
|
98 |
int rresvport_af(int *alport, u_int af);
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
int getaddrinfo(char *name, char *service, void *req, void *pai);
|
|
|
102 |
void freeaddrinfo(void *ai);
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
char* gai_strerror(int ecode);
|
|
|
106 |
int getnameinfo(void *sa, socklen_t salen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, u_int flags);
|
|
|
107 |
int getaddrinfo_a(int mode, void *list, int ent, void *sig);
|
|
|
108 |
int gai_suspend(void *list, int ent, void *timeout);
|
|
|
109 |
int gai_error(void *req);
|
|
|
110 |
int gai_cancel(void *gaicbp);
|