Lines Matching refs:file_name
504 bool CreateTestFile(const char* ramdisk_path, const char* mount_path, const char* file_name) {
516 fd = openat(root_fd, file_name, O_CREAT | O_RDWR);
530 const char file_name[] = "some_file";
534 ASSERT_TRUE(CreateTestFile(ramdisk_path, mount_path, file_name));
544 fd = openat(root_fd, file_name, O_CREAT | O_RDWR);
550 fd = openat(root_fd, file_name, O_RDONLY);
557 ASSERT_LT(renameat(root_fd, file_name, root_fd, "new_file"), 0);
558 ASSERT_LT(unlinkat(root_fd, file_name, 0), 0);
574 const char file_name[] = "some_file";
579 ASSERT_TRUE(CreateTestFile(ramdisk_path, mount_path, file_name));
593 fd = openat(root_fd, file_name, O_CREAT | O_RDWR);
597 fd = openat(root_fd, file_name, O_RDONLY);