/inet/ |
A D | tst-checks.c | 9 int result = 0; in do_test() local 16 result = 1; in do_test() 25 result = 1; in do_test() 33 result = 1; in do_test() 39 result = 1; in do_test() 56 result = 1; in do_test() 88 result = 1; in do_test() 121 result = 1; in do_test() 131 result = 1; in do_test() 143 result = 1; in do_test() [all …]
|
A D | idna.c | 48 struct functions *result = malloc (sizeof (*result)); in functions_allocate() local 49 if (result == NULL) in functions_allocate() 57 free (result); in functions_allocate() 68 free (result); in functions_allocate() 72 result->handle = handle; in functions_allocate() 73 result->lookup_ul = ptr_lookup_ul; in functions_allocate() 76 PTR_MANGLE (result->lookup_ul); in functions_allocate() 80 return result; in functions_allocate() 108 *result = ptr; in gai_strdup() 147 *result = ptr; in __idna_to_dns_encoding() [all …]
|
A D | tst-ntoa.c | 28 int result = 0; in do_test() local 30 result |= test (INADDR_LOOPBACK, "127.0.0.1"); in do_test() 31 result |= test (INADDR_BROADCAST, "255.255.255.255"); in do_test() 32 result |= test (INADDR_ANY, "0.0.0.0"); in do_test() 33 result |= test (0xc0060746, "192.6.7.70"); in do_test() 35 return result; in do_test()
|
A D | tst-gethnm.c | 18 int result = 0; in do_test() local 39 result = 1; in do_test() 48 result = 1; in do_test() 54 result = 1; in do_test() 59 result |= ent->h_aliases[0] != NULL; in do_test() 63 return result; in do_test()
|
A D | tst-ether_aton.c | 9 int result, r; in do_test() local 22 result = (valp->ether_addr_octet[0] != 0x12 in do_test() 40 result |= strcmp ("0:c0:f0:46:5f:97 host.ether.com", buf) != 0; in do_test() 45 result |= 1; in do_test() 50 result |= r != -1; in do_test() 54 result |= r != -1; in do_test() 56 return result; in do_test()
|
A D | idna_name_classify.c | 37 size_t result = mbrtowc (&wc, p, end - p, &mbs); in __idna_name_classify() local 38 if (result == 0) in __idna_name_classify() 41 else if (result == (size_t) -2) in __idna_name_classify() 45 else if (result == (size_t) -1) in __idna_name_classify() 58 p += result; in __idna_name_classify()
|
A D | test_ifindex.c | 47 int result; in do_test() local 51 result = (ni != p->if_index || (strcmp (buf, p->if_name))); in do_test() 56 result = 0; in do_test() 57 printf ("%10s", result ? "fail" : "okay"); in do_test() 59 failures += result; in do_test()
|
A D | ether_aton.c | 24 static struct ether_addr result; in ether_aton() local 26 return ether_aton_r (asc, &result); in ether_aton()
|
A D | inet6_option.c | 59 *result = startp + 1; in get_opt_end() 69 *result = startp + startp[1] + 2; in get_opt_end() 212 return result; in option_alloc() 256 const uint8_t *result; in inet6_option_next() local 259 result = (const uint8_t *) (ip6e + 1); in inet6_option_next() 273 *tptrp = (uint8_t *) result; in inet6_option_next() 276 return get_opt_end (&result, result, endp); in inet6_option_next() 329 const uint8_t *result; in inet6_option_find() local 332 result = next; in inet6_option_find() 338 while (*result != type); in inet6_option_find() [all …]
|
A D | inet6_scopeid_pton.c | 33 uint32_t *result) in __inet6_scopeid_pton() argument 42 *result = number; in __inet6_scopeid_pton() 55 *result = number; in __inet6_scopeid_pton()
|
A D | htontest.c | 28 result = 1; \ 34 result = 1; \ 46 int result = 0; in main() local 68 return result; in main()
|
A D | deadline.c | 30 struct deadline_current_time result; in __deadline_current_time() local 31 if (__clock_gettime64 (CLOCK_MONOTONIC, &result.current) != 0) in __deadline_current_time() 32 __clock_gettime64 (CLOCK_REALTIME, &result.current); in __deadline_current_time() 33 assert (result.current.tv_sec >= 0); in __deadline_current_time() 34 return result; in __deadline_current_time()
|
A D | tst-inet6_scopeid_pton.c | 61 struct sockaddr_in6 *result) in call_gai() argument 85 TEST_VERIFY_EXIT (ai->ai_addrlen == sizeof (*result)); in call_gai() 88 memcpy (result, ai->ai_addr, sizeof (*result)); in call_gai() 124 uint32_t result = 1234; in expect_failure() local 125 if (__inet6_scopeid_pton (&addr, scope, &result) == 0) in expect_failure() 131 if (result != 1234) in expect_failure()
|
A D | getnetgrent_r.c | 169 int result; in setnetgrent() local 173 result = nscd_setnetgrent (group); in setnetgrent() 174 if (result < 0) in setnetgrent() 179 return result; in setnetgrent() 370 if (result >= 0) in weak_alias() 371 return result; in weak_alias() 383 int result = 0; in weak_alias() local 437 result = -1; in weak_alias() 456 result = 1; in weak_alias() 472 if (result != 0) in weak_alias() [all …]
|
A D | net-internal.h | 30 const char *scope, uint32_t *result); 39 int __idna_to_dns_encoding (const char *name, char **result); 41 int __idna_from_dns_encoding (const char *name, char **result);
|
A D | getnameinfo.c | 202 check_sprintf_result (int result, size_t destlen) in check_sprintf_result() argument 204 if (result < 0) in check_sprintf_result() 206 if ((size_t) result >= destlen) in check_sprintf_result() 367 int result = gni_host_inet_name in gni_host_inet() local 369 if (result != EAI_NONAME) in gni_host_inet() 370 return result; in gni_host_inet() 523 int result = gni_host (&tmpbuf, sa, addrlen, host, hostlen, flags); in getnameinfo() local 524 if (result != 0) in getnameinfo() 527 return result; in getnameinfo() 534 if (result != 0) in getnameinfo() [all …]
|
A D | gethstbyad_r.c | 37 *result = NULL; \
|