/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | rewinddir.c | 43 rewinddir(DIR *dirp) argument 45 (void) seekdir(dirp, 0L);
|
H A D | closedir.c | 46 closedir(DIR *dirp) argument 48 private_DIR *pdirp = (private_DIR *)(uintptr_t)dirp; 49 int fd = dirp->d_fd; 52 lfree(dirp->d_buf, DIRBUF);
|
H A D | opendir.c | 49 DIR *dirp; local 54 if ((dirp = fdopendir(fd)) == NULL) 56 return (dirp);
|
H A D | fdopendir.c | 50 DIR *dirp = (DIR *)pdirp; local 69 dirp->d_buf = buf; 70 dirp->d_fd = fd; 71 dirp->d_loc = 0; 72 dirp->d_size = 0; 74 return (dirp); 87 dirfd(DIR *dirp) argument 89 return (dirp->d_fd);
|
H A D | readdir.c | 59 readdir(DIR *dirp) argument 64 if (dirp->d_size != 0) { 65 dp = (dirent_t *)(uintptr_t)&dirp->d_buf[dirp->d_loc]; 66 saveloc = dirp->d_loc; /* save for possible EOF */ 67 dirp->d_loc += (int)dp->d_reclen; 69 if (dirp->d_loc >= dirp->d_size) 70 dirp->d_loc = dirp 90 readdir64(DIR *dirp) argument 131 readdir(DIR *dirp) argument [all...] |
H A D | telldir.c | 52 telldir(DIR *dirp) argument 54 private_DIR *pdirp = (private_DIR *)dirp; 60 if (lseek(dirp->d_fd, 0, SEEK_CUR) != 0) { 61 dp = (dirent_t *)(uintptr_t)(&dirp->d_buf[dirp->d_loc]); 76 telldir64(DIR *dirp) argument 78 private_DIR *pdirp = (private_DIR *)(uintptr_t)dirp; 84 if (lseek64(dirp->d_fd, 0, SEEK_CUR) != 0) { 85 dp64 = (dirent64_t *)(uintptr_t)(&dirp->d_buf[dirp 103 telldir(DIR *dirp) argument [all...] |
H A D | readdir_r.c | 55 readdir_r(DIR *dirp, dirent_t *entry, dirent_t **result) argument 57 private_DIR *pdirp = (private_DIR *)dirp; 62 if (dirp->d_size != 0) { 63 dp = (dirent_t *)(uintptr_t)&dirp->d_buf[dirp->d_loc]; 64 saveloc = dirp->d_loc; /* save for possible EOF */ 65 dirp->d_loc += (int)dp->d_reclen; 68 if (dirp->d_loc >= dirp->d_size) 69 dirp 100 readdir64_r(DIR *dirp, dirent64_t *entry, dirent64_t **result) argument 153 __posix_readdir_r(DIR *dirp, dirent_t *entry, dirent_t **result) argument 189 readdir_r(DIR *dirp, dirent_t *entry) argument [all...] |
H A D | seekdir.c | 50 seekdir(DIR *dirp, long loc) argument 52 private_DIR *pdirp = (private_DIR *)dirp; 57 if (lseek(dirp->d_fd, 0, SEEK_CUR) != 0) { 58 dp = (dirent_t *)(uintptr_t)&dirp->d_buf[dirp->d_loc]; 62 dirp->d_loc = 0; 63 (void) lseek(dirp->d_fd, loc, SEEK_SET); 64 dirp->d_size = 0; 70 ((dirent_t *)(uintptr_t)&dirp->d_buf[0])->d_off = loc; 83 seekdir64(DIR *dirp, off64_ argument 119 seekdir(DIR *dirp, long loc) argument [all...] |
H A D | closefrom.c | 57 DIR *dirp; local 67 if ((dirp = opendir("/proc/self/fd")) != NULL) { 72 while ((dp = readdir64(dirp)) != NULL) { 75 (i = atoi(dp->d_name)) == dirfd(dirp)) 83 (void) closedir(dirp);
|
H A D | scandir.c | 79 DIR *dirp; local 82 if ((dirp = opendir(dirname)) == NULL) 84 if (fstat64(dirp->d_fd, &stb) < 0) 100 while ((d = readdir64(dirp)) != NULL) { 135 (void) closedir(dirp); 149 (void) closedir(dirp); 164 DIR *dirp; local 167 if ((dirp = opendir(dirname)) == NULL) 169 if (fstat64(dirp->d_fd, &stb) < 0) 185 while ((d = readdir(dirp)) ! [all...] |
H A D | _xftw.c | 149 DIR *dirp; local 189 dirp = nocdopendir(path, vp); 197 if (dirp == NULL) 203 (void) closedir(dirp); 212 while (direntp = readdir(dirp)) { 223 (void) closedir(dirp); 239 here = telldir(dirp); 240 if (closedir(dirp) < 0) { 254 (void) closedir(dirp); 262 dirp 285 char *dirp, *token, *ptr; local 333 char *dirp, *token, *ptr; local [all...] |
/osnet-11/usr/src/cmd/sendmail/db/os/ |
H A D | os_dir.c | 53 DIR *dirp; local 60 if ((dirp = opendir(dir)) == NULL) 63 for (arraysz = cnt = 0; (dp = readdir(dirp)) != NULL; ++cnt) { 73 (void)closedir(dirp);
|
/osnet-11/usr/src/lib/sun_fc/common/ |
H A D | HBANPIVPort.cc | 76 struct dirent **dirpp, *dirp; local 89 dirp = (struct dirent *) dir_buf; 90 dirpp = &dirp; 91 while ((readdir_r(dp, dirp, dirpp)) == 0 && dirp != NULL) { 92 if (strcmp(dirp->d_name, ".") == 0 || 93 strcmp(dirp->d_name, "..") == 0) { 96 sprintf(node, "%s/%s", dir, dirp->d_name); 102 cfg_path += dirp->d_name;
|
H A D | HBAPort.cc | 213 struct dirent **dirpp, *dirp; local 226 dirp = (struct dirent *) dir_buf; 227 dirpp = &dirp; 228 while ((readdir_r(dp, dirp, dirpp)) == 0 && dirp != NULL) { 229 if (strcmp(dirp->d_name, ".") == 0 || 230 strcmp(dirp->d_name, "..") == 0) { 233 sprintf(node, "%s/%s", dir, dirp->d_name); 239 cfg_path += dirp->d_name;
|
/osnet-11/usr/src/lib/libshare/common/ |
H A D | libshare_plugin.c | 153 DIR *dirp; local 187 dirp = opendir(plugin_root); 188 if (dirp == NULL) { 194 while ((dp = readdir64(dirp)) != NULL) { 209 (void) closedir(dirp);
|
/osnet-11/usr/src/lib/libsmedia/library/common/ |
H A D | l_misc.c | 199 DIR *dirp; local 217 dirp = opendir(PATHNAME); 218 if (dirp == NULL) { 224 while ((dp = readdir(dirp)) != NULL) { 271 (void) closedir(dirp);
|
/osnet-11/usr/src/lib/libnisdb/yptol/ |
H A D | shim_ancil.c | 311 DIR *dirp; local 338 if ((dirp = opendir(domdir)) == NULL) { 342 for (dp = readdir(dirp); dp != NULL; 343 dp = readdir(dirp)) { 386 (void) closedir(dirp); 398 (void) closedir(dirp); 404 (void) closedir(dirp);
|
/osnet-11/usr/src/lib/libnwam/common/ |
H A D | libnwam_events.c | 224 DIR *dirp; local 232 if ((dirp = opendir(NWAM_EVENT_MSG_DIR)) == NULL) { 240 while ((dp = readdir(dirp)) != NULL) { 301 (void) closedir(dirp); 329 DIR *dirp; local 335 if ((dirp = opendir(NWAM_EVENT_MSG_DIR)) == NULL) { 344 while ((dp = readdir(dirp)) != NULL) {
|
/osnet-11/usr/src/lib/libcmdutils/common/ |
H A D | process_xattrs.c | 88 DIR *dirp = NULL; local 116 if ((dirp = fdopendir(tmpfd)) == NULL) { 120 while ((dp = readdir(dirp)) != NULL) { 234 if (dirp) 235 (void) closedir(dirp);
|
/osnet-11/usr/src/lib/scsi/libsmp/common/ |
H A D | smp_plugin.c | 268 DIR *dirp; local 283 if ((dirp = opendir(path)) != NULL) { 284 while ((dp = readdir64(dirp)) != NULL) { 294 (void) closedir(dirp); 299 (void) closedir(dirp);
|
/osnet-11/usr/src/lib/sun_sas/common/ |
H A D | devlink_disco.c | 157 struct dirent *newdirp, *dirp; local 183 dirp = (struct dirent *)malloc(dirplen); 184 if (dirp == NULL) { 189 while ((readdir_r(dp, dirp, &newdirp)) == 0 && newdirp != NULL) { 190 if (strcmp(dirp->d_name, ".") == 0 || 191 strcmp(dirp->d_name, "..") == 0) { 195 * set to another pointer since dirp->d_name length is 1 198 charptr = dirp->d_name; 215 S_FREE(dirp); 223 S_FREE(dirp); [all...] |
/osnet-11/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_fs.c | 193 DIR *dirp; local 195 if ((dirp = opendir("/usr/lib/fs")) != NULL) { 198 while ((dp = readdir(dirp)) != NULL) { 247 (void) closedir(dirp); 253 (void) closedir(dirp); 259 (void) closedir(dirp); 275 (void) closedir(dirp);
|
/osnet-11/usr/src/lib/libfstyp/common/ |
H A D | libfstyp.c | 431 DIR *dirp; local 441 if ((dirp = opendir(h->libfs_dir)) == NULL) { 447 while ((readdir_r(dirp, dp, &dp) == 0) && (dp != NULL)) { 458 (void) closedir(dirp);
|
/osnet-11/usr/src/lib/fm/libdiagcode/common/ |
H A D | diagcode_test.c | 407 DIR *dirp; local 420 if ((dirp = opendir(argv[1])) == NULL) { 425 while ((dp = readdir(dirp)) != NULL) { 438 (void) closedir(dirp);
|
/osnet-11/usr/src/grub/grub2/util/ |
H A D | deviceiter.c | 527 DIR *dirp; local 535 if ((dirp = opendir (GRUB_UTIL_SOLARIS_DISK_DIR)) == NULL) 538 while ((dep = readdir (dirp)) != NULL) 558 closedir(dirp); 564 closedir(dirp); 568 if ((dirp = opendir ("/dev/rlofi")) == NULL) 571 while ((dep = readdir (dirp)) != NULL) 584 closedir(dirp); 590 closedir(dirp); 594 if ((dirp [all...] |