/bionic/tests/ |
D | spawn_test.cpp | 37 posix_spawnattr_t sa; in TEST() local 38 ASSERT_EQ(0, posix_spawnattr_init(&sa)); in TEST() 39 ASSERT_EQ(0, posix_spawnattr_destroy(&sa)); in TEST() 43 posix_spawnattr_t sa; in TEST() local 44 ASSERT_EQ(0, posix_spawnattr_init(&sa)); in TEST() 45 ASSERT_EQ(EINVAL, posix_spawnattr_setflags(&sa, ~0)); in TEST() 46 ASSERT_EQ(0, posix_spawnattr_destroy(&sa)); in TEST() 50 posix_spawnattr_t sa; in TEST() local 51 ASSERT_EQ(0, posix_spawnattr_init(&sa)); in TEST() 53 ASSERT_EQ(0, posix_spawnattr_setflags(&sa, POSIX_SPAWN_RESETIDS)); in TEST() [all …]
|
D | signal_test.cpp | 295 SigActionT sa = {}; in TestSigAction() local 296 sigaddset_fn(&sa.sa_mask, sig); in TestSigAction() 297 sa.sa_flags = SA_ONSTACK; in TestSigAction() 298 sa.sa_handler = no_op_signal_handler; in TestSigAction() 299 ASSERT_EQ(0, sigaction_fn(sig, &sa, nullptr)); in TestSigAction() 302 sa = {}; in TestSigAction() 303 ASSERT_EQ(0, sigaction_fn(sig, nullptr, &sa)); in TestSigAction() 304 ASSERT_TRUE(sa.sa_handler == no_op_signal_handler); in TestSigAction() 305 ASSERT_TRUE((void*) sa.sa_sigaction == (void*) sa.sa_handler); in TestSigAction() 306 ASSERT_EQ(static_cast<unsigned>(SA_ONSTACK), sa.sa_flags & ~sa_restorer); in TestSigAction() [all …]
|
D | netdb_test.cpp | 117 sockaddr* sa = reinterpret_cast<sockaddr*>(&ss); in TEST() local 125 ASSERT_EQ(0, getnameinfo(sa, too_much, tmp, sizeof(tmp), nullptr, 0, NI_NUMERICHOST)); in TEST() 127 ASSERT_EQ(0, getnameinfo(sa, just_right, tmp, sizeof(tmp), nullptr, 0, NI_NUMERICHOST)); in TEST() 129 ASSERT_EQ(EAI_FAMILY, getnameinfo(sa, too_little, tmp, sizeof(tmp), nullptr, 0, NI_NUMERICHOST)); in TEST() 136 ASSERT_EQ(0, getnameinfo(sa, too_much, tmp, sizeof(tmp), nullptr, 0, NI_NUMERICHOST)); in TEST() 138 ASSERT_EQ(0, getnameinfo(sa, just_right, tmp, sizeof(tmp), nullptr, 0, NI_NUMERICHOST)); in TEST() 140 ASSERT_EQ(EAI_FAMILY, getnameinfo(sa, too_little, tmp, sizeof(tmp), nullptr, 0, NI_NUMERICHOST)); in TEST()
|
/bionic/libc/dns/net/ |
D | getnameinfo.c | 113 int getnameinfo(const struct sockaddr* sa, socklen_t salen, char* host, size_t hostlen, in getnameinfo() argument 116 return android_getnameinfofornet(sa, salen, host, hostlen, serv, servlen, flags, in getnameinfo() 120 int android_getnameinfofornet(const struct sockaddr* sa, socklen_t salen, char* host, in android_getnameinfofornet() argument 124 switch (sa->sa_family) { in android_getnameinfofornet() 127 return getnameinfo_inet(sa, salen, host, hostlen, in android_getnameinfofornet() 130 return getnameinfo_local(sa, salen, host, hostlen, in android_getnameinfofornet() 143 getnameinfo_local(const struct sockaddr *sa, socklen_t salen, in getnameinfo_local() argument 148 (const struct sockaddr_un *)(const void *)sa; in getnameinfo_local() 169 getnameinfo_inet(const struct sockaddr* sa, socklen_t salen, in getnameinfo_inet() argument 188 if (sa == NULL) in getnameinfo_inet() [all …]
|
/bionic/libc/bionic/ |
D | abort.cpp | 49 struct sigaction64 sa = { .sa_handler = SIG_DFL, .sa_flags = SA_RESTART }; in abort() local 50 sigaction64(SIGABRT, &sa, nullptr); in abort()
|
D | signal.cpp | 150 struct sigaction64 sa = { .sa_handler = SIG_IGN }; in sigignore() local 151 return sigaction64(sig, &sa, nullptr); in sigignore() 185 struct sigaction64 sa = { .sa_handler = handler, .sa_flags = flags }; in _signal() local 186 return (sigaction64(sig, &sa, &sa) == -1) ? SIG_ERR : sa.sa_handler; in _signal()
|
/bionic/libc/dns/resolv/ |
D | res_private.h | 20 res_ourserver_p(const res_state statp, const struct sockaddr *sa);
|
D | res_send.c | 156 struct sockaddr sa; member 194 if ( !bind( s, &u.sa, slen ) ) in random_bind() 205 return bind( s, &u.sa, slen ); in random_bind() 223 res_ourserver_p(const res_state statp, const struct sockaddr *sa) { in res_ourserver_p() argument 228 switch (sa->sa_family) { in res_ourserver_p() 230 inp = (const struct sockaddr_in *)(const void *)sa; in res_ourserver_p() 243 in6p = (const struct sockaddr_in6 *)(const void *)sa; in res_ourserver_p() 683 get_salen(sa) in get_salen() argument 684 const struct sockaddr *sa; in get_salen() 689 if (sa->sa_len) [all …]
|
/bionic/libc/upstream-netbsd/lib/libc/isc/ |
D | eventlib_p.h | 94 struct sockaddr sa; member 102 struct sockaddr sa; member
|