/bionic/libc/bionic/ |
D | scandir.cpp | 45 dirent** release() { in release() 46 dirent** result = names_; in release() 52 bool Add(dirent* entry) { in Add() 55 dirent** new_names = in Add() 56 reinterpret_cast<dirent**>(realloc(names_, new_capacity * sizeof(dirent*))); in Add() 64 dirent* copy = CopyDirent(entry); in Add() 72 void Sort(int (*comparator)(const dirent**, const dirent**)) { in Sort() argument 75 qsort(names_, size_, sizeof(dirent*), in Sort() 81 dirent** names_; 85 static dirent* CopyDirent(dirent* original) { in CopyDirent() [all …]
|
D | dirent.cpp | 45 extern "C" int __getdents64(unsigned int, dirent*, unsigned int); 56 dirent* next_; 58 dirent buff_[15]; 118 static dirent* __readdir_locked(DIR* d) { in __readdir_locked() 123 dirent* entry = d->next_; in __readdir_locked() 124 d->next_ = reinterpret_cast<dirent*>(reinterpret_cast<char*>(entry) + entry->d_reclen); in __readdir_locked() 132 dirent* readdir(DIR* d) { in readdir() 139 int readdir_r(DIR* d, dirent* entry, dirent** result) { in readdir_r() 149 dirent* next = __readdir_locked(d); in readdir_r() 201 int alphasort(const dirent** a, const dirent** b) { in alphasort()
|
D | sysinfo.cpp | 55 dirent* entry; in get_nprocs_conf()
|
D | ndk_cruft.cpp | 265 int __getdents64(unsigned int, dirent*, unsigned int); 266 int getdents(unsigned int fd, dirent* dirp, unsigned int count) { in getdents()
|
D | fts.c | 539 struct dirent *dp; in fts_build()
|
/bionic/tests/headers/posix/ |
D | dirent_h.c | 36 TYPE(struct dirent); in dirent_h() 38 STRUCT_MEMBER(struct dirent, uint64_t, d_ino); in dirent_h() 40 STRUCT_MEMBER(struct dirent, ino_t, d_ino); in dirent_h() 42 STRUCT_MEMBER_ARRAY(struct dirent, char/*[]*/, d_name); in dirent_h() 46 FUNCTION(alphasort, int (*f)(const struct dirent**, const struct dirent**)); in dirent_h() 51 FUNCTION(readdir, struct dirent* (*f)(DIR*)); in dirent_h() 52 FUNCTION(readdir_r, int (*f)(DIR*, struct dirent*, struct dirent**)); in dirent_h() 54 FUNCTION(scandir, int (*f)(const char*, struct dirent***, in dirent_h() 55 int (*)(const struct dirent*), in dirent_h() 56 int (*)(const struct dirent**, const struct dirent**))); in dirent_h()
|
/bionic/libc/include/ |
D | dirent.h | 63 struct dirent { __DIRENT64_BODY }; struct 81 struct dirent* readdir(DIR* __dir); 83 int readdir_r(DIR* __dir, struct dirent* __entry, struct dirent** __buffer) __attribute__((__deprec… 90 int alphasort(const struct dirent** __lhs, const struct dirent** __rhs); 93 …_path, struct dirent*** __name_list, int (*__filter)(const struct dirent*), int (*__comparator)(co… 97 …_path, struct dirent*** __name_list, int (*__filter)(const struct dirent*), int (*__comparator)(co…
|
D | glob.h | 42 struct dirent; 61 struct dirent* (*gl_readdir)(void*);
|
/bionic/tests/ |
D | dirent_test.cpp | 51 TEST(dirent, scandir_scandir64) { in TEST() argument 53 dirent** entries; in TEST() 84 TEST(dirent, scandirat_scandirat64) { in TEST() argument 86 dirent** entries; in TEST() 93 dirent** entries_at; in TEST() 116 TEST(dirent, scandir_ENOENT) { in TEST() argument 117 dirent** entries; in TEST() 123 TEST(dirent, scandir64_ENOENT) { in TEST() argument 130 TEST(dirent, scandirat_ENOENT) { in TEST() argument 133 dirent** entries; in TEST() [all …]
|
D | glob_test.cpp | 41 static dirent* fake_readdir(void*) { in fake_readdir() 42 static dirent d; in fake_readdir()
|
D | ifaddrs_test.cpp | 100 dirent* dir; in TEST()
|
/bionic/libc/private/ |
D | ScopedReaddir.h | 42 dirent* ReadEntry() { in ReadEntry()
|
/bionic/libc/kernel/uapi/linux/ |
D | fuse.h | 446 struct fuse_dirent dirent; member 448 #define FUSE_NAME_OFFSET_DIRENTPLUS offsetof(struct fuse_direntplus, dirent.name) 449 #define FUSE_DIRENTPLUS_SIZE(d) FUSE_DIRENT_ALIGN(FUSE_NAME_OFFSET_DIRENTPLUS + (d)->dirent.namelen)
|
/bionic/libc/upstream-freebsd/lib/libc/gen/ |
D | glob.c | 720 struct dirent *dp; in glob3() 725 struct dirent *(*readdirfunc)(DIR *); in glob3() 753 readdirfunc = (struct dirent *(*)(DIR *))pglob->gl_readdir; in glob3()
|
/bionic/docs/ |
D | status.md | 132 * <dirent.h> `telldir`, `seekdir`. 308 calling a `<dirent.h>` function on a null pointer, using `%n` with the
|
/bionic/tools/versioner/src/ |
D | versioner.cpp | 115 struct dirent* dent; in collectRequirements()
|
/bionic/libc/ |
D | SYSCALLS.TXT | 140 int __getdents64:getdents64(unsigned int, struct dirent*, unsigned int) arm,arm64,mips,mips64,x86…
|
D | Android.bp | 1037 "bionic/dirent.cpp",
|