Home
last modified time | relevance | path

Searched refs:direntp (Results 1 – 11 of 11) sorted by relevance

/titanic_50/usr/src/cmd/lp/lib/lp/
H A Dnext.c62 struct dirent *direntp; local
72 direntp = Readdir(dirp);
74 direntp
76 STREQU(direntp->d_name, ".")
77 || STREQU(direntp->d_name, "..")
78 || !is(parent, direntp->d_name, what)
82 if (direntp) {
83 if (!(ret = Strdup(direntp->d_name)))
/titanic_50/usr/src/lib/libc/port/gen/
H A D_xftw.c146 struct dirent *direntp; in fwalk() local
206 while (direntp = readdir(dirp)) { in fwalk()
209 if (strcmp(direntp->d_name, ".") == 0 || in fwalk()
210 strcmp(direntp->d_name, "..") == 0) in fwalk()
215 subpath = malloc(n + strlen(direntp->d_name) + 2); in fwalk()
226 (void) strlcpy(&subpath[n], direntp->d_name, MAXNAMELEN); in fwalk()
H A Dttyname.c484 struct dirent64 *direntp; in srch_dir() local
521 while ((!found) && ((direntp = readdir64(dirp)) != NULL)) { in srch_dir()
525 if (direntp->d_name[0] == '.' && in srch_dir()
526 (strcmp(direntp->d_name, ".") == 0 || in srch_dir()
527 strcmp(direntp->d_name, "..") == 0)) in srch_dir()
534 if ((path_len + strlen(direntp->d_name) + 2) > MAX_DEV_PATH) in srch_dir()
537 (void) strcpy(last_comp, direntp->d_name); in srch_dir()
/titanic_50/usr/src/cmd/lastcomm/
H A Dlc_utils.c154 struct dirent *direntp; in srch_dir() local
164 while ((direntp = readdir(dirp)) != NULL) { in srch_dir()
167 (void) strcat(file_name, direntp->d_name); in srch_dir()
/titanic_50/usr/src/cmd/locale/
H A Dlocale.c607 struct dirent *direntp; in print_all_info() local
641 while ((direntp = readdir(dirp)) != NULL) { in print_all_info()
644 (void) strcpy(p, direntp->d_name); in print_all_info()
651 (direntp->d_name[0] != '.') && in print_all_info()
653 strcmp(direntp->d_name, "POSIX") != 0) { in print_all_info()
654 check_loc(direntp->d_name); in print_all_info()
658 direntp->d_name[0] != '.') { in print_all_info()
/titanic_50/usr/src/lib/libprtdiag/common/
H A Dio.c437 struct dirent *direntp; in display_ffb() local
455 while ((direntp = readdir(dirp)) != NULL) { in display_ffb()
456 if (strstr(direntp->d_name, device) != NULL) { in display_ffb()
458 direntp->d_name); in display_ffb()
/titanic_50/usr/src/lib/libprtdiag_psr/sparc/javelin/common/
H A Djavelin.c707 struct dirent *direntp; in display_ffb() local
722 while ((direntp = readdir(dirp)) != NULL) { in display_ffb()
723 if (strstr(direntp->d_name, device) != NULL) { in display_ffb()
725 direntp->d_name); in display_ffb()
/titanic_50/usr/src/lib/libprtdiag_psr/sparc/tazmo/common/
H A Dtazmo.c710 struct dirent *direntp; in display_ffb() local
725 while ((direntp = readdir(dirp)) != NULL) { in display_ffb()
726 if (strstr(direntp->d_name, device) != NULL) { in display_ffb()
728 direntp->d_name); in display_ffb()
/titanic_50/usr/src/lib/libprtdiag_psr/sparc/sunfire/common/
H A Dsunfire.c758 struct dirent *direntp; in display_ffb() local
773 while ((direntp = readdir(dirp)) != NULL) { in display_ffb()
774 if (strstr(direntp->d_name, device) != NULL) { in display_ffb()
776 direntp->d_name); in display_ffb()
/titanic_50/usr/src/cmd/prstat/
H A Dprstat.c908 dirent_t *direntp; in prstat_scandir() local
922 for (rewinddir(procdir); (direntp = readdir(procdir)); ) { in prstat_scandir()
923 pidstr = direntp->d_name; in prstat_scandir()
/titanic_50/usr/src/cmd/picl/plugins/common/devtree/
H A Dpicldevtree.c2128 struct dirent *direntp; in open_ffb_device() local
2166 while ((direntp = readdir(dirp)) != NULL) { in open_ffb_device()
2167 if (strstr(direntp->d_name, devp) != NULL) { in open_ffb_device()
2169 (void) strcat(dev_path, direntp->d_name); in open_ffb_device()