Home
last modified time | relevance | path

Searched refs:servent (Results 1 – 8 of 8) sorted by relevance

/bionic/libc/dns/net/
Dgetservent.c38 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 …]
Dgetnameinfo.c178 struct servent *sp; in getnameinfo_inet()
Dgetaddrinfo.c1145 struct servent *sp; in get_port()
/bionic/tests/headers/posix/
Dnetdb_h.c55 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/
Dresolv_static.h28 struct servent servent; member
/bionic/libc/include/
Dnetdb.h99 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/
Dres_state.c81 free(rs->servent.s_aliases); in _res_static_done()
/bionic/tests/
Dnetdb_test.cpp346 servent* s = getservbyname("smtp", nullptr); in TEST()
373 servent* s = getservbyport(htons(25), nullptr); in TEST()