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

1234567891011>>

/freebsd-9.3-release/contrib/gdb/gdb/
H A Dgdb_dirent.h1 /* Portable <dirent.h>.
26 # include <dirent.h> /* OK: dirent.h */
27 # define NAMELEN(dirent) strlen ((dirent)->d_name) /* OK: strlen d_name */
29 # define dirent direct macro
30 # define NAMELEN(dirent) (dirent)->d_namelen /* OK: d_namelen */
/freebsd-9.3-release/sys/cddl/compat/opensolaris/sys/
H A Ddirent.h34 #include_next <sys/dirent.h>
36 typedef struct dirent dirent64_t;
39 #define dirent64 dirent
43 #define DIRENT64_RECLEN(len) ((sizeof(struct dirent) - \
44 sizeof(((struct dirent *)NULL)->d_name) + \
/freebsd-9.3-release/lib/libc/gen/
H A Dscandir.c40 * struct dirent (through namelist). Returns -1 if there were any errors.
44 #include <dirent.h>
53 * entry. This requires the amount of space in struct dirent without the
59 ((sizeof(struct dirent) - sizeof(dp)->d_name) + \
63 scandir(const char *dirname, struct dirent ***namelist,
64 int (*select)(const struct dirent *), int (*dcomp)(const struct dirent **,
65 const struct dirent **))
67 struct dirent *d, *p, **names = NULL;
76 names = (struct dirent **)mallo
[all...]
H A Dreaddir.c38 #include <dirent.h>
50 struct dirent *
55 struct dirent *dp;
69 dp = (struct dirent *)(dirp->dd_buf + dirp->dd_loc);
84 struct dirent *
88 struct dirent *dp;
103 struct dirent *entry;
104 struct dirent **result;
106 struct dirent *dp;
H A Drewinddir.c37 #include <dirent.h>
H A Dseekdir.c38 #include <dirent.h>
H A Dtelldir.h62 struct dirent *_readdir_unlocked(DIR *, int);
/freebsd-9.3-release/sys/sys/
H A Ddir.h39 #warning "The information in this file should be obtained from <dirent.h>"
43 #include <dirent.h>
48 #define direct dirent
H A Ddirent.h29 * @(#)dirent.h 8.3 (Berkeley) 8/10/94
40 * The dirent structure defines the format of directory entries returned by
43 * A directory entry has a struct dirent at the front of it, containing its
50 struct dirent { struct
93 ((sizeof (struct dirent) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3))
/freebsd-9.3-release/include/
H A Ddirent.h29 * @(#)dirent.h 8.2 (Berkeley) 7/28/94
41 #include <sys/dirent.h>
93 int alphasort(const struct dirent **, const struct dirent **);
102 struct dirent *
105 int readdir_r(DIR *, struct dirent *, struct dirent **);
109 int scandir(const char *, struct dirent ***,
110 int (*)(const struct dirent *), int (*)(const struct dirent **,
[all...]
/freebsd-9.3-release/contrib/bind9/lib/dns/
H A Dgen-unix.h36 #include <sys/types.h> /* Required on some systems for dirent.h. */
38 #include <dirent.h>
71 struct dirent *dirent; local
76 dirent = readdir(dir->handle);
77 if (dirent != NULL)
78 dir->filename = dirent->d_name;
/freebsd-9.3-release/contrib/libarchive/tar/
H A Dbsdtar_platform.h70 * Include "dirent.h" (or it's equivalent on several different platforms).
73 * In particular, FreeBSD includes d_namlen in it's dirent structure,
78 # include <dirent.h>
80 # define DIRENT_NAMLEN(dirent) (dirent)->d_namlen
82 # define DIRENT_NAMLEN(dirent) strlen((dirent)->d_name)
85 # define dirent direct macro
86 # define DIRENT_NAMLEN(dirent) (dirent)
[all...]
/freebsd-9.3-release/crypto/openssh/openbsd-compat/
H A Dbsd-closefrom.c34 # include <dirent.h>
35 # define NAMLEN(dirent) strlen((dirent)->d_name)
37 # define dirent direct macro
38 # define NAMLEN(dirent) (dirent)->d_namlen
74 struct dirent *dent;
H A Dbsd-nextstep.h38 /* NeXT's readdir() is BSD (struct direct) not POSIX (struct dirent) */
39 #define dirent direct macro
/freebsd-9.3-release/contrib/libreadline/
H A Dposixdir.h21 /* This file should be included instead of <dirent.h> or <sys/dir.h>. */
27 # include <dirent.h>
43 # if !defined (dirent)
44 # define dirent direct macro
45 # endif /* !dirent */
/freebsd-9.3-release/lib/libstand/
H A Dreaddir.c33 struct dirent *
36 static struct dirent dir; /* XXX not thread safe */
/freebsd-9.3-release/contrib/ncurses/progs/
H A Dprogs.priv.h68 # include <dirent.h>
69 # define NAMLEN(dirent) strlen((dirent)->d_name)
74 # define DIRENT struct dirent
77 # define DIRENT struct dirent
81 # define NAMLEN(dirent) (dirent)->d_namlen
/freebsd-9.3-release/sbin/fsck_msdosfs/
H A Ddir.c445 struct dosDirEntry dirent, *d; local
604 memset(&dirent, 0, sizeof dirent);
610 dirent.flags = p[11];
616 dirent.name[j] = p[j];
617 dirent.name[8] = '\0';
618 for (k = 7; k >= 0 && dirent.name[k] == ' '; k--)
619 dirent.name[k] = '\0';
620 if (dirent.name[k] != '\0')
622 if (dirent
[all...]
/freebsd-9.3-release/crypto/openssh/
H A Dsftp-glob.c25 #include <dirent.h>
64 static struct dirent *
67 /* Solaris needs sizeof(dirent) + path length (see below) */
68 static char buf[sizeof(struct dirent) + MAXPATHLEN];
69 struct dirent *ret = (struct dirent *)buf;
80 * Solaris defines dirent->d_name as a one byte array and expects
91 * Idiot glibc uses extensions to struct dirent for readdir with
141 pglob->gl_readdir = (struct dirent *(*)(void *))fudge_readdir;
/freebsd-9.3-release/contrib/groff/src/libs/libgroff/
H A Dmaxfilename.cpp41 #include <dirent.h>
H A Dmaxpathname.cpp43 # include <dirent.h>
/freebsd-9.3-release/gnu/usr.bin/grep/
H A Dsavedir.c34 # include <dirent.h>
35 # define NAMLEN(dirent) strlen((dirent)->d_name)
37 # define dirent direct macro
38 # define NAMLEN(dirent) (dirent)->d_namlen
109 struct dirent *dp;
/freebsd-9.3-release/gnu/lib/libodialog/
H A Ddir.h20 #include <sys/dirent.h>
/freebsd-9.3-release/contrib/ofed/management/libibcommon/include/infiniband/
H A Dcommon.h39 #include <dirent.h>
133 int sys_scandir(const char *dirname, struct dirent ***namelist,
134 int (*select)(const struct dirent *),
135 int (*compar)(const struct dirent **, const struct dirent **));
/freebsd-9.3-release/contrib/ofed/management/libibcommon/src/
H A Dsysfs.c170 (((uintptr_t)&((struct dirent *)0)->d_name + \
171 ((namlen)+1)*sizeof(((struct dirent *)0)->d_name[0]) + 3) & ~3)
174 sys_scandir(const char *dirname, struct dirent ***namelist,
175 int (*select)(const struct dirent *),
176 int (*compar)(const struct dirent **, const struct dirent **))
178 struct dirent **names;
179 struct dirent **names2;
180 struct dirent *dp;
281 qsort(names, cnt, sizeof(struct dirent *),
[all...]

Completed in 130 milliseconds

1234567891011>>