Home
last modified time | relevance | path

Searched refs:hostent (Results 1 – 9 of 9) sorted by relevance

/bionic/tests/
Dnetdb_test.cpp173 static void VerifyLocalhost(hostent *hent) { in VerifyLocalhost()
187 hostent* hp = gethostbyname("localhost"); in TEST()
192 hostent* hp = gethostbyname2("localhost", AF_INET); in TEST()
197 hostent hent; in TEST()
198 hostent *hp; in TEST()
208 hostent hent2; in TEST()
209 hostent *hp2; in TEST()
219 hostent hent; in TEST()
220 hostent *hp; in TEST()
230 hostent hent2; in TEST()
[all …]
/bionic/libc/include/
Dnetdb.h83 struct hostent { struct
214 struct hostent* _Nullable gethostbyaddr(const void* _Nonnull __addr, socklen_t __length, int __type…
215 …klen_t __length, int __type, struct hostent* _Nonnull __ret, char* _Nonnull __buf, size_t __buf_si…
216 struct hostent* _Nullable gethostbyname(const char* _Nonnull __name);
217 …const char* _Nonnull __name, struct hostent* _Nonnull __ret, char* _Nonnull __buf, size_t __buf_si…
218 struct hostent* _Nullable gethostbyname2(const char* _Nonnull __name, int __af);
219 …* _Nonnull __name, int __af, struct hostent* _Nonnull __ret, char* _Nonnull __buf, size_t __buf_si…
221 struct hostent* _Nullable gethostent(void);
/bionic/libc/dns/include/
Dresolv_netid.h84 struct hostent *android_gethostbyaddrfornet(const void *, socklen_t, int, unsigned, unsigned) __use…
85 struct hostent *android_gethostbynamefornet(const char *, int, unsigned, unsigned) __used_in_netd;
92 struct hostent *android_gethostbyaddrfornetcontext(const void *, socklen_t, int, const struct andro…
93 struct hostent *android_gethostbynamefornetcontext(const char *, int, const struct android_net_cont…
108 struct hostent *android_gethostbyaddrfornetcontext_proxy(const void *, socklen_t, int , const struc…
Dhostent.h44 struct hostent *netbsd_gethostent_r(FILE *, struct hostent *, char *, size_t, int *);
51 struct hostent *hp;
Dresolv_static.h29 struct hostent host;
/bionic/libc/dns/net/
Dgethnamaddr.c145 static struct hostent *getanswer(const querybuf *, int, const char *, int,
146 res_state, struct hostent *, char *, size_t, int *);
148 static void map_v4v6_hostent(struct hostent *, char **, char *);
153 struct hostent *ht_gethostbyname(char *);
154 struct hostent *ht_gethostbyaddr(const char *, int, int);
161 static struct hostent *gethostbyname_internal(const char *, int, res_state,
162 struct hostent *, char *, size_t, int *, const struct android_net_context *);
163 static struct hostent* android_gethostbyaddrfornetcontext_proxy_internal(const void*, socklen_t,
164 int, struct hostent *, char *, size_t, int *, const struct android_net_context *);
215 static struct hostent *
[all …]
Dsethostent.c62 static struct hostent *_hf_gethtbyname2(const char *, int, struct getnamaddr *);
101 struct hostent *hp; in _hf_gethtbyname()
138 struct hostent *
141 struct hostent *hp, hent; in _hf_gethtbyname2()
255 struct hostent *hp; in _hf_gethtbyaddr()
Dgetnameinfo.c179 struct hostent *hp; in getnameinfo_inet()
/bionic/tests/headers/posix/
Dnetdb_h.c34 TYPE(struct hostent); in netdb_h()
35 STRUCT_MEMBER(struct hostent, char*, h_name); in netdb_h()
36 STRUCT_MEMBER(struct hostent, char**, h_aliases); in netdb_h()
37 STRUCT_MEMBER(struct hostent, int, h_addrtype); in netdb_h()
38 STRUCT_MEMBER(struct hostent, int, h_length); in netdb_h()
39 STRUCT_MEMBER(struct hostent, char**, h_addr_list); in netdb_h()
108 FUNCTION(gethostent, struct hostent* (*f)(void)); in netdb_h()