Lines Matching defs:adp
544 struct dirent ad, *adp;
567 adp = &ad;
645 memset(adp, 0, sizeof *adp);
646 adp->d_fileno = ap->block;
652 adp->d_type = DT_REG;
655 adp->d_type = DT_DIR;
658 adp->d_type = DT_LNK;
661 adp->d_type = DT_UNKNOWN;
664 adp->d_namlen = strlen(ap->name);
665 memcpy(adp->d_name, ap->name, adp->d_namlen);
666 adp->d_reclen = _DIRENT_SIZE(adp);
669 if (adp->d_reclen > uio->uio_resid) {
674 error = uiomove(adp, adp->d_reclen, uio);