Home
last modified time | relevance | path

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

1234

/glibc-2.36/dirent/
Ddirent.h164 extern struct dirent *readdir (DIR *__dirp) __nonnull ((1));
167 extern struct dirent *__REDIRECT (readdir, (DIR *__dirp), readdir64)
186 struct dirent *__restrict __entry,
187 struct dirent **__restrict __result)
193 struct dirent *__restrict __entry,
194 struct dirent **__restrict __result),
258 struct dirent ***__restrict __namelist,
259 int (*__selector) (const struct dirent *),
260 int (*__cmp) (const struct dirent **,
261 const struct dirent **))
[all …]
Dscandir.c22 scandir (const char *dir, struct dirent ***namelist, in scandir() argument
23 int (*select) (const struct dirent *), in scandir()
24 int (*cmp) (const struct dirent **, const struct dirent **)) in scandir() argument
Dscandirat.c22 __scandirat (int dfd, const char *dir, struct dirent ***namelist, in __scandirat() argument
23 int (*select) (const struct dirent *), in __scandirat()
24 int (*cmp) (const struct dirent **, const struct dirent **)) in __scandirat() argument
DMakefile21 subdir := dirent
25 headers := dirent.h bits/dirent.h bits/dirent_ext.h
43 opendir-tst1-ARGS = --test-dir=${common-objpfx}dirent
Dalphasort.c24 alphasort (const struct dirent **a, const struct dirent **b) in alphasort()
Dversionsort.c24 versionsort (const struct dirent **a, const struct dirent **b) in versionsort()
Dreaddir_r.c25 __readdir_r (DIR *dirp, struct dirent *entry, struct dirent **result) in __readdir_r()
Dtst-scandir.c122 freelist (struct D(dirent) **list, size_t n) in freelist()
130 select_a (const struct D(dirent) *d) in select_a()
148 struct D(dirent) **list; in do_test()
Dscandir-tail.c25 # define DIRENT_TYPE struct dirent
/glibc-2.36/conform/data/
Ddirent.h-data4 type {struct dirent}
7 element {struct dirent} ino_t d_ino
9 element {struct dirent} char d_name []
17 function {struct dirent*} readdir (DIR*)
18 function int readdir_r (DIR*, struct dirent*, struct dirent**)
29 function int alphasort (const struct dirent**, const struct dirent**)
31 …nt scandir (const char*, struct dirent***, int(*)(const struct dirent*), int(*)(const struct diren…
/glibc-2.36/include/
Ddirent.h22 extern struct dirent *__readdir (DIR *__dirp) attribute_hidden;
23 extern struct dirent *__readdir_unlocked (DIR *__dirp) attribute_hidden;
26 extern int __readdir_r (DIR *__dirp, struct dirent *__entry,
27 struct dirent **__result);
61 struct dirent ***namelist,
62 int (*select) (const struct dirent *),
63 int (*cmp) (const struct dirent **,
64 const struct dirent **))
68 struct dirent ***namelist,
69 int (*select) (const struct dirent *),
[all …]
/glibc-2.36/sysdeps/mach/hurd/
Dreaddir.c26 struct dirent *
31 if (sizeof (struct dirent64) == sizeof (struct dirent)) in __readdir()
33 return (struct dirent *) entry64; in __readdir()
38 assert (offsetof (struct dirent, d_ino) == 0); in __readdir()
42 == offsetof (struct dirent, memb) - sizeof (ino_t)) in __readdir()
51 struct dirent *const entry = ((void *) (&entry64->d_ino + 1) in __readdir()
Dreaddir_r.c32 __readdir_r (DIR *dirp, struct dirent *entry, struct dirent **result) in __readdir_r()
34 if (sizeof (struct dirent64) == sizeof (struct dirent)) in __readdir_r()
/glibc-2.36/locale/programs/
Dcharmap-dir.c89 struct dirent64 *dirent; in charmap_readdir() local
95 dirent = readdir64 (cdir->dir); in charmap_readdir()
96 if (dirent == NULL) in charmap_readdir()
98 if (strcmp (dirent->d_name, ".") == 0) in charmap_readdir()
100 if (strcmp (dirent->d_name, "..") == 0) in charmap_readdir()
103 len = strlen (dirent->d_name); in charmap_readdir()
115 stpcpy (stpcpy (cdir->pathname, cdir->directory), dirent->d_name); in charmap_readdir()
118 if (dirent->d_type != DT_UNKNOWN && dirent->d_type != DT_LNK) in charmap_readdir()
119 mode = DTTOIF (dirent->d_type); in charmap_readdir()
Dlocale.c311 select_dirs (const struct dirent *dirent) in select_dirs() argument
315 if (strcmp (dirent->d_name, ".") != 0 && strcmp (dirent->d_name, "..") != 0) in select_dirs()
319 if (dirent->d_type != DT_UNKNOWN && dirent->d_type != DT_LNK) in select_dirs()
320 mode = DTTOIF (dirent->d_type); in select_dirs()
325 + strlen (dirent->d_name) + 1]; in select_dirs()
328 dirent->d_name); in select_dirs()
419 struct dirent **dirents; in write_locales()
735 const char *dirent; in write_charmaps() local
742 while ((dirent = charmap_readdir (dir)) != NULL) in write_charmaps()
747 PUT (xstrdup (dirent)); in write_charmaps()
[all …]
/glibc-2.36/sysdeps/unix/sysv/linux/
Dreaddir_r.c24 __readdir_r (DIR *dirp, struct dirent *entry, struct dirent **result) in __readdir_r()
26 struct dirent *dp; in __readdir_r()
38 if (reclen <= offsetof (struct dirent, d_name) + NAME_MAX + 1) in __readdir_r()
46 reclen = offsetof (struct dirent, d_name) + namelen + 1; in __readdir_r()
Dreaddir.c25 struct dirent *
28 struct dirent *dp; in __readdir_unlocked()
63 dp = (struct dirent *) &dirp->data[dirp->offset]; in __readdir_unlocked()
77 struct dirent *
80 struct dirent *dp; in __readdir()
Dgetdents.c43 struct dirent u; in __getdents()
51 - offsetof (struct dirent, d_name)) in __getdents()
52 char kbuftmp[sizeof (struct dirent) + size_diff]; in __getdents()
53 if (nbytes <= sizeof (struct dirent)) in __getdents()
68 const size_t alignment = _Alignof (struct dirent); in __getdents()
/glibc-2.36/manual/examples/
Dmkdirent.c24 struct dirent *
27 size_t dirent_size = offsetof (struct dirent, d_name) + 1; in mkdirent()
35 struct dirent *result = malloc (total_size); in mkdirent()
Ddir2.c24 one (const struct dirent *unused) in one()
32 struct dirent **eps; in main()
/glibc-2.36/io/
Dftw.c39 # define NAMLEN(dirent) _D_EXACT_NAMLEN (dirent) argument
43 # define NAMLEN(dirent) strlen ((dirent)->d_name) argument
45 # define dirent direct macro
46 # define NAMLEN(dirent) (dirent)->d_namlen argument
112 # define dirent64 dirent
/glibc-2.36/posix/
Dtst-glob_lstat_compat.c72 struct dirent d;
155 static struct dirent *
Dbug-glob2.c89 struct dirent d;
185 static struct dirent *
/glibc-2.36/nscd/
Dnscd.c252 struct dirent64 *dirent; in main() local
255 while ((dirent = readdir64 (d)) != NULL) in main()
258 long int fdn = strtol (dirent->d_name, &endp, 10); in main()
/glibc-2.36/misc/sys/
Ddir.h25 #define direct dirent

1234