Searched defs:dfd (Results 1 - 3 of 3) 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/cmds/installd/
H A Dutils.cpp314 int dfd; local
316 dfd = dirfd(d);
318 if (dfd < 0) return -1;
338 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC);
355 if (unlinkat(dfd, name, AT_REMOVEDIR) < 0) {
360 if (unlinkat(dfd, name, 0) < 0) {
405 int delete_dir_contents_fd(int dfd, const char *name) argument
410 fd = openat(dfd, name, O_RDONLY | O_DIRECTORY | O_NOFOLLOW | O_CLOEXEC);
674 int dfd; local
679 dfd
[all...]
H A Dcommands.cpp532 int dfd; local
541 dfd = dirfd(d);
546 if (fstatat(dfd, name, &s, AT_SYMLINK_NOFOLLOW) == 0) {
558 subfd = openat(dfd, name, O_RDONLY | O_DIRECTORY);
583 int dfd; local
587 dfd = dirfd(d);
588 *codesize += calculate_dir_size(dfd);

Completed in 80 milliseconds