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

1234567891011>>

/freebsd-11-stable/contrib/mdocml/
H A Dtest-dirent-namlen.c2 #include <dirent.h>
7 struct dirent entry;
/freebsd-11-stable/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-11-stable/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-11-stable/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-11-stable/lib/libc/gen/
H A Dscandir.c40 * struct dirent (through namelist). Returns -1 if there were any errors.
44 #include <dirent.h>
64 * entry. This requires the amount of space in struct dirent without the
70 ((sizeof(struct dirent) - sizeof(dp)->d_name) + \
75 scandir_b(const char *dirname, struct dirent ***namelist,
76 DECLARE_BLOCK(int, select, const struct dirent *),
77 DECLARE_BLOCK(int, dcomp, const struct dirent **, const struct dirent **))
79 scandir(const char *dirname, struct dirent ***namelist,
80 int (*select)(const struct dirent *), in
[all...]
H A Ddirfd.c35 #include <dirent.h>
H A Dreaddir.c38 #include <dirent.h>
51 struct dirent *
54 struct dirent *dp;
76 dp = (struct dirent *)(dirp->dd_buf + dirp->dd_loc);
91 struct dirent *
94 struct dirent *dp;
107 readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result)
109 struct dirent *dp;
H A Dseekdir.c38 #include <dirent.h>
/freebsd-11-stable/include/
H A Ddirent.h29 * @(#)dirent.h 8.2 (Berkeley) 7/28/94
42 #include <sys/dirent.h>
86 int alphasort(const struct dirent **, const struct dirent **);
97 struct dirent *
100 int readdir_r(DIR *, struct dirent *, struct dirent **);
104 int scandir(const char *, struct dirent ***,
105 int (*)(const struct dirent *), int (*)(const struct dirent **,
[all...]
/freebsd-11-stable/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
30 * $FreeBSD: stable/11/sys/sys/dirent.h 341074 2018-11-27 16:51:18Z markj $
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
85 * the directory entry. This returns the amount of space in struct dirent
93 ((sizeof (struct dirent) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3))
103 dirent_terminate(struct dirent *dp)
107 dp->d_reclen - (__offsetof(struct dirent, d_name) + dp->d_namlen));
/freebsd-11-stable/contrib/libarchive/tar/
H A Dbsdtar_platform.h74 * Include "dirent.h" (or its equivalent on several different platforms).
77 * In particular, FreeBSD includes d_namlen in its dirent structure,
82 # include <dirent.h>
84 # define DIRENT_NAMLEN(dirent) (dirent)->d_namlen
86 # define DIRENT_NAMLEN(dirent) strlen((dirent)->d_name)
89 # define dirent direct macro
90 # define DIRENT_NAMLEN(dirent) (dirent)
[all...]
/freebsd-11-stable/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-11-stable/contrib/subversion/subversion/libsvn_repos/
H A Dlist.c45 fill_dirent(svn_dirent_t *dirent,
52 if (dirent->kind == svn_node_file)
53 SVN_ERR(svn_fs_file_length(&(dirent->size), root, path, scratch_pool));
55 dirent->size = SVN_INVALID_FILESIZE;
57 SVN_ERR(svn_fs_node_has_props(&dirent->has_props, root, path,
60 SVN_ERR(svn_repos_get_committed_info(&(dirent->created_rev),
62 &(dirent->last_author),
65 SVN_ERR(svn_time_from_cstring(&(dirent->time), datestring,
72 svn_repos_stat(svn_dirent_t **dirent,
84 *dirent
44 fill_dirent(svn_dirent_t *dirent, svn_fs_root_t *root, const char *path, apr_pool_t *scratch_pool) argument
71 svn_repos_stat(svn_dirent_t **dirent, svn_fs_root_t *root, const char *path, apr_pool_t *pool) argument
126 svn_dirent_t dirent = { 0 }; local
143 svn_fs_dirent_t *dirent; member in struct:filtered_dirent_t
228 svn_fs_dirent_t *dirent; local
[all...]
/freebsd-11-stable/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-11-stable/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-11-stable/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-11-stable/stand/libsa/
H A Dreaddir.c33 struct dirent *
36 static struct dirent dir; /* XXX not thread safe */
/freebsd-11-stable/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-11-stable/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
96 * on your computer, it's a dirent.
103 * (such as a dirent or URL), it's a relpath.
126 * source -- such as from the network -- is converted to a dirent it
151 * Convert @a dirent from the local style to the canonical internal style.
156 * @warning This function may call @c abort() if the @a dirent parameter
163 svn_dirent_internal_style(const char *dirent,
167 * Convert @a dirent fro
[all...]
/freebsd-11-stable/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-11-stable/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-11-stable/contrib/subversion/subversion/libsvn_subr/
H A Ddirent_uri.c124 /* Calculates the length of the dirent absolute or non absolute root in
125 DIRENT, return 0 if dirent is not rooted */
127 dirent_root_length(const char *dirent, apr_size_t len)
130 if (len >= 2 && dirent[1] == ':' &&
131 ((dirent[0] >= 'A' && dirent[0] <= 'Z') ||
132 (dirent[0] >= 'a' && dirent[0] <= 'z')))
134 return (len > 2 && dirent[2] == '/') ? 3 : 2;
137 if (len > 2 && dirent[
126 dirent_root_length(const char *dirent, apr_size_t len) argument
169 dirent_previous_segment(const char *dirent, apr_size_t len) argument
225 dirent_is_rooted(const char *dirent) argument
896 svn_dirent_internal_style(const char *dirent, apr_pool_t *pool) argument
902 svn_dirent_internal_style_safe(const char **internal_style_dirent, const char **non_canonical_result, const char *dirent, apr_pool_t *result_pool, apr_pool_t *scratch_pool) argument
916 svn_dirent_local_style(const char *dirent, apr_pool_t *pool) argument
953 svn_dirent_is_root(const char *dirent, apr_size_t len) argument
1008 char *dirent; local
1082 char *dirent; local
1236 svn_dirent_dirname(const char *dirent, apr_pool_t *pool) argument
1249 svn_dirent_basename(const char *dirent, apr_pool_t *pool) argument
1276 svn_dirent_split(const char **dirpath, const char **base_name, const char *dirent, apr_pool_t *pool) argument
1600 svn_dirent_is_absolute(const char *dirent) argument
1753 canonicalize_dirent(const char **result, const char *dirent, apr_pool_t *pool) argument
1782 svn_dirent_canonicalize(const char *dirent, apr_pool_t *pool) argument
1795 svn_dirent_canonicalize_safe(const char **canonical_dirent, const char **non_canonical_result, const char *dirent, apr_pool_t *result_pool, apr_pool_t *scratch_pool) argument
1819 svn_dirent_is_canonical(const char *dirent, apr_pool_t *scratch_pool) argument
2472 svn_uri_get_dirent_from_file_url(const char **dirent, const char *url, apr_pool_t *pool) argument
2592 svn_uri_get_file_url_from_dirent(const char **url, const char *dirent, apr_pool_t *pool) argument
[all...]
/freebsd-11-stable/contrib/groff/src/libs/libgroff/
H A Dmaxfilename.cpp41 #include <dirent.h>
/freebsd-11-stable/sbin/fsck_msdosfs/
H A Ddir.c539 struct dosDirEntry dirent, *d; local
736 memset(&dirent, 0, sizeof dirent);
742 dirent.flags = p[11];
748 dirent.name[j] = p[j];
749 dirent.name[8] = '\0';
750 for (k = 7; k >= 0 && dirent.name[k] == ' '; k--)
751 dirent.name[k] = '\0';
752 if (k < 0 || dirent.name[k] != '\0')
754 if (dirent
[all...]

Completed in 268 milliseconds

1234567891011>>