Lines Matching refs:dirp
322 struct direct *dirp = idesc->id_dirp; in mkentry() local
328 if (dirp->d_ino != 0) in mkentry()
329 oldlen = DIRSIZ(0, dirp); in mkentry()
332 if (dirp->d_reclen - oldlen < newlen) in mkentry()
334 newent.d_reclen = dirp->d_reclen - oldlen; in mkentry()
335 dirp->d_reclen = oldlen; in mkentry()
336 dirp = (struct direct *)(((char *)dirp) + oldlen); in mkentry()
337 dirp->d_ino = idesc->id_parent; /* ino to be entered is in id_parent */ in mkentry()
338 dirp->d_reclen = newent.d_reclen; in mkentry()
340 dirp->d_type = typemap[idesc->id_parent]; in mkentry()
342 dirp->d_type = 0; in mkentry()
343 dirp->d_namlen = newent.d_namlen; in mkentry()
344 memcpy(dirp->d_name, idesc->id_name, (size_t)dirp->d_namlen + 1); in mkentry()
355 tmp = dirp->d_namlen; in mkentry()
356 dirp->d_namlen = dirp->d_type; in mkentry()
357 dirp->d_type = tmp; in mkentry()
366 struct direct *dirp = idesc->id_dirp; in chgino() local
368 if (memcmp(dirp->d_name, idesc->id_name, (int)dirp->d_namlen + 1)) in chgino()
370 dirp->d_ino = idesc->id_parent; in chgino()
372 dirp->d_type = typemap[idesc->id_parent]; in chgino()
374 dirp->d_type = 0; in chgino()
615 struct dirtemplate *dirp; in allocdir() local
620 dirp = &dirhead; in allocdir()
622 dirp = (struct dirtemplate *)&odirhead; in allocdir()
623 dirp->dot_ino = ino; in allocdir()
624 dirp->dotdot_ino = parent; in allocdir()
631 memcpy(bp->b_un.b_buf, dirp, sizeof(struct dirtemplate)); in allocdir()