/support/ |
A D | tst-support-namespace.c | 48 for (int i = 0; i < 3; ++i) in test_localhost_bind() local 51 (ai[i]->ai_family, ai[i]->ai_socktype, ai[i]->ai_protocol); in test_localhost_bind() 52 xbind (sockets[i], ai[i]->ai_addr, ai[i]->ai_addrlen); in test_localhost_bind() 57 for (int i = 0; i < 3; ++i) in test_localhost_bind() local 59 TEST_VERIFY (sendto (client, &i, sizeof (i), 0, in test_localhost_bind() 60 ai[i]->ai_addr, ai[i]->ai_addrlen) == sizeof (i)); in test_localhost_bind() 61 int j = i + 256; in test_localhost_bind() 63 ai[i]->ai_addr, ai[i]->ai_addrlen) == sizeof (j)); in test_localhost_bind() 70 for (int i = 0; i < 3; ++i) in test_localhost_bind() local 76 for (int i = 0; i < 3; ++i) in test_localhost_bind() local [all …]
|
A D | echo-container.c | 24 int i; in main() local 26 for (i = 1; i < argc; i++) in main() 28 if (i > 1) in main() 30 fputs (argv[i], stdout); in main()
|
A D | tst-support_blob_repeat.c | 49 for (size_t i = 0; i < gigabyte + 1; ++i) in do_test() local 50 if (p[i] != 'X') in do_test() 51 FAIL_EXIT1 ("invalid byte 0x%02x at %zu", p[i], i); in do_test() 56 for (size_t i = 0; i < gigabyte + 1; ++i) in do_test() local 57 if (i == 0) in do_test() 58 TEST_COMPARE (p[i], 'Y'); in do_test() 59 else if (i == 1U << 24) in do_test() 60 TEST_COMPARE (p[i], 'Z'); in do_test() 61 else if (p[i] != 'X') in do_test() 62 FAIL_EXIT1 ("invalid byte 0x%02x at %zu", p[i], i); in do_test() [all …]
|
A D | tst-support-open-dev-null-range.c | 96 for (int i = 0; i < nfds1; i++) in do_test() local 98 TEST_VERIFY (fcntl (lowfd + i, F_GETFL) > -1); in do_test() 99 check_path (lowfd + i); in do_test() 109 for (int i = 0; i < nfds2; i++) in do_test() local 111 TEST_VERIFY (fcntl (lowfd2 + i, F_GETFL) > -1); in do_test() 112 check_path (lowfd2 + i); in do_test() 129 for (int i = 0; i < nfds3; i++) in do_test() local 131 TEST_VERIFY (fcntl (lowfd3 + i, F_GETFL) > -1); in do_test() 132 check_path (lowfd3 + i); in do_test() 146 for (int i = 0; i < nfds4; i++) in do_test() local [all …]
|
A D | shell-container.c | 75 int i; in echo_func() local 77 for (i = 0; argv[i]; i++) in echo_func() 162 for (i = 0; argv[i]; i++) in kill_func() 207 for (i = 0; argv[i]; i++) in run_command_array() 210 for (j = i = 0; argv[i]; i++) in run_command_array() 215 ++i; in run_command_array() 221 ++i; in run_command_array() 227 ++i; in run_command_array() 233 ++i; in run_command_array() 241 for (i = 0; builtin_funcs[i].name != NULL; i++) in run_command_array() [all …]
|
A D | tst-test_compare_blob.c | 58 for (size_t i = 0; i <= sizeof (buffer_abc_1); ++i) in do_test() local 59 TEST_COMPARE_BLOB (buffer_abc_1, i, buffer_abc_2, i); in do_test()
|
A D | support-open-dev-null-range.c | 92 for (size_t i = 0; i < r->used; i++) in range_close() local 94 int minfd = r->ranges[i].lowfd; in range_close() 95 int maxfd = r->ranges[i].lowfd + r->ranges[i].len; in range_close() 114 int i = 1; in support_open_dev_null_range() local 115 for (; i < num; i++) in support_open_dev_null_range() 118 if (fd != lowfd + i) in support_open_dev_null_range() 127 if (i == num) in support_open_dev_null_range()
|
A D | tst-xreadlink.c | 41 for (int i = 0; i < size; ++i) in do_test() local 42 contents[i] = 'a' + (rand () % 26); in do_test()
|
A D | support_process_state.c | 72 for (size_t i = 0; i < array_length (process_states); ++i) in support_process_state_wait() local 73 if (state & process_states[i].s && cur_state == process_states[i].v) in support_process_state_wait()
|
A D | tst-timespec.c | 297 int i = 0; in do_test() local 301 for (i = 0; i < ntests; i++) in do_test() 303 printf("Test case %d\n", i); in do_test() 305 ns_cases[i].time_ns); in do_test() 311 for (i = 0; i < ntests; i++) in do_test() 313 printf("Test case %d\n", i); in do_test() 321 for (i = 0; i < ntests; i++) in do_test() 325 printf("Test case %d\n", i); in do_test() 327 (check_cases[i].expected, check_cases[i].observed, in do_test() 328 check_cases[i].lower_bound, in do_test() [all …]
|
A D | support_test_compare_blob.c | 46 for (unsigned long i = 0; i < length; ++i) in report_blob() local 47 printf (" %02X", blob[i]); in report_blob()
|
A D | support_format_hostent.c | 63 for (unsigned i = 0; h->h_addr_list[i] != NULL; ++i) in support_format_hostent() local 66 if (inet_ntop (h->h_addrtype, h->h_addr_list[i], in support_format_hostent()
|
A D | support_quote_blob_main.c | 29 for (size_t i = 0; i < length; ++i) in SUPPORT_QUOTE_BLOB() local 31 CHAR ch = p[i]; in SUPPORT_QUOTE_BLOB()
|
A D | support_test_compare_string_main.c | 49 for (size_t i = 0; i < length; ++i) in report_string() local 50 printf (" %02X", (unsigned int) blob[i]); in report_string()
|
A D | test-container.c | 659 int i; in check_for_unshare_hints() local 666 i = 99; /* Sentinel. */ in check_for_unshare_hints() 667 fscanf (f, "%d", &i); in check_for_unshare_hints() 668 if (i == 0) in check_for_unshare_hints() 681 i = 99; /* Sentinel. */ in check_for_unshare_hints() 682 fscanf (f, "%d", &i); in check_for_unshare_hints() 683 if (i == 1) in check_for_unshare_hints() 900 int i; in main() local 903 for (i = 1; i < nt; ++i) in main() 907 the_words[i] + 2, NULL); in main() [all …]
|
A D | support_test_main.c | 52 size_t i; in usage() local 63 for (i = 0; options[i].name; ++i) in usage() 67 indent = printf (" --%s", options[i].name); in usage() 68 if (options[i].has_arg == required_argument) in usage() 71 switch (options[i].val) in usage() 130 int i; in signal_handler() local 131 for (i = 0; i < 5; ++i) in signal_handler()
|
A D | support_capture_subprocess.c | 216 for (int i = 0; i < ret; ++i) in support_capture_subprogram_self_sgid() local 218 if (groups[i] != current) in support_capture_subprogram_self_sgid() 220 target = groups[i]; in support_capture_subprogram_self_sgid()
|
A D | support_subprocess.c | 130 for (int i = 0; i < 5; ++i) in support_process_kill() local
|
A D | tst-support_capture_subprocess.c | 173 for (size_t i = 0; i < length; ++i) in random_string() local 174 result[i] = 'a' + (rand () % 26); in random_string()
|
A D | support_format_dns_packet.c | 155 for (int i = 0; i < ancount; ++i) in support_format_dns_packet() local
|
A D | resolv_test.c | 1107 for (unsigned int i = 0; in set_search_path() local 1108 i < sizeof (config.search) / sizeof (config.search[0]); ++i) in set_search_path() 1110 if (config.search[i] == NULL) in set_search_path() 1113 size_t length = strlen (config.search[i]) + 1; in set_search_path() 1116 memcpy (current, config.search[i], length); in set_search_path() 1117 _res.dnsrch[i] = current; in set_search_path()
|