/freebsd-13-stable/contrib/mandoc/ |
H A D | test-dirent-namlen.c | 2 #include <dirent.h> 7 struct dirent entry;
|
/freebsd-13-stable/contrib/netbsd-tests/usr.bin/xlint/lint1/ |
H A D | d_cvt_in_ternary.c | 9 struct filecore_direntry dirent = { 0 }; local 11 size_t bytelen = (((dirent.len)<(uio_resid))?(dirent.len):(uio_resid));
|
/freebsd-13-stable/lib/libc/gen/ |
H A D | scandir.c | 40 * struct dirent (through namelist). Returns -1 if there were any errors. 44 #include <dirent.h> 60 typedef DECLARE_BLOCK(int, select_block, const struct dirent *); 61 typedef DECLARE_BLOCK(int, dcomp_block, const struct dirent **, 62 const struct dirent **); 69 scandir_b(const char *dirname, struct dirent ***namelist, select_block select, 72 scandir(const char *dirname, struct dirent ***namelist, 73 int (*select)(const struct dirent *), int (*dcomp)(const struct dirent **, 74 const struct dirent **)) [all...] |
H A D | gen-private.h | 60 void *dd_compat_de; /* compat dirent */ 65 struct dirent; 66 int __readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
|
H A D | dirfd.c | 37 #include <dirent.h>
|
H A D | readdir.c | 38 #include <dirent.h> 51 struct dirent * 54 struct dirent *dp; 76 dp = (struct dirent *)(dirp->dd_buf + dirp->dd_loc); 94 struct dirent * 97 struct dirent *dp; 108 __readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result) 110 struct dirent *dp;
|
H A D | seekdir.c | 38 #include <dirent.h>
|
/freebsd-13-stable/include/ |
H A D | dirent.h | 31 * @(#)dirent.h 8.2 (Berkeley) 7/28/94 44 #include <sys/dirent.h> 107 int alphasort(const struct dirent **, const struct dirent **); 118 struct dirent * 121 int readdir_r(DIR *, struct dirent *, struct dirent **); 125 int scandir(const char *, struct dirent ***, 126 int (*)(const struct dirent *), int (*)(const struct dirent **, [all...] |
/freebsd-13-stable/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | dirent.h | 34 #include_next <sys/dirent.h> 36 typedef struct dirent dirent64_t; 39 #define dirent64 dirent
|
/freebsd-13-stable/sys/cddl/compat/opensolaris/sys/ |
H A D | dirent.h | 34 #include_next <sys/dirent.h> 36 typedef struct dirent dirent64_t; 39 #define dirent64 dirent
|
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cp_files/ |
H A D | cp_files.c | 7 #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-13-stable/contrib/libarchive/tar/ |
H A D | bsdtar_platform.h | 74 * 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-13-stable/contrib/subversion/subversion/libsvn_repos/ |
H A D | list.c | 45 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-13-stable/crypto/openssh/openbsd-compat/ |
H A D | bsd-closefrom.c | 34 # 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-13-stable/contrib/netbsd-tests/fs/hfs/ |
H A D | t_pathconvert.c | 7 #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-13-stable/stand/libsa/ |
H A D | readdir.c | 33 struct dirent * 36 static struct dirent dir; /* XXX not thread safe */
|
/freebsd-13-stable/contrib/subversion/subversion/include/ |
H A D | svn_dirent_uri.h | 28 * - 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-13-stable/contrib/ofed/libibumad/ |
H A D | sysfs.h | 42 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-13-stable/crypto/openssh/ |
H A D | sftp-glob.c | 25 #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-13-stable/contrib/subversion/subversion/libsvn_subr/ |
H A D | dirent_uri.c | 124 /* 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-13-stable/lib/libc/sys/ |
H A D | getdents.c | 33 #include <dirent.h>
|
/freebsd-13-stable/sbin/fsck_msdosfs/ |
H A D | dir.c | 539 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...] |
/freebsd-13-stable/sys/sys/ |
H A D | dirent.h | 31 * @(#)dirent.h 8.3 (Berkeley) 8/10/94 52 * The dirent structure defines the format of directory entries returned by 55 * A directory entry has a struct dirent at the front of it, containing its 62 * d_name avoids ABI padding at the end of dirent on LP64 architectures. 66 struct dirent { struct 115 * the directory entry. This returns the amount of space in struct dirent 123 ((__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-13-stable/contrib/ncurses/progs/ |
H A D | progs.priv.h | 72 # include <dirent.h> 73 # define NAMLEN(dirent) strlen((dirent)->d_name) 78 # define DIRENT struct dirent 81 # define DIRENT struct dirent 85 # define NAMLEN(dirent) (dirent)->d_namlen
|
/freebsd-13-stable/tools/build/cross-build/ |
H A D | closefrom.c | 38 # 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;
|