Home
last modified time | relevance | path

Searched refs:dirent (Results 1 – 18 of 18) sorted by relevance

/bionic/libc/bionic/
Dscandir.cpp45 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 …]
Ddirent.cpp45 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()
Dsysinfo.cpp55 dirent* entry; in get_nprocs_conf()
Dndk_cruft.cpp265 int __getdents64(unsigned int, dirent*, unsigned int);
266 int getdents(unsigned int fd, dirent* dirp, unsigned int count) { in getdents()
Dfts.c539 struct dirent *dp; in fts_build()
/bionic/tests/headers/posix/
Ddirent_h.c36 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/
Ddirent.h63 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…
Dglob.h42 struct dirent;
61 struct dirent* (*gl_readdir)(void*);
/bionic/tests/
Ddirent_test.cpp51 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 …]
Dglob_test.cpp41 static dirent* fake_readdir(void*) { in fake_readdir()
42 static dirent d; in fake_readdir()
Difaddrs_test.cpp100 dirent* dir; in TEST()
/bionic/libc/private/
DScopedReaddir.h42 dirent* ReadEntry() { in ReadEntry()
/bionic/libc/kernel/uapi/linux/
Dfuse.h446 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/
Dglob.c720 struct dirent *dp; in glob3()
725 struct dirent *(*readdirfunc)(DIR *); in glob3()
753 readdirfunc = (struct dirent *(*)(DIR *))pglob->gl_readdir; in glob3()
/bionic/docs/
Dstatus.md132 * <dirent.h> `telldir`, `seekdir`.
308 calling a `<dirent.h>` function on a null pointer, using `%n` with the
/bionic/tools/versioner/src/
Dversioner.cpp115 struct dirent* dent; in collectRequirements()
/bionic/libc/
DSYSCALLS.TXT140 int __getdents64:getdents64(unsigned int, struct dirent*, unsigned int) arm,arm64,mips,mips64,x86…
DAndroid.bp1037 "bionic/dirent.cpp",