Searched refs:linkpath (Results 1 – 3 of 3) sorted by relevance
/system/vold/ |
D | Utils.cpp | 569 status_t Symlink(const std::string& target, const std::string& linkpath) { in Symlink() argument 570 if (Unlink(linkpath) < 0) { in Symlink() 573 if (TEMP_FAILURE_RETRY(symlink(target.c_str(), linkpath.c_str())) < 0) { in Symlink() 574 PLOG(ERROR) << "Failed to create symlink " << linkpath << " to " << target; in Symlink() 580 status_t Unlink(const std::string& linkpath) { in Unlink() argument 581 if (TEMP_FAILURE_RETRY(unlink(linkpath.c_str())) < 0 && errno != EINVAL && errno != ENOENT) { in Unlink() 582 PLOG(ERROR) << "Failed to unlink " << linkpath; in Unlink() 1596 std::string linkpath(StringPrintf("/mnt/user/%d/self", user_id)); in MountUserFuse() local 1597 result = PrepareDir(linkpath, 0755, AID_ROOT, AID_ROOT); in MountUserFuse() 1599 PLOG(ERROR) << "Failed to prepare directory " << linkpath; in MountUserFuse() [all …]
|
D | Utils.h | 91 status_t Symlink(const std::string& target, const std::string& linkpath); 94 status_t Unlink(const std::string& linkpath);
|
/system/core/init/ |
D | builtins.cpp | 783 static int MakeSymlink(const std::string& target, const std::string& linkpath) { in MakeSymlink() argument 786 if (SelabelLookupFileContext(linkpath, 0, &secontext) && !secontext.empty()) { in MakeSymlink() 790 int rc = symlink(target.c_str(), linkpath.c_str()); in MakeSymlink()
|