Searched refs:dfd (Results 1 - 5 of 5) sorted by relevance

/frameworks/native/libs/diskusage/
H A Ddirsize.c30 int64_t calculate_dir_size(int dfd) argument
37 d = fdopendir(dfd);
39 close(dfd);
56 if (fstatat(dfd, name, &s, AT_SYMLINK_NOFOLLOW) == 0) {
59 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY);
64 if (fstatat(dfd, name, &s, AT_SYMLINK_NOFOLLOW) == 0) {
/frameworks/native/include/diskusage/
H A Ddirsize.h26 int64_t calculate_dir_size(int dfd);
/frameworks/native/cmds/installd/
H A Dutils.cpp422 int dfd; local
424 dfd = dirfd(d);
426 if (dfd < 0) return -1;
446 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC);
463 if (unlinkat(dfd, name, AT_REMOVEDIR) < 0) {
468 if (unlinkat(dfd, name, 0) < 0) {
513 int delete_dir_contents_fd(int dfd, const char *name) argument
518 fd = openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC);
H A Dutils.h113 int delete_dir_contents_fd(int dfd, const char *name);
H A DInstalldNativeService.cpp1224 int dfd; local
1235 dfd = dirfd(d);
1240 if (fstatat(dfd, name, &s, AT_SYMLINK_NOFOLLOW) == 0) {
1275 int dfd; local
1286 dfd = dirfd(d);
1290 if (fstatat(dfd, name, &s, AT_SYMLINK_NOFOLLOW) != 0) {

Completed in 650 milliseconds