Searched refs:linkpath (Results 1 – 3 of 3) sorted by relevance
61 status_t Symlink(const std::string& target, const std::string& linkpath);64 status_t Unlink(const std::string& linkpath);
209 status_t Symlink(const std::string& target, const std::string& linkpath) { in Symlink() argument210 if (Unlink(linkpath) < 0) { in Symlink()213 if (TEMP_FAILURE_RETRY(symlink(target.c_str(), linkpath.c_str())) < 0) { in Symlink()214 PLOG(ERROR) << "Failed to create symlink " << linkpath << " to " << target; in Symlink()220 status_t Unlink(const std::string& linkpath) { in Unlink() argument221 if (TEMP_FAILURE_RETRY(unlink(linkpath.c_str())) < 0 && errno != EINVAL && errno != ENOENT) { in Unlink()222 PLOG(ERROR) << "Failed to unlink " << linkpath; in Unlink()
786 static int MakeSymlink(const std::string& target, const std::string& linkpath) { in MakeSymlink() argument789 if (SelabelLookupFileContext(linkpath, 0, &secontext) && !secontext.empty()) { in MakeSymlink()793 int rc = symlink(target.c_str(), linkpath.c_str()); in MakeSymlink()