Home
last modified time | relevance | path

Searched refs:dirent (Results 1 – 25 of 284) sorted by relevance

12345678910>>...12

/onnv-gate/usr/src/head/
H A Ddirent.h107 extern int scandir(const char *, struct dirent *(*[]),
108 int (*)(const struct dirent *),
109 int (*)(const struct dirent **,
110 const struct dirent **));
111 extern int alphasort(const struct dirent **,
112 const struct dirent **);
114 extern struct dirent *readdir(DIR *);
144 extern struct dirent *readdir();
193 extern int readdir_r(DIR *_RESTRICT_KYWD, struct dirent *_RESTRICT_KYWD,
194 struct dirent **_RESTRICT_KYWD);
[all …]
/onnv-gate/usr/src/lib/libast/common/features/
H A Ddirent9 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 /* the native <dirent.h> */
92 #include $_nxt_dirent /* the native <dirent.h> */
102 #ifndef dirent
[all …]
/onnv-gate/usr/src/lib/libast/i386/src/lib/libast/FEATURE/
H A Ddirent3 …/gisburn/ksh93/ast_ksh_20100309/build_i386_32bit/src/lib/libast/features/dirent by iffe version 20…
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
/onnv-gate/usr/src/lib/libast/sparc/src/lib/libast/FEATURE/
H A Ddirent3 …gisburn/ksh93/ast_ksh_20100309/build_sparc_32bit/src/lib/libast/features/dirent by iffe version 20…
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
/onnv-gate/usr/src/lib/libc/port/gen/
H A Dscandir.c159 scandir(const char *dirname, struct dirent *(*namelist[]), in scandir()
160 int (*select)(const struct dirent *), in scandir() argument
161 int (*dcomp)(const struct dirent **, const struct dirent **)) in scandir() argument
163 struct dirent *d, *p, **names = NULL; in scandir()
184 names = malloc(arraysz * sizeof (struct dirent *)); in scandir()
205 struct dirent **tmp; in scandir()
214 arraysz * sizeof (struct dirent *)); in scandir()
225 qsort(names, nitems, sizeof (struct dirent *), in scandir()
245 alphasort(const struct dirent **d1, const struct dirent **d2) in alphasort()
/onnv-gate/usr/src/lib/libast/amd64/src/lib/libast/FEATURE/
H A Ddirent3 …/gisburn/ksh93/ast_ksh_20100309/build_i386_64bit/src/lib/libast/features/dirent by iffe version 20…
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> */
/onnv-gate/usr/src/lib/libast/sparcv9/src/lib/libast/FEATURE/
H A Ddirent3 …gisburn/ksh93/ast_ksh_20100309/build_sparc_64bit/src/lib/libast/features/dirent by iffe version 20…
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> */
/onnv-gate/usr/src/lib/libast/common/dir/
H A Dgetdents.c80 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 Ddirlib.h66 #ifndef dirent
67 #define dirent direct
72 #define DIRdirent dirent
76 #define dirent DIRdirent
118 #undef dirent
H A Dreaddir.c39 struct dirent*
42 register struct dirent* dp;
53 dp = (struct dirent*)((char*)dirp->dd_buf + dirp->dd_loc);
/onnv-gate/usr/src/cmd/sendmail/db/os/
H A Dos_dir.c19 # 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;
/onnv-gate/usr/src/lib/libbc/libc/gen/common/
H A Dreaddir.c35 struct dirent *
39 register struct dirent *dp;
44 dp = (struct dirent *)&dirp->dd_buf[dirp->dd_loc];
60 dp = (struct dirent *)&dirp->dd_buf[dirp->dd_loc];
/onnv-gate/usr/src/uts/common/fs/ctfs/
H A Dctfs_root.c221 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 …]
/onnv-gate/usr/src/cmd/fs.d/cachefs/cachefspack/
H A Ddocmds.c202 struct dirent64 *dirent; in do_list_item() local
240 dirent = readdir64(dir); in do_list_item()
241 if (dirent == NULL) { /* EOF */ in do_list_item()
250 if (strcmp(dirent->d_name, "..") == 0) { in do_list_item()
268 match = gmatch(dirent->d_name, eitem->i_str); in do_list_item()
279 strcpy(&statnam[glastpos], dirent->d_name); in do_list_item()
317 if (strcmp(dirent->d_name, ".") != 0) { in do_list_item()
318 do_list_item(dirent->d_name, in do_list_item()
326 dirent->d_name, in do_list_item()
339 if (strcmp(dirent->d_name, ".") != 0) { in do_list_item()
[all …]
/onnv-gate/usr/src/cmd/ssh/sftp/
H A Dsftp-glob.c66 static struct dirent *
71 char buf_chars[sizeof (struct dirent) + MAXPATHLEN]; in fudge_readdir()
72 struct dirent buf_dirent; in fudge_readdir()
74 struct dirent *ret = &buf.buf_dirent; in fudge_readdir()
146 pglob->gl_readdir = (struct dirent *(*)(void *))fudge_readdir; in remote_glob()
/onnv-gate/usr/src/cmd/ntfsprogs/
H A Dntfsls.c128 static int list_dir_entry(ntfsls_dirent * dirent, const ntfschar * name,
376 static int readdir_recursive(ntfs_inode * ni, s64 * pos, ntfsls_dirent * dirent) in readdir_recursive() argument
412 result = ntfs_readdir(ni, pos, dirent, (ntfs_filldir_t) list_dir_entry); in readdir_recursive()
462 result = readdir_recursive(subdir->ni, &pos2, dirent); in readdir_recursive()
492 static int list_dir_entry(ntfsls_dirent * dirent, const ntfschar * name, in list_dir_entry() argument
560 ni = ntfs_inode_open(dirent->vol, mref); in list_dir_entry()
644 ntfsls_dirent dirent; in main() local
674 memset(&dirent, 0, sizeof(dirent)); in main()
675 dirent.vol = vol; in main()
678 readdir_recursive(ni, &pos, &dirent); in main()
[all …]
/onnv-gate/usr/src/uts/common/fs/fd/
H A Dfdops.c232 struct dirent64 *dirent = (struct dirent64 *)bp; in fdreaddir() local
255 dirent->d_ino = (ino64_t)FDROOTINO; in fdreaddir()
256 dirent->d_name[0] = '.'; in fdreaddir()
257 dirent->d_name[1] = '\0'; in fdreaddir()
260 dirent->d_ino = (ino64_t)FDROOTINO; in fdreaddir()
261 dirent->d_name[0] = '.'; in fdreaddir()
262 dirent->d_name[1] = '.'; in fdreaddir()
263 dirent->d_name[2] = '\0'; in fdreaddir()
272 dirent->d_ino = (ino64_t)fdtoi(n); in fdreaddir()
273 numtos((ulong_t)n, dirent->d_name); in fdreaddir()
[all …]
/onnv-gate/usr/src/lib/libbc/libc/sys/common/
H A Dgetdents.c64 struct dirent *dir;
86 dir = (struct dirent *)buf;
96 dir->d_reclen = (short)((sizeof(struct dirent) - MAXNAMLEN +
102 dir = (struct dirent *)((char *)dir +
/onnv-gate/usr/src/lib/libtecla/common/
H A Ddireader.c73 struct dirent *file; /* The latest directory entry */
75 struct dirent *buffer; /* A buffer used by the threaded version of */
207 size = sizeof(struct dirent) + name_max; in _dr_open_dir()
212 struct dirent *buffer = (struct dirent *) (dr->buffer ? in _dr_open_dir()
/onnv-gate/usr/src/cmd/luxadm/
H A Dhotplug.c2126 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 …]
/onnv-gate/usr/src/lib/libast/i386/include/ast/
H A Dast_dirent.h88 #define _nxt_dirent <../include/dirent.h> /* include path for the native <dirent.h> */
116 #ifndef dirent
117 #define dirent dirent64 macro
/onnv-gate/usr/src/uts/common/sys/
H A Ddirent.h42 typedef struct dirent { struct
117 #define dirent64 dirent
123 extern int getdents(int, struct dirent *, size_t);
/onnv-gate/usr/src/lib/libast/i386/src/lib/libast/
H A Dast_dirent.h67 #define _nxt_dirent <../include/dirent.h> /* include path for the native <dirent.h> */
95 #ifndef dirent
96 #define dirent dirent64 macro
/onnv-gate/usr/src/lib/libast/sparc/include/ast/
H A Dast_dirent.h88 #define _nxt_dirent <../include/dirent.h> /* include path for the native <dirent.h> */
116 #ifndef dirent
117 #define dirent dirent64 macro
/onnv-gate/usr/src/lib/libast/sparc/src/lib/libast/
H A Dast_dirent.h67 #define _nxt_dirent <../include/dirent.h> /* include path for the native <dirent.h> */
95 #ifndef dirent
96 #define dirent dirent64 macro

12345678910>>...12