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

1234567891011>>

/freebsd-current/contrib/mandoc/
H A Dtest-dirent-namlen.c2 #include <dirent.h>
7 struct dirent entry;
/freebsd-current/include/
H A Ddirent.h41 #include <sys/dirent.h>
104 int alphasort(const struct dirent **, const struct dirent **);
108 int versionsort(const struct dirent **, const struct dirent **);
116 struct dirent *
119 int readdir_r(DIR *, struct dirent *, struct dirent **);
123 int scandir(const char *, struct dirent ***,
124 int (*)(const struct dirent *), in
[all...]
/freebsd-current/contrib/netbsd-tests/usr.bin/xlint/lint1/
H A Dd_cvt_in_ternary.c9 struct filecore_direntry dirent = { 0 }; local
11 size_t bytelen = (((dirent.len)<(uio_resid))?(dirent.len):(uio_resid));
/freebsd-current/lib/libc/gen/
H A Dscandir.c36 * struct dirent (through namelist). Returns -1 if there were any errors.
40 #include <dirent.h>
58 typedef DECLARE_BLOCK(int, select_block, const struct dirent *);
59 typedef DECLARE_BLOCK(int, dcomp_block, const struct dirent **,
60 const struct dirent **);
67 scandir_b_dirp(DIR *dirp, struct dirent ***namelist, select_block select,
70 scandir_dirp(DIR *dirp, struct dirent ***namelist,
71 int (*select)(const struct dirent *), int (*dcomp)(const struct dirent **,
72 const struct dirent **))
[all...]
H A Ddirfd.c32 #include <dirent.h>
H A Dgen-private.h58 void *dd_compat_de; /* compat dirent */
63 struct dirent;
64 int __readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
H A Dreaddir.c34 #include <dirent.h>
47 struct dirent *
50 struct dirent *dp;
72 dp = (struct dirent *)(dirp->dd_buf + dirp->dd_loc);
90 struct dirent *
93 struct dirent *dp;
104 __readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result)
106 struct dirent *dp;
H A Dseekdir.c34 #include <dirent.h>
H A Dreaddir-compat11.c34 #include <dirent.h>
50 freebsd11_cvtdirent(struct freebsd11_dirent *dstdp, struct dirent *srcdp)
70 struct dirent *dp;
95 struct dirent xentry, *xresult;
H A Drewinddir.c34 #include <dirent.h>
/freebsd-current/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Ddirent.h34 #include_next <sys/dirent.h>
36 typedef struct dirent dirent64_t;
39 #define dirent64 dirent
/freebsd-current/sys/cddl/compat/opensolaris/sys/
H A Ddirent.h32 #include_next <sys/dirent.h>
34 typedef struct dirent dirent64_t;
37 #define dirent64 dirent
/freebsd-current/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dcp_files.c7 #include <dirent.h>
16 struct dirent *dirent; local
38 while ((dirent = readdir(sdir)) != NULL) {
39 if (dirent->d_name[0] == '.' &&
40 (dirent->d_name[1] == '.' || dirent->d_name[1] == '\0'))
43 int fd = openat(tfd, dirent->d_name, O_CREAT|O_WRONLY, 0666);
46 argv[2], dirent->d_name, strerror(errno));
/freebsd-current/contrib/libarchive/tar/
H A Dbsdtar_platform.h62 * Include "dirent.h" (or its equivalent on several different platforms).
65 * In particular, FreeBSD includes d_namlen in its dirent structure,
70 # include <dirent.h>
72 # define DIRENT_NAMLEN(dirent) (dirent)->d_namlen
74 # define DIRENT_NAMLEN(dirent) strlen((dirent)->d_name)
77 # define dirent direct macro
78 # define DIRENT_NAMLEN(dirent) (dirent)
[all...]
/freebsd-current/contrib/netbsd-tests/fs/hfs/
H A Dt_pathconvert.c7 #include <dirent.h>
39 struct dirent *dirent; local
62 for (offset = 0; offset < nbytes; offset += dirent->d_reclen) {
63 dirent = (struct dirent *)(buf + offset);
64 if (strchr(dirent->d_name, '/'))
65 atf_tc_fail("dirent with slash: %s", dirent->d_name);
66 if (0 == strcmp(FUNNY_FILENAME, dirent
[all...]
/freebsd-current/lib/libc/sys/
H A Dgetdents.c30 #include <dirent.h>
/freebsd-current/stand/libsa/
H A Dreaddir.c30 struct dirent *
33 static struct dirent dir; /* XXX not thread safe */
/freebsd-current/contrib/ofed/libibumad/
H A Dsysfs.h42 struct dirent;
50 extern int sys_scandir(const char *dirname, struct dirent ***namelist,
51 int (*select)(const struct dirent *),
52 int (*compar)(const struct dirent **, const struct dirent **));
/freebsd-current/sys/sys/
H A Ddirent.h49 * The dirent structure defines the format of directory entries returned by
52 * A directory entry has a struct dirent at the front of it, containing its
59 * d_name avoids ABI padding at the end of dirent on LP64 architectures.
63 struct dirent { struct
112 * the directory entry. This returns the amount of space in struct dirent
120 ((__offsetof(struct dirent, d_name) + (namlen) + 1 + 7) & ~7)
134 dirent_terminate(struct dirent *dp)
140 dp->d_reclen - (__offsetof(struct dirent, d_name) + dp->d_namlen));
/freebsd-current/sbin/fsck_msdosfs/
H A Ddir.c550 struct dosDirEntry dirent, *d; local
747 memset(&dirent, 0, sizeof dirent);
753 dirent.flags = p[11];
759 dirent.name[j] = p[j];
760 dirent.name[8] = '\0';
761 for (k = 7; k >= 0 && dirent.name[k] == ' '; k--)
762 dirent.name[k] = '\0';
763 if (k < 0 || dirent.name[k] != '\0')
765 if (dirent
[all...]
/freebsd-current/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-current/tools/build/cross-build/
H A Dclosefrom.c38 # include <dirent.h>
39 # define NAMLEN(dirent) strlen((dirent)->d_name)
41 # define dirent direct macro
42 # define NAMLEN(dirent) (dirent)->d_namlen
131 struct dirent *dent;
/freebsd-current/crypto/openssh/openbsd-compat/
H A Dbsd-closefrom.c32 # include <dirent.h>
33 # define NAMLEN(dirent) strlen((dirent)->d_name)
35 # define dirent direct macro
36 # define NAMLEN(dirent) (dirent)->d_namlen
127 struct dirent *dent;
H A Dbsd-nextstep.h36 /* NeXT's readdir() is BSD (struct direct) not POSIX (struct dirent) */
37 #define dirent direct macro
/freebsd-current/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
146 pglob->gl_readdir = (struct dirent *(*)(void *))fudge_readdir;

Completed in 166 milliseconds

1234567891011>>