Lines Matching refs:ndp
495 dcvt(struct odirect *odp, struct direct *ndp)
498 (void) bzero((char *)ndp, sizeof (*ndp));
499 ndp->d_ino = odp->d_ino;
502 assert(sizeof (ndp->d_name) > sizeof (odp->d_name));
503 (void) strncpy(ndp->d_name, odp->d_name, sizeof (odp->d_name));
504 ndp->d_name[sizeof (odp->d_name)] = '\0';
506 ndp->d_namlen = strlen(ndp->d_name);
509 assert(DIRSIZ(ndp) == (ulong_t)ndp->d_reclen);
511 ndp->d_reclen = (ushort_t)DIRSIZ(ndp);