Home
last modified time | relevance | path

Searched refs:i (Results 1 – 21 of 21) sorted by relevance

/support/
A Dtst-support-namespace.c48 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 Decho-container.c24 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 Dtst-support_blob_repeat.c49 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 Dtst-support-open-dev-null-range.c96 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 Dshell-container.c75 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 Dtst-test_compare_blob.c58 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 Dsupport-open-dev-null-range.c92 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 Dtst-xreadlink.c41 for (int i = 0; i < size; ++i) in do_test() local
42 contents[i] = 'a' + (rand () % 26); in do_test()
A Dsupport_process_state.c72 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 Dtst-timespec.c297 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 Dsupport_test_compare_blob.c46 for (unsigned long i = 0; i < length; ++i) in report_blob() local
47 printf (" %02X", blob[i]); in report_blob()
A Dsupport_format_hostent.c63 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 Dsupport_quote_blob_main.c29 for (size_t i = 0; i < length; ++i) in SUPPORT_QUOTE_BLOB() local
31 CHAR ch = p[i]; in SUPPORT_QUOTE_BLOB()
A Dsupport_test_compare_string_main.c49 for (size_t i = 0; i < length; ++i) in report_string() local
50 printf (" %02X", (unsigned int) blob[i]); in report_string()
A Dtest-container.c659 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 Dsupport_test_main.c52 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 Dsupport_capture_subprocess.c216 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 Dsupport_subprocess.c130 for (int i = 0; i < 5; ++i) in support_process_kill() local
A Dtst-support_capture_subprocess.c173 for (size_t i = 0; i < length; ++i) in random_string() local
174 result[i] = 'a' + (rand () % 26); in random_string()
A Dsupport_format_dns_packet.c155 for (int i = 0; i < ancount; ++i) in support_format_dns_packet() local
A Dresolv_test.c1107 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()

Completed in 37 milliseconds