Lines Matching refs:dp
148 Char *dp, **pv, **opv, **av, *sav; in doexec() local
290 dp = Strspl(*pv, sav); in doexec()
292 cleanup_push(dp, xfree); in doexec()
294 Vdp = dp; in doexec()
297 texec(dp, av); in doexec()
299 cleanup_until(dp); in doexec()
302 xfree(dp); in doexec()
640 struct dirent *dp; in dohash() local
714 while ((dp = readdir(dirp)) != NULL) { in dohash()
715 if (dp->d_ino == 0) in dohash()
717 if (dp->d_name[0] == '.' && in dohash()
718 (dp->d_name[1] == '\0' || in dohash()
719 (dp->d_name[1] == '.' && dp->d_name[2] == '\0'))) in dohash()
722 nt_check_name_and_hash(is_windir, dp->d_name, i); in dohash()
731 ssize_t ext = strlen(dp->d_name) - 4; in dohash()
732 if ((ext > 0) && (strcasecmp(&dp->d_name[ext], ".exe") == 0 || in dohash()
734 strcasecmp(&dp->d_name[ext], ".bat") == 0 || in dohash()
736 strcasecmp(&dp->d_name[ext], ".com") == 0)) { in dohash()
739 hashval = hashname(str2short(dp->d_name)); in dohash()
742 dp->d_name[ext] = '\0'; in dohash()
747 hashval = hashname(str2short(dp->d_name)); in dohash()
751 hashname(str2short(dp->d_name)), i, dp->d_name); in dohash()
753 hashval = hash(hashname(str2short(dp->d_name)), i); in dohash()