Home
last modified time | relevance | path

Searched refs:fts_path (Results 1 – 11 of 11) sorted by relevance

/aosp12/frameworks/native/cmds/installd/
H A DCacheItem.cpp48 mName = p->fts_path; in CacheItem()
87 | (getxattr(p->fts_path, kXattrCacheTombstone, nullptr, 0) >= 0); in purge()
92 if (truncate(p->fts_path, 0) != 0) { in purge()
93 PLOG(WARNING) << "Failed to truncate " << p->fts_path; in purge()
97 if (unlink(p->fts_path) != 0) { in purge()
98 PLOG(WARNING) << "Failed to unlink " << p->fts_path; in purge()
106 if (unlink(p->fts_path) != 0) { in purge()
107 PLOG(WARNING) << "Failed to unlink " << p->fts_path; in purge()
112 if (rmdir(p->fts_path) != 0) { in purge()
113 PLOG(WARNING) << "Failed to rmdir " << p->fts_path; in purge()
H A DCacheTracker.cpp124 item->group |= (getxattr(p->fts_path, kXattrCacheGroup, nullptr, 0) >= 0); in loadItemsFrom()
125 item->tombstone |= (getxattr(p->fts_path, kXattrCacheTombstone, nullptr, 0) >= 0); in loadItemsFrom()
H A Dutils.cpp1042 if (chmod(p->fts_path, target_mode) != 0) { in prepare_app_cache_dir()
1043 PLOG(WARNING) << "Failed to chmod " << p->fts_path; in prepare_app_cache_dir()
1047 if (chown(p->fts_path, -1, gid) != 0) { in prepare_app_cache_dir()
1048 PLOG(WARNING) << "Failed to chown " << p->fts_path; in prepare_app_cache_dir()
1053 if (lchown(p->fts_path, -1, gid) != 0) { in prepare_app_cache_dir()
1054 PLOG(WARNING) << "Failed to chown " << p->fts_path; in prepare_app_cache_dir()
H A DCrateManager.cpp100 const char* path = cratedFolder->fts_path; in createCrate()
H A DInstalldNativeService.cpp816 if (getxattr(p->fts_path, kXattrInodeCache, &raw, sizeof(raw)) == sizeof(raw)) { in fixupAppData()
848 LOG(DEBUG) << "Ignoring " << p->fts_path << " with expected GID " << expected; in fixupAppData()
856 LOG(INFO) << "Fixing " << p->fts_path << " with unexpected GID " << actual in fixupAppData()
863 if (chmod(p->fts_path, 02771) != 0) { in fixupAppData()
864 PLOG(WARNING) << "Failed to chmod " << p->fts_path; in fixupAppData()
869 if (chown(p->fts_path, -1, expected) != 0) { in fixupAppData()
870 PLOG(WARNING) << "Failed to chown " << p->fts_path; in fixupAppData()
875 if (lchown(p->fts_path, -1, expected) != 0) { in fixupAppData()
876 PLOG(WARNING) << "Failed to chown " << p->fts_path; in fixupAppData()
1400 search->second->addDataPath(p->fts_path); in freeCache()
[all …]
/aosp12/system/core/init/
H A Dfscrypt_init_extensions.cpp69 if (dir == cur->fts_path) { in delete_dir_contents()
76 if (rmdir(cur->fts_path) == -1) { in delete_dir_contents()
77 PLOG(ERROR) << "rmdir " << cur->fts_path; in delete_dir_contents()
81 PLOG(ERROR) << "FTS unexpected type " << cur->fts_info << " at " << cur->fts_path; in delete_dir_contents()
82 if (rmdir(cur->fts_path) != -1) break; in delete_dir_contents()
88 if (unlink(cur->fts_path) == -1) { in delete_dir_contents()
89 PLOG(ERROR) << "unlink " << cur->fts_path; in delete_dir_contents()
/aosp12/bionic/libc/bionic/
H A Dfts.c177 mem2: free(sp->fts_path); in __fts_open()
203 p->fts_accpath = p->fts_path = sp->fts_path; in fts_load()
234 free(sp->fts_path); in fts_close()
640 cp = sp->fts_path + len; in fts_build()
663 oldaddr = sp->fts_path; in fts_build()
927 p->fts_path = sp->fts_path; in fts_alloc()
965 free(sp->fts_path); in fts_palloc()
966 sp->fts_path = NULL; in fts_palloc()
973 free(sp->fts_path); in fts_palloc()
974 sp->fts_path = NULL; in fts_palloc()
[all …]
H A Dftw.cpp66 if (postorder || access(cur->fts_path, R_OK) == -1) continue; in do_nftw()
103 error = nftw_fn(cur->fts_path, cur->fts_statp, fn_flag, &ftw); in do_nftw()
105 error = ftw_fn(cur->fts_path, cur->fts_statp, fn_flag); in do_nftw()
/aosp12/bionic/tools/versioner/src/
H A DUtils.cpp66 if (ignored_directories.count(ent->fts_path) != 0) { in collectHeaders()
74 std::string path = ent->fts_path; in collectHeaders()
H A DPreprocessor.cpp440 llvm::StringRef path = ent->fts_path; in preprocessHeaders()
442 err(1, "path '%s' doesn't start with source dir '%s'", ent->fts_path, src_dir.c_str()); in preprocessHeaders()
/aosp12/bionic/libc/include/
H A Dfts.h46 char *fts_path; /* path for this descent */ member
74 char *fts_path; /* root path */ member