Searched refs:servent (Results 1 – 8 of 8) sorted by relevance
/bionic/libc/dns/net/ |
D | getservent.c | 38 struct servent* getservent_r(struct res_static* rs) { in getservent_r() 68 p2 = realloc( (char*)rs->servent.s_aliases, total ); in getservent_r() 73 rs->servent.s_aliases = (char**) p2; in getservent_r() 75 rs->servent.s_name = p2; in getservent_r() 77 rs->servent.s_proto = p2; in getservent_r() 80 memcpy( rs->servent.s_name, p+1, namelen ); in getservent_r() 81 rs->servent.s_name[namelen] = 0; in getservent_r() 88 rs->servent.s_port = htons(port); in getservent_r() 89 rs->servent.s_proto = p[2] == 't' ? "tcp" : "udp"; in getservent_r() 94 rs->servent.s_aliases[nn] = p2; in getservent_r() [all …]
|
D | getnameinfo.c | 178 struct servent *sp; in getnameinfo_inet()
|
D | getaddrinfo.c | 1145 struct servent *sp; in get_port()
|
/bionic/tests/headers/posix/ |
D | netdb_h.c | 55 TYPE(struct servent); in netdb_h() 56 STRUCT_MEMBER(struct servent, char*, s_name); in netdb_h() 57 STRUCT_MEMBER(struct servent, char**, s_aliases); in netdb_h() 58 STRUCT_MEMBER(struct servent, int, s_port); in netdb_h() 59 STRUCT_MEMBER(struct servent, char*, s_proto); in netdb_h() 120 FUNCTION(getservbyname, struct servent* (*f)(const char*, const char*)); in netdb_h() 121 FUNCTION(getservbyport, struct servent* (*f)(int, const char*)); in netdb_h() 122 FUNCTION(getservent, struct servent* (*f)(void)); in netdb_h()
|
/bionic/libc/dns/include/ |
D | resolv_static.h | 28 struct servent servent; member
|
/bionic/libc/include/ |
D | netdb.h | 99 struct servent { struct 240 struct servent* _Nullable getservbyname(const char* _Nonnull __name, const char* _Nullable __proto); 241 struct servent* _Nullable getservbyport(int __port_in_network_order, const char* _Nullable __proto); 242 struct servent* _Nullable getservent(void);
|
/bionic/libc/dns/resolv/ |
D | res_state.c | 81 free(rs->servent.s_aliases); in _res_static_done()
|
/bionic/tests/ |
D | netdb_test.cpp | 346 servent* s = getservbyname("smtp", nullptr); in TEST() 373 servent* s = getservbyport(htons(25), nullptr); in TEST()
|