Lines Matching refs:path_entry

4228 #define for_each_path(path_list, path_entry, i)               \  argument
4229 for (i = 0, path_entry = *path_list[i]; path_list[i]; \
4230 path_entry = *path_list[++i])
4360 const char *path_entry; in TEST_F_FORK() local
4372 for_each_path(lower_base_files, path_entry, i) { in TEST_F_FORK()
4373 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4374 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
4376 for_each_path(lower_base_directories, path_entry, i) { in TEST_F_FORK()
4378 test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4380 for_each_path(lower_sub_files, path_entry, i) { in TEST_F_FORK()
4381 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4382 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
4385 for_each_path(upper_base_files, path_entry, i) { in TEST_F_FORK()
4386 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4387 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
4389 for_each_path(upper_base_directories, path_entry, i) { in TEST_F_FORK()
4391 test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4393 for_each_path(upper_sub_files, path_entry, i) { in TEST_F_FORK()
4394 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4395 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
4403 for_each_path(merge_base_files, path_entry, i) { in TEST_F_FORK()
4404 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
4406 for_each_path(merge_base_directories, path_entry, i) { in TEST_F_FORK()
4407 ASSERT_EQ(0, test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4409 for_each_path(merge_sub_files, path_entry, i) { in TEST_F_FORK()
4410 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
4420 for_each_path(merge_base_files, path_entry, i) { in TEST_F_FORK()
4421 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
4423 for_each_path(merge_base_directories, path_entry, i) { in TEST_F_FORK()
4424 ASSERT_EQ(0, test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4426 for_each_path(merge_sub_files, path_entry, i) { in TEST_F_FORK()
4427 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
4437 for_each_path(lower_base_files, path_entry, i) { in TEST_F_FORK()
4438 ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4441 for_each_path(upper_base_files, path_entry, i) { in TEST_F_FORK()
4442 ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4445 for_each_path(merge_base_files, path_entry, i) { in TEST_F_FORK()
4446 ASSERT_EQ(EACCES, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
4448 for_each_path(merge_base_directories, path_entry, i) { in TEST_F_FORK()
4449 ASSERT_EQ(0, test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4451 for_each_path(merge_sub_files, path_entry, i) { in TEST_F_FORK()
4452 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
4462 for_each_path(lower_sub_files, path_entry, i) { in TEST_F_FORK()
4463 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4464 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
4467 for_each_path(upper_sub_files, path_entry, i) { in TEST_F_FORK()
4468 ASSERT_EQ(0, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4469 ASSERT_EQ(EACCES, test_open(path_entry, O_WRONLY)); in TEST_F_FORK()
4472 for_each_path(merge_base_files, path_entry, i) { in TEST_F_FORK()
4473 ASSERT_EQ(EACCES, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
4475 for_each_path(merge_base_directories, path_entry, i) { in TEST_F_FORK()
4477 test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4479 for_each_path(merge_sub_files, path_entry, i) { in TEST_F_FORK()
4480 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
4490 for_each_path(lower_sub_files, path_entry, i) { in TEST_F_FORK()
4491 ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4494 for_each_path(upper_sub_files, path_entry, i) { in TEST_F_FORK()
4495 ASSERT_EQ(EACCES, test_open(path_entry, O_RDONLY)); in TEST_F_FORK()
4498 for_each_path(merge_base_files, path_entry, i) { in TEST_F_FORK()
4499 ASSERT_EQ(EACCES, test_open(path_entry, O_RDWR)); in TEST_F_FORK()
4501 for_each_path(merge_base_directories, path_entry, i) { in TEST_F_FORK()
4503 test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
4505 for_each_path(merge_sub_files, path_entry, i) { in TEST_F_FORK()
4506 ASSERT_EQ(0, test_open(path_entry, O_RDWR)); in TEST_F_FORK()