Home
last modified time | relevance | path

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

/kernel/liteos_m/kal/libc/newlib/porting/include/
Dnetdb.h115 struct hostent { struct
139 struct hostent *gethostent(void); argument
162 struct hostent *gethostbyname(const char *name);
163 struct hostent *gethostbyaddr(const void *addr, socklen_t len, int type);
171 int gethostbyname_r(const char * name, struct hostent * ret, char * buf, size_t buflen, \
172 struct hostent ** result, int * h_errnop);
173 int gethostbyname2_r(const char * __restrict name, int af, struct hostent * __restrict result_buf, \
174 char * __restrict buf, size_t buflen, struct hostent ** __restrict result, \
176 struct hostent *gethostbyname2(const char *name, int af);
177 int gethostbyaddr_r(const void * __restrict addr, __socklen_t len, int type, struct hostent * __res…
[all …]
/kernel/liteos_m/components/net/lwip-2.1/porting/src/
Dnetdb_porting.c36 struct hostent *gethostbyname(const char *name) in gethostbyname()
44 int gethostbyname_r(const char *name, struct hostent *ret, char *buf, size_t buflen, struct hostent in gethostbyname_r()
Dapi_shell.c68 struct hostent *gethostnameinfo(const char *host, char *tmphstbuf, size_t hstbuflen);
252 struct hostent *gethostnameinfo(const char *host, char *tmphstbuf, size_t hstbuflen) in gethostnameinfo()
254 static struct hostent hostbuf; in gethostnameinfo()
255 struct hostent *hp = NULL; in gethostnameinfo()
280 struct hostent *pent = gethostnameinfo(hname, tmphstbuf, hstbuflen); in get_hostip()
/kernel/uniproton/src/net/lwip-2.1/src/
Dnetdb.c19 struct hostent *gethostbyname(const char *name) in gethostbyname()
27 int gethostbyname_r(const char *name, struct hostent *ret, char *buf, size_t buflen, in gethostbyname_r()
28 struct hostent **result, int *h_errnop) in gethostbyname_r()
/kernel/liteos_a/testsuites/unittest/net/netdb/full/
Dnet_netdb_test_019.cpp51 struct hostent *se1 = nullptr; in GetHostEntTest()
52 struct hostent *se2 = nullptr; in GetHostEntTest()
53 struct hostent *se3 = nullptr; in GetHostEntTest()
Dnet_netdb_test_006.cpp47 struct hostent *addr = gethostbyname("localhost"); in GetHostByNameTest()
Dnet_netdb_test_008.cpp48 struct hostent *addr = gethostbyname2("localhost", AF_INET); in GetHostByName2Test()
Dnet_netdb_test_004.cpp51 struct hostent *addr = gethostbyaddr(&ia, sizeof ia, AF_INET); in GetHostByAddrTest()
Dnet_netdb_test_005.cpp37 struct hostent addr, *result = NULL; in GetHostByAddrRTest()
Dnet_netdb_test_007.cpp48 struct hostent addr, *result = NULL; in GetHostByNameRTest()
Dnet_netdb_test_009.cpp47 struct hostent addr, *result = NULL; in GetHostByName2RTest()
/kernel/liteos_a/net/lwip-2.1/enhancement/src/
Dapi_shell.c141 struct hostent *gethostnameinfo(const char *host);
1573 struct hostent *gethostnameinfo(const char *host)
1575 static struct hostent hostbuf;
1576 struct hostent *hp = NULL;
1594 struct hostent *pent = gethostnameinfo(hname);