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 Dutils.c227 int dfd; local
229 dfd = dirfd(d);
231 if (dfd < 0) return -1;
251 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY);
268 if (unlinkat(dfd, name, AT_REMOVEDIR) < 0) {
273 if (unlinkat(dfd, name, 0) < 0) {
306 int delete_dir_contents_fd(int dfd, const char *name) argument
311 fd = openat(dfd, name, O_RDONLY | O_DIRECTORY);
625 int dfd; local
630 dfd
[all...]
H A Dcommands.c475 int dfd; local
512 dfd = dirfd(d);
513 codesize += calculate_dir_size(dfd);
534 dfd = dirfd(d);
552 if (fstatat(dfd, name, &s, AT_SYMLINK_NOFOLLOW) == 0) {
555 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY);
570 if (fstatat(dfd, name, &s, AT_SYMLINK_NOFOLLOW) == 0) {
574 if (fstatat(dfd, name, &s, AT_SYMLINK_NOFOLLOW) == 0) {
1213 int dfd, subfd; local
1230 dfd
[all...]

Completed in 86 milliseconds