Lines Matching full:c_str
108 ssize_t r = readlink(path.c_str(), buf.data(), buf.size());
116 char *path = strdup(dir_path.Append("xattr_test_XXXXXX").value().c_str());
146 return utils::WriteFile(path.c_str(), data.data(), data.size());
150 return utils::WriteFile(path.c_str(), data.data(), data.size());
167 HANDLE_EINTR(open(out_lo_dev_name->c_str(), O_RDWR | O_LARGEFILE));
170 TEST_AND_RETURN_FALSE_ERRNO(mknod(out_lo_dev_name->c_str(),
174 HANDLE_EINTR(open(out_lo_dev_name->c_str(), O_RDWR | O_LARGEFILE));
182 PLOG(ERROR) << "Loop device " << out_lo_dev_name->c_str()
188 int data_fd = open(filename.c_str(),
200 base::FilePath(filename).BaseName().value().c_str(),
210 HANDLE_EINTR(open(lo_dev_name.c_str(), O_RDWR | O_LARGEFILE));
253 path.c_str(), size)));
255 block_size, path.c_str())));
266 path.c_str())));
268 path.c_str())));
269 EXPECT_EQ(0, System(StringPrintf("mount -o loop %s %s", path.c_str(),
270 mount_path.c_str())));
271 EXPECT_EQ(0, System(StringPrintf("echo hi > %s/hi", mount_path.c_str())));
273 mount_path.c_str())));
274 EXPECT_EQ(0, System(StringPrintf("mkdir %s/some_dir", mount_path.c_str())));
276 mount_path.c_str())));
278 mount_path.c_str())));
280 mount_path.c_str())));
282 mount_path.c_str())));
283 EXPECT_EQ(0, System(StringPrintf("mknod %s/cdev c 2 3", mount_path.c_str())));
285 mount_path.c_str())));
287 mount_path.c_str(), mount_path.c_str())));
289 mount_path.c_str())));
291 mount_path.c_str(), mount_path.c_str())));
293 mount_path.c_str())));
294 EXPECT_TRUE(utils::UnmountFilesystem(mount_path.c_str()));