Lines Matching refs:p
33 CacheItem::CacheItem(FTSENT* p) { in CacheItem() argument
34 level = p->fts_level; in CacheItem()
35 directory = S_ISDIR(p->fts_statp->st_mode); in CacheItem()
36 size = p->fts_statp->st_blocks * 512; in CacheItem()
37 modified = p->fts_statp->st_mtime; in CacheItem()
39 mParent = static_cast<CacheItem*>(p->fts_parent->fts_pointer); in CacheItem()
43 mName = p->fts_name; in CacheItem()
48 mName = p->fts_path; in CacheItem()
74 FTSENT *p; in purge() local
80 while ((p = fts_read(fts)) != nullptr) { in purge()
81 switch (p->fts_info) { in purge()
83 if (p->fts_level == 0) { in purge()
84 p->fts_number = tombstone; in purge()
86 p->fts_number = p->fts_parent->fts_number in purge()
87 | (getxattr(p->fts_path, kXattrCacheTombstone, nullptr, 0) >= 0); in purge()
91 if (p->fts_parent->fts_number) { 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()