Searched defs:dfd (Results 1 - 3 of 3) sorted by relevance

/frameworks/native/libs/diskusage/
H A Ddirsize.c38 int64_t calculate_dir_size(int dfd) argument
45 d = fdopendir(dfd);
47 close(dfd);
53 if (fstatat(dfd, name, &s, AT_SYMLINK_NOFOLLOW) == 0) {
67 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY);
/frameworks/native/cmds/installd/
H A Dcommands.c429 int dfd; local
466 dfd = dirfd(d);
467 codesize += calculate_dir_size(dfd);
488 dfd = dirfd(d);
506 if (fstatat(dfd, name, &s, AT_SYMLINK_NOFOLLOW) == 0) {
509 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY);
524 if (fstatat(dfd, name, &s, AT_SYMLINK_NOFOLLOW) == 0) {
528 if (fstatat(dfd, name, &s, AT_SYMLINK_NOFOLLOW) == 0) {
878 int dfd, subfd; local
895 dfd
[all...]
H A Dutils.c215 int dfd; local
217 dfd = dirfd(d);
219 if (dfd < 0) return -1;
237 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY);
254 if (unlinkat(dfd, name, AT_REMOVEDIR) < 0) {
259 if (unlinkat(dfd, name, 0) < 0) {
292 int delete_dir_contents_fd(int dfd, const char *name) argument
297 fd = openat(dfd, name, O_RDONLY | O_DIRECTORY);
513 int dfd; local
518 dfd
[all...]

Completed in 71 milliseconds