Searched refs:dfd (Results 1 – 5 of 5) sorted by relevance
/frameworks/native/libs/diskusage/ |
D | dirsize.c | 30 int64_t calculate_dir_size(int dfd) in calculate_dir_size() argument 37 d = fdopendir(dfd); in calculate_dir_size() 39 close(dfd); in calculate_dir_size() 56 if (fstatat(dfd, name, &s, AT_SYMLINK_NOFOLLOW) == 0) { in calculate_dir_size() 59 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY); in calculate_dir_size() 64 if (fstatat(dfd, name, &s, AT_SYMLINK_NOFOLLOW) == 0) { in calculate_dir_size()
|
/frameworks/native/include/diskusage/ |
D | dirsize.h | 26 int64_t calculate_dir_size(int dfd);
|
/frameworks/native/cmds/installd/ |
D | utils.cpp | 483 int dfd; in _delete_dir_contents() local 485 dfd = dirfd(d); in _delete_dir_contents() 487 if (dfd < 0) return -1; in _delete_dir_contents() 507 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC); in _delete_dir_contents() 524 if (unlinkat(dfd, name, AT_REMOVEDIR) < 0) { in _delete_dir_contents() 529 if (unlinkat(dfd, name, 0) < 0) { in _delete_dir_contents() 598 int delete_dir_contents_fd(int dfd, const char *name) in delete_dir_contents_fd() argument 603 fd = openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC); in delete_dir_contents_fd()
|
D | utils.h | 125 int delete_dir_contents_fd(int dfd, const char *name);
|
D | InstalldNativeService.cpp | 1498 int dfd; in collectManualStats() local 1509 dfd = dirfd(d); in collectManualStats() 1514 if (fstatat(dfd, name, &s, AT_SYMLINK_NOFOLLOW) == 0) { in collectManualStats() 1549 int dfd; in collectManualStatsForUser() local 1560 dfd = dirfd(d); in collectManualStatsForUser() 1564 if (fstatat(dfd, name, &s, AT_SYMLINK_NOFOLLOW) != 0) { in collectManualStatsForUser()
|