Lines Matching refs:std

45 status_t CreateDeviceNode(const std::string& path, dev_t dev);
46 status_t DestroyDeviceNode(const std::string& path);
49 status_t PrepareDir(const std::string& path, mode_t mode, uid_t uid, gid_t gid);
52 status_t ForceUnmount(const std::string& path);
55 status_t KillProcessesUsingPath(const std::string& path);
58 status_t BindMount(const std::string& source, const std::string& target);
61 status_t Symlink(const std::string& target, const std::string& linkpath);
64 status_t Unlink(const std::string& linkpath);
67 status_t CreateDir(const std::string& dir, mode_t mode);
69 bool FindValue(const std::string& raw, const std::string& key, std::string* value);
72 status_t ReadMetadata(const std::string& path, std::string* fsType, std::string* fsUuid,
73 std::string* fsLabel);
76 status_t ReadMetadataUntrusted(const std::string& path, std::string* fsType, std::string* fsUuid,
77 std::string* fsLabel);
80 status_t ForkExecvp(const std::vector<std::string>& args, std::vector<std::string>* output = nullpt…
83 pid_t ForkExecvpAsync(const std::vector<std::string>& args);
87 status_t GetBlockDevSize(const std::string& path, uint64_t* size);
89 status_t GetBlockDev512Sectors(const std::string& path, uint64_t* nr_sec);
91 status_t ReadRandomBytes(size_t bytes, std::string& out);
93 status_t GenerateRandomUuid(std::string& out);
96 status_t HexToStr(const std::string& hex, std::string& str);
98 status_t StrToHex(const std::string& str, std::string& hex);
102 status_t NormalizeHex(const std::string& in, std::string& out);
104 uint64_t GetFreeBytes(const std::string& path);
105 uint64_t GetTreeBytes(const std::string& path);
107 bool IsFilesystemSupported(const std::string& fsType);
110 status_t WipeBlockDevice(const std::string& path);
112 std::string BuildKeyPath(const std::string& partGuid);
114 std::string BuildDataSystemLegacyPath(userid_t userid);
115 std::string BuildDataSystemCePath(userid_t userid);
116 std::string BuildDataSystemDePath(userid_t userid);
117 std::string BuildDataMiscLegacyPath(userid_t userid);
118 std::string BuildDataMiscCePath(userid_t userid);
119 std::string BuildDataMiscDePath(userid_t userid);
120 std::string BuildDataProfilesDePath(userid_t userid);
121 std::string BuildDataVendorCePath(userid_t userid);
122 std::string BuildDataVendorDePath(userid_t userid);
124 std::string BuildDataPath(const std::string& volumeUuid);
125 std::string BuildDataMediaCePath(const std::string& volumeUuid, userid_t userid);
126 std::string BuildDataUserCePath(const std::string& volumeUuid, userid_t userid);
127 std::string BuildDataUserDePath(const std::string& volumeUuid, userid_t userid);
129 dev_t GetDevice(const std::string& path);
131 status_t RestoreconRecursive(const std::string& path);
134 bool Readlinkat(int dirfd, const std::string& path, std::string* result);
139 status_t UnmountTreeWithPrefix(const std::string& prefix);
140 status_t UnmountTree(const std::string& mountPoint);
142 status_t DeleteDirContentsAndDir(const std::string& pathname);
143 status_t DeleteDirContents(const std::string& pathname);
145 status_t WaitForFile(const char* filename, std::chrono::nanoseconds timeout);
147 bool FsyncDirectory(const std::string& dirname);
149 bool writeStringToFile(const std::string& payload, const std::string& filename);