Searched refs:symlink_path (Results 1 – 2 of 2) sorted by relevance
177 FilePath SetUpSymlinkIfNeeded(const FilePath& symlink_path, bool new_log) { in SetUpSymlinkIfNeeded() argument178 DCHECK(!symlink_path.empty()); in SetUpSymlinkIfNeeded()185 bool symlink_exists = file_util::PathExists(symlink_path); in SetUpSymlinkIfNeeded()187 target_path = GenerateTimestampedName(symlink_path, base::Time::Now()); in SetUpSymlinkIfNeeded()190 if (::unlink(symlink_path.value().c_str()) == -1) { in SetUpSymlinkIfNeeded()192 PLOG(WARNING) << "Unable to unlink " << symlink_path.value(); in SetUpSymlinkIfNeeded()194 if (!file_util::CreateSymbolicLink(target_path, symlink_path)) { in SetUpSymlinkIfNeeded()195 PLOG(ERROR) << "Unable to create symlink " << symlink_path.value() in SetUpSymlinkIfNeeded()199 if (!file_util::ReadSymbolicLink(symlink_path, &target_path)) in SetUpSymlinkIfNeeded()200 PLOG(ERROR) << "Unable to read symlink " << symlink_path.value(); in SetUpSymlinkIfNeeded()
377 const FilePath& symlink_path) { in CreateSymbolicLink() argument378 DCHECK(!symlink_path.empty()); in CreateSymbolicLink()381 symlink_path.value().c_str()) != -1; in CreateSymbolicLink()384 bool ReadSymbolicLink(const FilePath& symlink_path, in ReadSymbolicLink() argument386 DCHECK(!symlink_path.empty()); in ReadSymbolicLink()389 ssize_t count = ::readlink(symlink_path.value().c_str(), buf, arraysize(buf)); in ReadSymbolicLink()