Home
last modified time | relevance | path

Searched refs:linkpath (Results 1 – 3 of 3) sorted by relevance

/system/vold/
DUtils.h61 status_t Symlink(const std::string& target, const std::string& linkpath);
64 status_t Unlink(const std::string& linkpath);
DUtils.cpp209 status_t Symlink(const std::string& target, const std::string& linkpath) { in Symlink() argument
210 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() argument
221 if (TEMP_FAILURE_RETRY(unlink(linkpath.c_str())) < 0 && errno != EINVAL && errno != ENOENT) { in Unlink()
222 PLOG(ERROR) << "Failed to unlink " << linkpath; in Unlink()
/system/core/init/
Dbuiltins.cpp786 static int MakeSymlink(const std::string& target, const std::string& linkpath) { in MakeSymlink() argument
789 if (SelabelLookupFileContext(linkpath, 0, &secontext) && !secontext.empty()) { in MakeSymlink()
793 int rc = symlink(target.c_str(), linkpath.c_str()); in MakeSymlink()