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

1234567891011>>

/freebsd-10.0-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-10.0-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-10.0-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 Ddirfd.c35 #include <dirent.h>
H A Dreaddir.c38 #include <dirent.h>
51 struct dirent *
56 struct dirent *dp;
70 dp = (struct dirent *)(dirp->dd_buf + dirp->dd_loc);
85 struct dirent *
89 struct dirent *dp;
104 struct dirent *entry;
105 struct dirent **result;
107 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-10.0-release/include/
H A Ddirent.h29 * @(#)dirent.h 8.2 (Berkeley) 7/28/94
41 #include <sys/dirent.h>
77 int alphasort(const struct dirent **, const struct dirent **);
88 struct dirent *
91 int readdir_r(DIR *, struct dirent *, struct dirent **);
95 int scandir(const char *, struct dirent ***,
96 int (*)(const struct dirent *), int (*)(const struct dirent **,
[all...]
/freebsd-10.0-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-10.0-release/contrib/libarchive/tar/
H A Dbsdtar_platform.h70 * Include "dirent.h" (or its equivalent on several different platforms).
73 * In particular, FreeBSD includes d_namlen in its 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-10.0-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;
/freebsd-10.0-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-10.0-release/sys/fs/nandfs/
H A Dnandfs_dir.c44 #include <sys/dirent.h>
59 struct nandfs_dir_entry *dirent, *pdirent; local
123 /* Create new dirent */
124 dirent = (struct nandfs_dir_entry *) (pos + off);
125 dirent->rec_len = blocksize - off;
126 dirent->inode = ino;
127 dirent->name_len = namelen;
128 memset(dirent->name, 0, NANDFS_DIR_NAME_LEN(namelen));
129 memcpy(dirent->name, nameptr, namelen);
130 dirent
155 struct nandfs_dir_entry *dirent, *pdirent; local
239 struct nandfs_dir_entry *dirent; local
264 struct nandfs_dir_entry *dirent; local
[all...]
/freebsd-10.0-release/contrib/subversion/subversion/include/
H A Dsvn_dirent_uri.h28 * - a dirent is a path on (local) disc or a UNC path (Windows) in
45 * to any other relative path, uri or dirent. A relative path is
54 * the path string if it's a dirent or a URI, it's up to the API user to
94 * on your computer, it's a dirent.
101 * (such as a dirent or URL), it's a relpath.
124 * source -- such as from the network -- is converted to a dirent it
148 /** Convert @a dirent from the local style to the canonical internal style.
156 svn_dirent_internal_style(const char *dirent,
159 /** Convert @a dirent from the internal style to the local style.
168 svn_dirent_local_style(const char *dirent,
[all...]
/freebsd-10.0-release/lib/libstand/
H A Dreaddir.c33 struct dirent *
36 static struct dirent dir; /* XXX not thread safe */
/freebsd-10.0-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-10.0-release/contrib/subversion/subversion/libsvn_subr/
H A Ddirent_uri.c122 /* Calculates the length of the dirent absolute or non absolute root in
123 DIRENT, return 0 if dirent is not rooted */
125 dirent_root_length(const char *dirent, apr_size_t len)
128 if (len >= 2 && dirent[1] == ':' &&
129 ((dirent[0] >= 'A' && dirent[0] <= 'Z') ||
130 (dirent[0] >= 'a' && dirent[0] <= 'z')))
132 return (len > 2 && dirent[2] == '/') ? 3 : 2;
135 if (len > 2 && dirent[
124 dirent_root_length(const char *dirent, apr_size_t len) argument
167 dirent_previous_segment(const char *dirent, apr_size_t len) argument
223 dirent_is_rooted(const char *dirent) argument
874 svn_dirent_internal_style(const char *dirent, apr_pool_t *pool) argument
880 svn_dirent_local_style(const char *dirent, apr_pool_t *pool) argument
913 svn_dirent_is_root(const char *dirent, apr_size_t len) argument
968 char *dirent; local
1042 char *dirent; local
1196 svn_dirent_dirname(const char *dirent, apr_pool_t *pool) argument
1209 svn_dirent_basename(const char *dirent, apr_pool_t *pool) argument
1236 svn_dirent_split(const char **dirpath, const char **base_name, const char *dirent, apr_pool_t *pool) argument
1537 svn_dirent_is_absolute(const char *dirent) argument
1626 svn_dirent_canonicalize(const char *dirent, apr_pool_t *pool) argument
1652 svn_dirent_is_canonical(const char *dirent, apr_pool_t *scratch_pool) argument
2298 svn_uri_get_dirent_from_file_url(const char **dirent, const char *url, apr_pool_t *pool) argument
2413 svn_uri_get_file_url_from_dirent(const char **url, const char *dirent, apr_pool_t *pool) argument
[all...]
/freebsd-10.0-release/sbin/fsck_msdosfs/
H A Ddir.c446 struct dosDirEntry dirent, *d; local
605 memset(&dirent, 0, sizeof dirent);
611 dirent.flags = p[11];
617 dirent.name[j] = p[j];
618 dirent.name[8] = '\0';
619 for (k = 7; k >= 0 && dirent.name[k] == ' '; k--)
620 dirent.name[k] = '\0';
621 if (dirent.name[k] != '\0')
623 if (dirent
[all...]
/freebsd-10.0-release/crypto/openssh/
H A Dsftp-glob.c25 #include <dirent.h>
63 static struct dirent *
66 /* Solaris needs sizeof(dirent) + path length (see below) */
67 static char buf[sizeof(struct dirent) + MAXPATHLEN];
68 struct dirent *ret = (struct dirent *)buf;
79 * Solaris defines dirent->d_name as a one byte array and expects
90 * Idiot glibc uses extensions to struct dirent for readdir with
140 pglob->gl_readdir = (struct dirent *(*)(void *))fudge_readdir;
/freebsd-10.0-release/contrib/subversion/subversion/svn/
H A Dlist-cmd.c58 const svn_dirent_t *dirent,
83 if (dirent->kind == svn_node_file)
124 apr_time_exp_lt(&exp_time, dirent->time);
125 if (apr_time_sec(now - dirent->time) < (365 * 86400 / 2)
126 && apr_time_sec(dirent->time - now) < (365 * 86400 / 2))
145 dirent->size);
149 dirent->created_rev,
150 dirent->last_author ? dirent->last_author : " ? ",
152 (dirent
55 print_dirent(void *baton, const char *path, const svn_dirent_t *dirent, const svn_lock_t *lock, const char *abs_path, const char *external_parent_url, const char *external_target, apr_pool_t *scratch_pool) argument
168 print_dirent_xml(void *baton, const char *path, const svn_dirent_t *dirent, const svn_lock_t *lock, const char *abs_path, const char *external_parent_url, const char *external_target, apr_pool_t *scratch_pool) argument
[all...]
/freebsd-10.0-release/contrib/groff/src/libs/libgroff/
H A Dmaxfilename.cpp41 #include <dirent.h>
H A Dmaxpathname.cpp43 # include <dirent.h>
/freebsd-10.0-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;

Completed in 294 milliseconds

1234567891011>>