Searched refs:rand_index (Results 1 - 2 of 2) sorted by relevance
/third_party/ltp/testcases/kernel/syscalls/bind/ |
H A D | bind05.c | 126 unsigned int rand_index; in test_bind() local 150 size = recvfrom(sock, &rand_index, sizeof(rand_index), 0, in test_bind() 153 if (size != sizeof(rand_index)) { in test_bind() 158 rand_index = rand() % ARRAY_SIZE(testcase_list); in test_bind() 159 SAFE_SENDTO(1, sock, &rand_index, sizeof(rand_index), 0, in test_bind() 164 exp_data = testcase_list[rand_index].description; in test_bind()
|
H A D | bind04.c | 112 unsigned int rand_index; in test_bind() local 141 rand_index = rand() % ARRAY_SIZE(testcase_list); in test_bind() 142 SAFE_WRITE(SAFE_WRITE_ALL, sock, &rand_index, sizeof(rand_index)); in test_bind() 146 exp_data = testcase_list[rand_index].description; in test_bind()
|
Completed in 2 milliseconds