/illumos-gate/usr/src/head/ |
H A D | dirent.h | 105 extern int scandir(const char *, struct dirent *(*[]), 106 int (*)(const struct dirent *), 107 int (*)(const struct dirent **, 108 const struct dirent **)); 109 extern int alphasort(const struct dirent **, 110 const struct dirent **); 112 extern struct dirent *readdir(DIR *); 164 extern int readdir_r(DIR *_RESTRICT_KYWD, struct dirent *_RESTRICT_KYWD, 165 struct dirent **_RESTRICT_KYWD); 169 struct dirent *_RESTRICT_KYWD, struct dirent **_RESTRICT_KYWD); [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/ |
H A D | dirent | 9 hdr dirent,ndir 11 nxt dirent 17 #include <dirent.h> 29 * <dirent.h> for systems with no opendir() 43 struct dirent 60 extern struct dirent* readdir(DIR*); 71 * <dirent.h> for [fl]stat64 and off64_t with sizeof(ino64_t)==4 76 #include ${_nxt_dirent-_nxt_dirent} /* the native <dirent.h> */ 92 #include ${_nxt_dirent-_nxt_dirent} /* the native <dirent.h> */ 102 #ifndef dirent [all …]
|
/illumos-gate/usr/src/test/libc-tests/cfg/symbols/ |
H A D | dirent_h.cfg | 17 # Definitions found in dirent.h 30 type | DIR * | dirent.h | XPG3+ POSIX+ 31 type | struct dirent | dirent.h | XPG3+ POSIX+ 44 dirent.h | POSIX+ XPG3+ 47 struct dirent * |\ 49 dirent.h | POSIX+ XPG3+ 54 DIR *; struct dirent *; struct dirent ** |\ 55 dirent.h | POSIX-1995+ 59 DIR * | dirent.h | POSIX+ XPG3+ 64 dirent.h | -POSIX+ XPG3+ [all …]
|
/illumos-gate/usr/src/cmd/ast/libast/i386/FEATURE/ |
H A D | dirent | 3 /* : : generated from contrib/ast/src/lib/libast/features/dirent by iffe version 2012-07-17 : : */ 66 #define _hdr_dirent 1 /* #include <dirent.h> ok */ 67 #define _nxt_dirent <../include/dirent.h> /* include path for the native <dirent.h> */ 68 #define _nxt_dirent_str "../include/dirent.h" /* include string for the native <dirent.h> */ 70 * <dirent.h> for [fl]stat64 and off64_t 75 #include <../include/dirent.h> /* the native <dirent.h> */ 88 #include <../include/dirent.h> /* the native <dirent.h> */ 95 #ifndef dirent 96 #define dirent dirent64
|
/illumos-gate/usr/src/cmd/ast/libast/sparc/FEATURE/ |
H A D | dirent | 3 /* : : generated from contrib/ast/src/lib/libast/features/dirent by iffe version 2012-07-17 : : */ 66 #define _hdr_dirent 1 /* #include <dirent.h> ok */ 67 #define _nxt_dirent <../include/dirent.h> /* include path for the native <dirent.h> */ 68 #define _nxt_dirent_str "../include/dirent.h" /* include string for the native <dirent.h> */ 70 * <dirent.h> for [fl]stat64 and off64_t 75 #include <../include/dirent.h> /* the native <dirent.h> */ 88 #include <../include/dirent.h> /* the native <dirent.h> */ 95 #ifndef dirent 96 #define dirent dirent64
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | scandir.c | 157 scandir(const char *dirname, struct dirent *(*namelist[]), in scandir() 158 int (*select)(const struct dirent *), in scandir() argument 159 int (*dcomp)(const struct dirent **, const struct dirent **)) in scandir() argument 161 struct dirent *d, *p, **names = NULL; in scandir() 182 names = malloc(arraysz * sizeof (struct dirent *)); in scandir() 203 struct dirent **tmp; in scandir() 212 arraysz * sizeof (struct dirent *)); in scandir() 223 qsort(names, nitems, sizeof (struct dirent *), in scandir() 243 alphasort(const struct dirent **d1, const struct dirent **d2) in alphasort()
|
/illumos-gate/usr/src/cmd/ast/libast/amd64/FEATURE/ |
H A D | dirent | 3 /* : : generated from contrib/ast/src/lib/libast/features/dirent by iffe version 2012-07-17 : : */ 66 #define _hdr_dirent 1 /* #include <dirent.h> ok */ 67 #define _nxt_dirent <../include/dirent.h> /* include path for the native <dirent.h> */ 68 #define _nxt_dirent_str "../include/dirent.h" /* include string for the native <dirent.h> */ 70 * <dirent.h> for systems with ok <dirent.h> 75 #include <../include/dirent.h> /* the native <dirent.h> */
|
/illumos-gate/usr/src/cmd/ast/libast/sparcv9/FEATURE/ |
H A D | dirent | 3 /* : : generated from contrib/ast/src/lib/libast/features/dirent by iffe version 2012-07-17 : : */ 66 #define _hdr_dirent 1 /* #include <dirent.h> ok */ 67 #define _nxt_dirent <../include/dirent.h> /* include path for the native <dirent.h> */ 68 #define _nxt_dirent_str "../include/dirent.h" /* include string for the native <dirent.h> */ 70 * <dirent.h> for systems with ok <dirent.h> 75 #include <../include/dirent.h> /* the native <dirent.h> */
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/dir/ |
H A D | getdents.c | 80 register struct dirent* up; /* user */ 92 up = (struct dirent*)buf; 106 … up->d_reclen = sizeof(struct dirent) - sizeof(up->d_name) + (up->d_namlen = u - up->d_name) + 1; 108 up = (struct dirent*)((char*)up + up->d_reclen); 123 register struct dirent* up; /* user */ 134 up = (struct dirent*)buf; 152 up->d_reclen = sizeof(struct dirent) - sizeof(up->d_name) + (up->d_namlen = u - tmp) + 1; 154 up = (struct dirent*)((char*)up + up->d_reclen); 158 } while (up == (struct dirent*)buf);
|
H A D | dirlib.h | 66 #ifndef dirent 67 #define dirent direct 72 #define DIRdirent dirent 76 #define dirent DIRdirent 118 #undef dirent
|
H A D | readdir.c | 39 struct dirent* 42 register struct dirent* dp; 53 dp = (struct dirent*)((char*)dirp->dd_buf + dirp->dd_loc);
|
H A D | dirstd.h | 40 struct dirent struct 57 extern struct dirent* readdir(DIR*); argument
|
/illumos-gate/usr/src/cmd/sendmail/db/os/ |
H A D | os_dir.c | 19 # define NAMLEN(dirent) strlen((dirent)->d_name) argument 21 # define dirent direct macro 22 # define NAMLEN(dirent) (dirent)->d_namlen argument 52 struct dirent *dp;
|
/illumos-gate/usr/src/uts/common/fs/ctfs/ |
H A D | ctfs_root.c | 221 gfs_dirent_t *dirent; in ctfs_mount() local 252 dirent = kmem_zalloc((ct_ntypes + 2) * sizeof (gfs_dirent_t), KM_SLEEP); in ctfs_mount() 254 dirent[i].gfse_name = (char *)ct_types[i]->ct_type_name; in ctfs_mount() 255 dirent[i].gfse_ctor = ctfs_create_tdirnode; in ctfs_mount() 256 dirent[i].gfse_flags = GFS_CACHE_VNODE; in ctfs_mount() 258 dirent[i].gfse_name = "all"; in ctfs_mount() 259 dirent[i].gfse_ctor = ctfs_create_adirnode; in ctfs_mount() 260 dirent[i].gfse_flags = GFS_CACHE_VNODE; in ctfs_mount() 261 dirent[i+1].gfse_name = NULL; in ctfs_mount() 267 vfsp, ctfs_ops_root, CTFS_INO_ROOT, dirent, ctfs_root_do_inode, in ctfs_mount() [all …]
|
/illumos-gate/usr/src/uts/common/fs/fd/ |
H A D | fdops.c | 233 struct dirent64 *dirent = (struct dirent64 *)bp; in fdreaddir() local 256 dirent->d_ino = (ino64_t)FDROOTINO; in fdreaddir() 257 dirent->d_name[0] = '.'; in fdreaddir() 258 dirent->d_name[1] = '\0'; in fdreaddir() 261 dirent->d_ino = (ino64_t)FDROOTINO; in fdreaddir() 262 dirent->d_name[0] = '.'; in fdreaddir() 263 dirent->d_name[1] = '.'; in fdreaddir() 264 dirent->d_name[2] = '\0'; in fdreaddir() 273 dirent->d_ino = (ino64_t)fdtoi(n); in fdreaddir() 274 numtos((ulong_t)n, dirent->d_name); in fdreaddir() [all …]
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | hotplug.c | 2126 struct dirent *dirent; in h_post_insert_encl() local 2142 while ((dirent = readdir(dir)) != (struct dirent *)NULL) { in h_post_insert_encl() 2143 if (strcmp(dirent->d_name, ".") == 0 || in h_post_insert_encl() 2144 strcmp(dirent->d_name, "..") == 0) in h_post_insert_encl() 2147 (void) sprintf(lname, SES_DIR"/%s", dirent->d_name); in h_post_insert_encl() 2170 dirent->d_name); in h_post_insert_encl() 2534 struct dirent *dirent; in h_remove_nodes() local 2551 while ((dirent = readdir(dir)) != (struct dirent *)NULL) { in h_remove_nodes() 2552 if (strcmp(dirent->d_name, ".") == 0 || in h_remove_nodes() 2553 strcmp(dirent->d_name, "..") == 0) { in h_remove_nodes() [all …]
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | direader.c | 71 struct dirent *file; /* The latest directory entry */ 73 struct dirent *buffer; /* A buffer used by the threaded version of */ 205 size = sizeof(struct dirent) + name_max; in _dr_open_dir() 210 struct dirent *buffer = (struct dirent *) (dr->buffer ? in _dr_open_dir()
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/ |
H A D | disk_discovery.c | 217 struct dirent *dirent; in device_get_disk_name_from_dir() local 233 while ((dirent = readdir(dir)) != NULL) { in device_get_disk_name_from_dir() 235 "%s/%s", basedir, dirent->d_name); in device_get_disk_name_from_dir() 246 ptr = strdup(dirent->d_name); in device_get_disk_name_from_dir()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | dirent.h | 44 typedef struct dirent { struct 119 #define dirent64 dirent 124 extern int getdents(int, struct dirent *, size_t);
|
/illumos-gate/usr/src/cmd/man/ |
H A D | makewhatis.c | 106 new_page_info(char *dir, struct dirent *dirent) in new_page_info() argument 115 basename_length = strlen(dirent->d_name); in new_page_info() 116 suffix = &dirent->d_name[basename_length]; in new_page_info() 117 if (asprintf(&info->filename, "%s/%s", dir, dirent->d_name) == -1) in new_page_info() 120 if (--suffix == dirent->d_name || !isalnum(*suffix)) { in new_page_info() 129 info->name = strdup(dirent->d_name); in new_page_info() 758 struct dirent **entries; in process_section() 796 select_sections(const struct dirent *entry) in select_sections() 817 struct dirent **entries; in mwpath()
|
/illumos-gate/usr/src/lib/sun_fc/common/ |
H A D | HBANPIVPort.cc | 76 struct dirent **dirpp, *dirp; in lookupControllerPath() 79 uchar_t *dir_buf = new uchar_t[sizeof (struct dirent) + MAXPATHLEN]; in lookupControllerPath() 89 dirp = (struct dirent *) dir_buf; in lookupControllerPath()
|
/illumos-gate/usr/src/stand/lib/fs/nfs/ |
H A D | getdents4.c | 85 nfs4getdents(struct nfs_file *nfp, struct dirent *dep, unsigned size) in nfs4getdents() 200 dep = (struct dirent *)((char *)dep + n); in nfs4getdents() 216 dep = (struct dirent *)((char *)dep + n); in nfs4getdents() 246 dep = (struct dirent *)((char *)dep + n); in nfs4getdents()
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | proc_fd.c | 40 struct dirent *dirent; in proc_fdwalk() local 55 while ((dirent = readdir(fddir)) != NULL) { in proc_fdwalk() 60 if (!isdigit(dirent->d_name[0])) in proc_fdwalk() 63 fd = (int)strtol(dirent->d_name, &errptr, 10); in proc_fdwalk()
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | readdir.c | 32 struct dirent * 35 static struct dirent dir; /* XXX not thread safe */ in readdirfd()
|
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | dirent.h | 50 struct dirent { struct 93 ((sizeof (struct dirent) - (MAXNAMLEN+1)) + (((dp)->d_namlen+1 + 3) &~ 3))
|