Lines Matching defs:root_fd
514 int root_fd = open(mount_path, O_RDONLY | O_DIRECTORY);
515 ASSERT_GE(root_fd, 0);
516 fd = openat(root_fd, file_name, O_CREAT | O_RDWR);
521 ASSERT_EQ(close(root_fd), 0);
542 int root_fd = open(mount_path, O_RDONLY | O_DIRECTORY);
543 ASSERT_GE(root_fd, 0);
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);
561 ASSERT_EQ(close(root_fd), 0);
591 int root_fd = open(mount_path, O_RDONLY | O_DIRECTORY);
592 ASSERT_GE(root_fd, 0);
593 fd = openat(root_fd, file_name, O_CREAT | O_RDWR);
597 fd = openat(root_fd, file_name, O_RDONLY);
600 ASSERT_EQ(close(root_fd), 0);