Home
last modified time | relevance | path

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

1234567891011

/titanic_50/usr/src/head/
H A Ddirent.h105 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 …]
/titanic_50/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 …]
/titanic_50/usr/src/test/libc-tests/cfg/symbols/
H A Ddirent_h.cfg17 # 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 …]
/titanic_50/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
/titanic_50/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
/titanic_50/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()
/titanic_50/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> */
/titanic_50/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> */
/titanic_50/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);
/titanic_50/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;
/titanic_50/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 …]
/titanic_50/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];
/titanic_50/usr/src/cmd/ssh/sftp/
H A Dsftp-glob.c64 static struct dirent *
69 char buf_chars[sizeof (struct dirent) + MAXPATHLEN]; in fudge_readdir()
70 struct dirent buf_dirent; in fudge_readdir()
72 struct dirent *ret = &buf.buf_dirent; in fudge_readdir()
144 pglob->gl_readdir = (struct dirent *(*)(void *))fudge_readdir; in remote_glob()
/titanic_50/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 …]
/titanic_50/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 +
/titanic_50/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 …]
/titanic_50/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()
/titanic_50/usr/src/uts/common/sys/
H A Ddirent.h44 typedef struct dirent { struct
119 #define dirent64 dirent
124 extern int getdents(int, struct dirent *, size_t);
/titanic_50/usr/src/cmd/picl/plugins/sun4v/mdesc/
H A Ddisk_discovery.c219 struct dirent *dirent; in device_get_disk_name_from_dir() local
235 while ((dirent = readdir(dir)) != NULL) { in device_get_disk_name_from_dir()
237 "%s/%s", basedir, dirent->d_name); in device_get_disk_name_from_dir()
248 ptr = strdup(dirent->d_name); in device_get_disk_name_from_dir()
/titanic_50/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
/titanic_50/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
/titanic_50/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
/titanic_50/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

1234567891011