Home
last modified time | relevance | path

Searched refs:s_name (Results 1 – 6 of 6) sorted by relevance

/bionic/libc/dns/net/
Dgetservent.c75 rs->servent.s_name = 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()
129 if (strcmp(s->s_name, name) == 0 && (proto == NULL || strcmp(s->s_proto, proto) == 0)) { in getservbyname()
Dgetnameinfo.c225 if (strlen(sp->s_name) + 1 > (size_t)servlen) in getnameinfo_inet()
227 strlcpy(serv, sp->s_name, servlen); in getnameinfo_inet()
/bionic/tests/
Dnetdb_test.cpp340 ASSERT_STREQ("smtp", s->s_name); in TEST()
347 ASSERT_STREQ("smtp", s->s_name); in TEST()
358 ASSERT_STREQ("echo", s->s_name); in TEST()
367 ASSERT_STREQ("smtp", s->s_name); in TEST()
374 ASSERT_STREQ("smtp", s->s_name); in TEST()
385 ASSERT_STREQ("echo", s->s_name); in TEST()
451 std::string first_service(getservent()->s_name); in TEST()
453 ASSERT_EQ(first_service, std::string(getservent()->s_name)); in TEST()
458 std::string first_service(getservent()->s_name); in TEST()
460 ASSERT_EQ(first_service, std::string(getservent()->s_name)); in TEST()
/bionic/libc/kernel/uapi/linux/
Dcoff.h73 char s_name[8]; member
/bionic/libc/include/
Dnetdb.h98 char *s_name; /* official service name */ member
/bionic/tests/headers/posix/
Dnetdb_h.c56 STRUCT_MEMBER(struct servent, char*, s_name); in netdb_h()