Lines Matching refs:dirent
11 bool dirent_is_file(const struct dirent *de) _pure_;
12 bool dirent_is_file_with_suffix(const struct dirent *de, const char *suffix) _pure_;
14 struct dirent *readdir_ensure_type(DIR *d);
15 struct dirent *readdir_no_dot(DIR *dirp);
18 for (struct dirent *(de) = readdir_ensure_type(d);; (de) = readdir_ensure_type(d)) \
33 #define DIRENT_SIZE_MAX CONST_MAX(sizeof(struct dirent), offsetof(struct dirent, d_name) + NAME_MAX…
38 assert_cc(sizeof(struct dirent) == sizeof(struct dirent64));
39 assert_cc(offsetof(struct dirent, d_ino) == offsetof(struct dirent64, d_ino));
40 assert_cc(sizeof_field(struct dirent, d_ino) == sizeof_field(struct dirent64, d_ino));
41 assert_cc(offsetof(struct dirent, d_off) == offsetof(struct dirent64, d_off));
42 assert_cc(sizeof_field(struct dirent, d_off) == sizeof_field(struct dirent64, d_off));
43 assert_cc(offsetof(struct dirent, d_reclen) == offsetof(struct dirent64, d_reclen));
44 assert_cc(sizeof_field(struct dirent, d_reclen) == sizeof_field(struct dirent64, d_reclen));
45 assert_cc(offsetof(struct dirent, d_type) == offsetof(struct dirent64, d_type));
46 assert_cc(sizeof_field(struct dirent, d_type) == sizeof_field(struct dirent64, d_type));
47 assert_cc(offsetof(struct dirent, d_name) == offsetof(struct dirent64, d_name));
48 assert_cc(sizeof_field(struct dirent, d_name) == sizeof_field(struct dirent64, d_name));
53 (de) = (struct dirent*) ((uint8_t*) (de) + (de)->d_reclen))
57 struct dirent de; \