Lines Matching refs:name
96 UTILS_LOGD("Get proc name failed, ret is: %{public}d!", ret);
177 string name = ptr->d_name;
178 if (name == "." || name == "..") {
187 int subFd = openat(currentFd, name.c_str(), O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC);
189 UTILS_LOGD("Failed in subFd openat: %{public}s ", name.c_str());
199 currentPath = IncludeTrailingPathDelimiter(currentPath) + name;
201 files.push_back(IncludeTrailingPathDelimiter(currentPath) + name);
231 char name[256]; // the same max char length with d_name in struct dirent
262 const char *name = ptr->d_name;
264 if (strcmp(name, ".") == 0 || strcmp(name, "..") == 0) {
269 int subFd = openat(currentFd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC);
271 UTILS_LOGE("Failed in subFd openat: %{public}s ", name);
284 strRet = strcpy_s(node.name, sizeof(node.name), name);
286 UTILS_LOGE("Failed to exec strcpy_s, name= %{public}s, strRet= %{public}d", name, strRet);
291 if (faccessat(currentFd, name, F_OK, AT_SYMLINK_NOFOLLOW) == 0) {
292 if (unlinkat(currentFd, name, 0) < 0) {
293 UTILS_LOGE("Couldn't unlinkat subFile %{public}s: %{public}s", name, strerror(errno));
298 UTILS_LOGE("Access to file: %{public}s is failed", name);
312 if (unlinkat(node.currentFd, node.name, AT_REMOVEDIR) < 0) {
313 UTILS_LOGE("Couldn't unlinkat subDir %{public}s: %{public}s", node.name, strerror(errno));