Home
last modified time | relevance | path

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

/frameworks/native/libs/diskusage/
Ddirsize.c30 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/cmds/installd/
Dutils.cpp319 int dfd; in _delete_dir_contents() local
321 dfd = dirfd(d); in _delete_dir_contents()
323 if (dfd < 0) return -1; in _delete_dir_contents()
343 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC); in _delete_dir_contents()
360 if (unlinkat(dfd, name, AT_REMOVEDIR) < 0) { in _delete_dir_contents()
365 if (unlinkat(dfd, name, 0) < 0) { in _delete_dir_contents()
410 int delete_dir_contents_fd(int dfd, const char *name) in delete_dir_contents_fd() argument
415 fd = openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC); in delete_dir_contents_fd()
679 int dfd; in _add_cache_files() local
684 dfd = dirfd(dir); in _add_cache_files()
[all …]
Dutils.h116 int delete_dir_contents_fd(int dfd, const char *name);
Dcommands.cpp635 int dfd; in add_app_data_size() local
644 dfd = dirfd(d); in add_app_data_size()
649 if (fstatat(dfd, name, &s, AT_SYMLINK_NOFOLLOW) == 0) { in add_app_data_size()
661 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY); in add_app_data_size()
686 int dfd; in get_app_size() local
690 dfd = dirfd(d); in get_app_size()
691 *codesize += calculate_dir_size(dfd); in get_app_size()
/frameworks/native/include/diskusage/
Ddirsize.h26 int64_t calculate_dir_size(int dfd);