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

1234567891011

/external/chromium_org/native_client_sdk/src/libraries/nacl_io/
H A Dosdirent.h13 struct dirent { struct
23 #include <dirent.h>
H A Dgetdents_helper.cc46 dirents_.push_back(dirent());
47 dirent& entry = dirents_.back();
49 entry.d_off = sizeof(dirent);
50 entry.d_reclen = sizeof(dirent);
55 size_t d_name_max = MEMBER_SIZE(dirent, d_name) - 1; // -1 for \0.
62 dirent* pdir,
69 LOG_TRACE("dirent pointer is NULL.");
74 if (size < sizeof(dirent)) {
75 LOG_TRACE("dirent buffer size is too small: %d < %d", size, sizeof(dirent));
[all...]
H A Dgetdents_helper.h23 Error GetDents(size_t offs, dirent* pdir, size_t size, int* out_bytes) const;
28 std::vector<dirent> dirents_;
/external/chromium_org/third_party/boringssl/src/crypto/
H A Ddirectory_posix.c36 #include <dirent.h>
41 int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result) {
56 struct dirent dirent; member in struct:OPENSSL_dir_context_st
60 struct dirent *dirent; local
86 if (readdir_r((*ctx)->dir, &(*ctx)->dirent, &dirent) != 0 ||
87 dirent
[all...]
/external/e2fsprogs/lib/ext2fs/
H A Ddirblock.c27 struct ext2_dir_entry *dirent; local
38 dirent = (struct ext2_dir_entry *) p;
40 dirent->inode = ext2fs_swab32(dirent->inode);
41 dirent->rec_len = ext2fs_swab16(dirent->rec_len);
42 dirent->name_len = ext2fs_swab16(dirent->name_len);
44 name_len = dirent->name_len;
47 dirent
82 struct ext2_dir_entry *dirent; local
[all...]
H A Dunlink.c33 static int unlink_proc(struct ext2_dir_entry *dirent, argument
43 ls->prev = dirent;
46 if ((dirent->name_len & 0xFF) != ls->namelen)
48 if (strncmp(ls->name, dirent->name, dirent->name_len & 0xFF))
52 if (dirent->inode != ls->inode)
55 if (!dirent->inode)
60 prev->rec_len += dirent->rec_len;
62 dirent->inode = 0;
H A Ddir_iterate.c27 struct ext2_dir_entry *dirent,
30 unsigned int len = dirent->rec_len;
43 struct ext2_dir_entry *dirent)
48 dirent->rec_len = len;
53 dirent->rec_len = EXT4_MAX_REC_LEN;
55 dirent->rec_len = 0;
57 dirent->rec_len = (len & 65532) | ((len >> 16) & 3);
73 struct ext2_dir_entry *dirent; local
79 dirent = (struct ext2_dir_entry *)(buf + offset);
80 if (ext2fs_get_rec_len(fs, dirent,
26 ext2fs_get_rec_len(ext2_filsys fs, struct ext2_dir_entry *dirent, unsigned int *rec_len) argument
41 ext2fs_set_rec_len(ext2_filsys fs, unsigned int len, struct ext2_dir_entry *dirent) argument
91 ext2fs_dir_iterate2(ext2_filsys fs, ext2_ino_t dir, int flags, char *block_buf, int (*func)(ext2_ino_t dir, int entry, struct ext2_dir_entry *dirent, int offset, int blocksize, char *buf, void *priv_data), void *priv_data) argument
145 struct ext2_dir_entry *dirent, int offset, variable in typeref:struct:ext2_dir_entry
153 ext2fs_dir_iterate(ext2_filsys fs, ext2_ino_t dir, int flags, char *block_buf, int (*func)(struct ext2_dir_entry *dirent, int offset, int blocksize, char *buf, void *priv_data), void *priv_data) argument
193 struct ext2_dir_entry *dirent; local
[all...]
H A Dlookup.c31 static int lookup_proc(struct ext2_dir_entry *dirent, argument
39 if (ls->len != (dirent->name_len & 0xFF))
41 if (strncmp(ls->name, dirent->name, (dirent->name_len & 0xFF)))
43 *ls->inode = dirent->inode;
H A Dlink.c33 static int link_proc(struct ext2_dir_entry *dirent, argument
49 ls->err = ext2fs_get_rec_len(ls->fs, dirent, &curr_rec_len);
62 ls->err = ext2fs_set_rec_len(ls->fs, curr_rec_len, dirent);
73 if (dirent->inode) {
74 min_rec_len = EXT2_DIR_REC_LEN(dirent->name_len & 0xFF);
78 ls->err = ext2fs_set_rec_len(ls->fs, min_rec_len, dirent);
82 dirent->rec_len);
97 dirent->inode = ls->inode;
98 dirent->name_len = ls->namelen;
99 strncpy(dirent
[all...]
H A Dget_pathname.c43 static int get_pathname_proc(struct ext2_dir_entry *dirent, argument
54 if (((dirent->name_len & 0xFF) == 2) &&
55 !strncmp(dirent->name, "..", 2))
56 gp->parent = dirent->inode;
57 if (dirent->inode == gp->search_ino) {
58 retval = ext2fs_get_mem((dirent->name_len & 0xFF) + 1,
64 strncpy(gp->name, dirent->name, (dirent->name_len & 0xFF));
65 gp->name[dirent->name_len & 0xFF] = '\0';
/external/compiler-rt/test/msan/
H A Dreaddir64.cc14 #include <dirent.h>
20 struct dirent *d = readdir(dir);
H A Dscandir.cc14 #include <dirent.h>
20 static int my_filter(const struct dirent *a) {
29 static int my_compar(const struct dirent **a, const struct dirent **b) {
44 struct dirent **d;
H A Dscandir_null.cc14 #include <dirent.h>
25 struct dirent **d;
/external/fio/os/windows/posix/include/
H A Ddirent.h6 struct dirent struct
21 struct dirent *readdir(DIR *dirp);
/external/compiler-rt/test/asan/TestCases/Linux/
H A Dinterception_readdir_r_test.cc14 #include <dirent.h>
22 // Ensure the readdir_r interceptor doesn't erroneously mark the entire dirent
26 struct dirent *result = (struct dirent *)(0xfeedbeef);
33 ((struct dirent *)entry_buffer)->d_reclen = 9999;
34 if (readdir_r(d, (struct dirent *)entry_buffer, &result) != 0)
/external/e2fsprogs/lib/e2p/
H A Diod.c27 int (*func) (const char *, struct dirent *, void *),
31 struct dirent *de, *dep;
48 max_len += sizeof(struct dirent);
66 len = sizeof(struct dirent);
/external/oprofile/daemon/
H A Dopd_stats.c18 #include <dirent.h>
41 struct dirent * dirent; local
68 while ((dirent = readdir(dir))) {
71 if (sscanf(dirent->d_name, "cpu%d", &cpu_nr) != 1)
73 snprintf(path, 256, "/dev/oprofile/stats/%s", dirent->d_name);
/external/e2fsprogs/e2fsck/
H A Dpass2.c348 struct ext2_dir_entry *dirent,
357 if (!dirent->inode)
359 else if (((dirent->name_len & 0xFF) != 1) ||
360 (dirent->name[0] != '.'))
362 else if (dirent->name[1] != '\0')
365 (void) ext2fs_get_rec_len(ctx->fs, dirent, &rec_len);
369 rec_len = dirent->rec_len = 12;
370 dirent->inode = ino;
371 dirent->name_len = 1;
372 dirent
347 check_dot(e2fsck_t ctx, struct ext2_dir_entry *dirent, ext2_ino_t ino, struct problem_context *pctx) argument
408 check_dotdot(e2fsck_t ctx, struct ext2_dir_entry *dirent, ext2_ino_t ino, struct problem_context *pctx) argument
454 check_name(e2fsck_t ctx, struct ext2_dir_entry *dirent, ext2_ino_t dir_ino EXT2FS_ATTR((unused)), struct problem_context *pctx) argument
480 check_filetype(e2fsck_t ctx, struct ext2_dir_entry *dirent, ext2_ino_t dir_ino EXT2FS_ATTR((unused)), struct problem_context *pctx) argument
641 salvage_directory(ext2_filsys fs, struct ext2_dir_entry *dirent, struct ext2_dir_entry *prev, unsigned int *offset) argument
673 (void) ext2fs_set_rec_len(fs, (int) rec_len + left, dirent); local
716 struct ext2_dir_entry *dirent, *prev; local
[all...]
/external/fsck_msdos/
H A Ddir.c528 struct dosDirEntry dirent, *d; local
691 memset(&dirent, 0, sizeof dirent);
697 dirent.flags = p[11];
703 dirent.name[j] = p[j];
704 dirent.name[8] = '\0';
705 for (k = 7; k >= 0 && dirent.name[k] == ' '; k--)
706 dirent.name[k] = '\0';
707 if (dirent.name[k] != '\0')
709 if (dirent
[all...]
/external/qemu/util/
H A Dpath.c11 #include <dirent.h>
62 # define dirent_type(dirent) ((dirent)->d_type)
66 # define dirent_type(dirent) (1)
75 struct dirent *dirent; local
77 while ((dirent = readdir(dir)) != NULL) {
78 if (!streq(dirent->d_name,".") && !streq(dirent->d_name,"..")){
79 path = add_entry(path, dirent
[all...]
/external/chromium_org/base/files/
H A Ddir_reader_linux.h52 linux_dirent* dirent = reinterpret_cast<linux_dirent*>(&buf_[offset_]); local
53 offset_ += dirent->d_reclen;
75 const linux_dirent* dirent = local
77 return dirent->d_name;
/external/chromium_org/net/disk_cache/simple/
H A Dsimple_index_file_posix.cc7 #include <dirent.h>
37 dirent entry, *result;
/external/chromium_org/third_party/webrtc/base/
H A Dlinuxfdwalk.c12 #include <dirent.h>
45 struct dirent *ent;
/external/deqp/framework/delibs/decpp/
H A DdeDirectoryIterator.hpp46 # include <dirent.h>
77 struct dirent* m_curEntry;
/external/e2fsprogs/debugfs/
H A Dncheck.c38 static int ncheck_proc(struct ext2_dir_entry *dirent, argument
47 int filetype = dirent->name_len >> 8;
54 if (iw->iarray[i] == dirent->inode) {
68 (dirent->name_len & 0xFF), dirent->name);
72 (dirent->name_len & 0xFF), dirent->name);
74 if (!debugfs_read_inode(dirent->inode, &inode,

Completed in 441 milliseconds

1234567891011