Searched refs:dirent (Results 1 - 25 of 193) sorted by relevance

12345678

/haiku/src/system/libroot/posix/musl/dirent/
H A Dalphasort.c2 #include <dirent.h>
4 int alphasort(const struct dirent **a, const struct dirent **b)
H A Dscandir.c1 #include <dirent.h>
8 int scandir(const char *path, struct dirent ***res,
9 int (*sel)(const struct dirent *),
10 int (*cmp)(const struct dirent **, const struct dirent **))
13 struct dirent *de, **names=0, **tmp;
/haiku/src/tests/system/libroot/posix/
H A Ddirent_test.cpp7 #include <dirent.h>
15 dirent *buf, *dirent; local
20 dirent = readdir(dir);
21 if (dirent == NULL)
24 printf("Entry: dev %ld, ino %lld, name \"%s\"\n", dirent->d_dev,
25 dirent->d_ino, dirent->d_name);
32 dirent = readdir(dir);
33 if (dirent
[all...]
/haiku/headers/posix/
H A Ddirent.h12 typedef struct dirent { struct
41 struct dirent* readdir(DIR* dir);
42 int readdir_r(DIR* dir, struct dirent* entry,
43 struct dirent** _result);
50 int alphasort(const struct dirent** entry1,
51 const struct dirent** entry2);
52 int scandir(const char* dir, struct dirent*** _entryArray,
53 int (*selectFunc)(const struct dirent*),
54 int (*compareFunc)(const struct dirent** entry1,
55 const struct dirent** entry
[all...]
/haiku/headers/private/file_systems/
H A Dfs_ops_support.h11 # include <dirent.h>
33 /*! Computes and assigns `dirent->d_reclen`, adjusts `bufferRemaining` accordingly,
36 static inline struct dirent*
37 next_dirent(struct dirent* dirent, size_t nameLength, size_t& bufferRemaining) argument
39 const size_t reclen = offsetof(struct dirent, d_name) + nameLength + 1;
43 dirent->d_reclen = reclen;
45 const size_t roundedReclen = ROUNDUP(reclen, alignof(struct dirent));
50 dirent->d_reclen = roundedReclen;
53 return (struct dirent*)((uint
[all...]
/haiku/headers/build/host/darwin/
H A Ddirent.h5 #include_next <dirent.h>
/haiku/headers/private/libroot/
H A Ddirent_private.h10 #include <dirent.h>
/haiku/src/add-ons/kernel/file_systems/packagefs/nodes/
H A DAttributeDirectoryCookie.h9 #include <dirent.h>
20 struct dirent* buffer, size_t bufferSize,
H A DEmptyAttributeDirectoryCookie.cpp12 struct dirent* buffer, size_t bufferSize, uint32* _count)
H A DEmptyAttributeDirectoryCookie.h15 struct dirent* buffer, size_t bufferSize,
H A DAutoPackageAttributeDirectoryCookie.cpp27 struct dirent* buffer, size_t bufferSize, uint32* _count)
32 dirent* previousEntry = NULL;
51 buffer = (dirent*)((addr_t)buffer + offset);
77 buffer = (dirent*)((addr_t)buffer + buffer->d_reclen);
H A DAutoPackageAttributeDirectoryCookie.h28 struct dirent* buffer, size_t bufferSize,
/haiku/headers/os/kernel/
H A Dfs_query.h10 #include <dirent.h>
32 extern struct dirent *fs_read_query(DIR *d);
34 extern status_t get_path_for_dirent(struct dirent *dent, char *buf,
H A Dfs_index.h10 #include <dirent.h>
33 extern struct dirent *fs_read_index_dir(DIR *indexDirectory);
H A Dfs_attr.h10 #include <dirent.h>
41 extern struct dirent *fs_read_attr_dir(DIR *dir);
/haiku/src/add-ons/kernel/file_systems/netfs/client/
H A DVolumeSupport.h6 #include <dirent.h>
13 set_dirent_name(struct dirent* buffer, size_t bufferSize, const char* name,
30 next_dirent(struct dirent*& buffer, size_t& bufferSize)
42 buffer = (dirent*)nextBuffer;
/haiku/src/bin/
H A Dmkindex.cpp50 while (dirent *dirent = fs_read_index_dir(indexes)) {
51 if (!strcmp(dirent->d_name, "name")
52 || !strcmp(dirent->d_name, "size")
53 || !strcmp(dirent->d_name, "last_modified"))
57 if (fs_stat_index(from, dirent->d_name, &info) != 0) {
59 kProgramName, dirent->d_name, strerror(errno));
63 if (fs_create_index(to, dirent->d_name, info.type, 0) != 0) {
69 kProgramName, dirent->d_name, strerror(errno));
71 printf("\t%s\n", dirent
[all...]
H A Dfortune.c7 #include <dirent.h>
23 struct dirent *dirent; local
33 while ((dirent = readdir(dir)) != NULL) {
34 if (dirent->d_name[0] == '.')
50 while ((dirent = readdir(dir)) != NULL) {
51 if (dirent->d_name[0] == '.')
61 strlcat(name, dirent->d_name, sizeof(name));
/haiku/headers/private/storage/
H A Dstorage_support.h20 #include <dirent.h>
29 char _[sizeof(struct dirent) + B_FILE_NAME_LENGTH + 1];
30 struct dirent* dirent() { return (struct dirent*)_; } function in struct:BPrivate::Storage::LongDirEntry
/haiku/src/kits/tracker/
H A DEntryIterator.h62 virtual int32 GetNextDirents(struct dirent* buffer, size_t length,
68 static dirent* Next(dirent*);
84 virtual int32 GetNextDirents(struct dirent* buffer, size_t length,
115 virtual int32 GetNextDirents(struct dirent* buffer, size_t length,
125 static int _CompareInodes(const dirent* ent1, const dirent* ent2);
133 dirent* fDirentBuffer;
134 dirent* fCurrentDirent;
136 BObjectList<dirent>* fSortedLis
[all...]
/haiku/src/system/libroot/posix/
H A Ddirent.cpp8 #include <dirent.h>
31 struct dirent first_entry;
68 struct dirent* entry = (struct dirent*)
201 struct dirent*
212 struct dirent *dirent local
213 = (struct dirent *)((uint8 *)&dir->first_entry + dir->next_entry);
216 dir->next_entry += dirent->d_reclen;
220 return dirent;
250 struct dirent* dirent = readdir(dir); local
[all...]
/haiku/headers/os/storage/
H A DEntryList.h9 #include <dirent.h>
30 virtual int32 GetNextDirents(struct dirent* direntBuffer,
/haiku/headers/build/os/kernel/
H A Dfs_attr.h10 #include <dirent.h>
42 extern struct dirent *fs_read_attr_dir(DIR *dir);
/haiku/src/bin/package/
H A DPackageWritingUtils.cpp9 #include <dirent.h>
32 while (dirent* entry = readdir(dir.Get())) {
/haiku/headers/private/shared/
H A DAutoDeleterPosix.h11 #include <dirent.h>

Completed in 124 milliseconds

12345678