Searched refs:linkpath (Results 1 – 3 of 3) sorted by relevance
/system/vold/ |
D | Utils.cpp | 563 status_t Symlink(const std::string& target, const std::string& linkpath) { in Symlink() argument 564 if (Unlink(linkpath) < 0) { in Symlink() 567 if (TEMP_FAILURE_RETRY(symlink(target.c_str(), linkpath.c_str())) < 0) { in Symlink() 568 PLOG(ERROR) << "Failed to create symlink " << linkpath << " to " << target; in Symlink() 574 status_t Unlink(const std::string& linkpath) { in Unlink() argument 575 if (TEMP_FAILURE_RETRY(unlink(linkpath.c_str())) < 0 && errno != EINVAL && errno != ENOENT) { in Unlink() 576 PLOG(ERROR) << "Failed to unlink " << linkpath; in Unlink() 1525 std::string linkpath(StringPrintf("/mnt/user/%d/self", user_id)); in MountUserFuse() local 1526 result = PrepareDir(linkpath, 0755, AID_ROOT, AID_ROOT); in MountUserFuse() 1528 PLOG(ERROR) << "Failed to prepare directory " << linkpath; in MountUserFuse() [all …]
|
D | Utils.h | 86 status_t Symlink(const std::string& target, const std::string& linkpath); 89 status_t Unlink(const std::string& linkpath);
|
/system/core/init/ |
D | builtins.cpp | 786 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()
|