Lines Matching refs:open

46     fbl::unique_fd fd(open(path, O_RDONLY | O_DIRECTORY));
72 int fd = open(ramdisk_path, O_RDWR);
104 int fd = open(ramdisk_path, O_RDWR);
127 int fd = open(ramdisk_path, O_RDWR);
130 int mountfd = open(mount_path, O_RDONLY | O_DIRECTORY | O_ADMIN);
131 ASSERT_GT(mountfd, 0, "Couldn't open mount point");
156 int fd = open(ramdisk_path, O_RDWR);
159 int mountfd = open(mount_path, O_RDONLY | O_DIRECTORY | O_ADMIN);
160 ASSERT_GT(mountfd, 0, "Couldn't open mount point");
172 fd = open(ramdisk_path, O_RDWR);
176 mountfd = open(mount_path, O_CREAT | O_RDWR);
187 fd = open(ramdisk_path, O_RDWR);
191 mountfd = open(mount_path, O_RDONLY | O_DIRECTORY);
192 ASSERT_GT(mountfd, 0, "Couldn't open mount point");
199 fd = open(ramdisk_path, O_RDWR);
201 mountfd = open(mount_path, O_RDONLY | O_DIRECTORY | O_ADMIN);
202 ASSERT_GT(mountfd, 0, "Couldn't open mount point");
206 fd = open(ramdisk_path, O_RDWR);
219 fbl::unique_fd badfd(open(mount_path, O_RDONLY | O_DIRECTORY));
229 badfd.reset(open(mount_path, O_RDONLY | O_DIRECTORY));
263 int mountfd = open(parent_path, O_RDONLY | O_DIRECTORY | O_ADMIN);
264 ASSERT_GT(mountfd, 0, "Couldn't open mount point");
265 int ramdiskfd = open(ramdisk_path, O_RDWR);
293 int fd = open(ramdisk_path, O_RDWR);
300 fbl::unique_fd weak_root_fd(open(mount_path, O_RDONLY | O_DIRECTORY));
317 // Try opening a new directory with O_ADMIN. It shouldn't open.
342 int fd = open(ramdisk_path, O_RDWR);
356 int mount_fd = open(mount_path, O_RDONLY | O_NOREMOTE | O_ADMIN);
358 fd = open(ramdisk_path2, O_RDWR);
366 mount_fd = open(mount_path, O_RDONLY | O_ADMIN);
368 fd = open(ramdisk_path2, O_RDWR);
394 int fd = open(ramdisk_path, O_RDWR);
415 int fd = open(ramdisk_path, O_RDWR);
416 ASSERT_GE(fd, 0, "Could not open ramdisk device");
439 fbl::unique_fd mountfd(open(mount_path, O_RDONLY | O_ADMIN));
451 int fd = open(ramdisk_path, O_RDWR);
457 mountfd.reset(open(mount_path, O_RDONLY | O_ADMIN));
467 mountfd.reset(open(mount_path, O_RDONLY));
478 mountfd.reset(open(mount_path, O_RDONLY | O_ADMIN));
510 int fd = open(ramdisk_path, O_RDWR);
514 int root_fd = open(mount_path, O_RDONLY | O_DIRECTORY);
536 int fd = open(ramdisk_path, O_RDWR);
542 int root_fd = open(mount_path, O_RDONLY | O_DIRECTORY);
546 // We can no longer open the file as writable
549 // We CAN open it as readable though
581 int fd = open(ramdisk_path, O_RDWR);
591 int root_fd = open(mount_path, O_RDONLY | O_DIRECTORY);
596 // We can open it as read-only.
618 int fd = open(ramdisk_path, O_RDWR);
681 fbl::unique_fd partition_fd(open(fixture->partition_path().c_str(), O_RDONLY));