Lines Matching refs:dp
126 int dotname(struct direct *dp);
413 struct direct *dp;
423 for (dp = dreaddir(&dirp); dp != NULL; dp = dreaddir(&dirp)) {
426 if (dp->d_ino == 0)
429 hp = lookup(dp->d_ino, 0);
433 if (dotname(dp))
436 nmlen = strlen(dp->d_name);
446 (void) strcpy(&strngtab[strngloc], dp->d_name);
454 struct direct *dp;
463 for (dp = dreaddir(&dirp); dp != NULL; dp = dreaddir(&dirp)) {
464 if (aflg == 0 && dotname(dp))
470 if (ilist[k].ino == dp->d_ino) {
480 (void) printf("%-5u\t", dp->d_ino);
482 (void) printf("/%s", dp->d_name);
483 if (lookup(dp->d_ino, 0))
495 struct direct *dp;
514 dp = (struct direct *)
516 dirp->loc += dp->d_reclen;
517 if (dp->d_ino == 0) {
520 return (dp);
525 dotname(struct direct *dp)
528 if (dp->d_name[0] == '.') {
529 if (dp->d_name[1] == 0 ||
530 (dp->d_name[1] == '.' && dp->d_name[2] == 0))