• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/ufs/ufs/

Lines Matching defs:dp

741 	struct inode *ip, *xp, *dp;
806 dp = VTOI(fdvp);
815 oldparent = dp->i_number;
824 dp = VTOI(tdvp);
853 if (oldparent != dp->i_number)
854 newparent = dp->i_number;
860 if ( (error = ufs_checkpath(ip, dp, vfs_context_ucred(tcnp->cn_context))) )
867 dp = VTOI(tdvp);
881 if (dp->i_dev != ip->i_dev)
889 if ((nlink_t)dp->i_nlink >= LINK_MAX) {
893 dp->i_nlink++;
894 dp->i_flag |= IN_CHANGE;
900 dp->i_nlink--;
901 dp->i_flag |= IN_CHANGE;
908 if (xp->i_dev != dp->i_dev || xp->i_dev != ip->i_dev)
921 if (!ufs_dirempty(xp, dp->i_number, vfs_context_ucred(tcnp->cn_context)) ||
935 if ( (error = ufs_dirrewrite(dp, ip, tcnp)) )
944 dp->i_nlink--;
945 dp->i_flag |= IN_CHANGE;
984 dp = VTOI(fdvp);
1016 dp->i_nlink--;
1017 dp->i_flag |= IN_CHANGE;
1106 register struct inode *ip, *dp;
1123 dp = VTOI(dvp);
1124 if ((nlink_t)dp->i_nlink >= LINK_MAX) {
1166 dp->i_nlink++;
1167 dp->i_flag |= IN_CHANGE;
1178 dirtemplate.dotdot_ino = dp->i_number;
1183 dp->i_nlink--;
1184 dp->i_flag |= IN_CHANGE;
1196 dp->i_nlink--;
1197 dp->i_flag |= IN_CHANGE;
1236 struct inode *ip, *dp;
1241 dp = VTOI(dvp);
1245 if (dp == ip)
1273 !ufs_dirempty(ip, dp->i_number, vfs_context_ucred(cnp->cn_context))) {
1285 dp->i_nlink--;
1286 dp->i_flag |= IN_CHANGE;
1386 struct dirent *dp, *edp;
1409 for (dp = (struct dirent *)dirbuf; dp < edp; ) {
1410 tmp = dp->d_namlen;
1411 dp->d_namlen = dp->d_type;
1412 dp->d_type = tmp;
1413 if (dp->d_reclen > 0) {
1414 dp = (struct dirent *)
1415 ((char *)dp + dp->d_reclen);
1421 if (dp >= edp)
1466 struct dirent *dp, *edp;
1501 for (dp = (struct dirent *)dirbuf; dp < edp; ) {
1513 tmp = dp->d_namlen;
1514 dp->d_namlen = dp->d_type;
1515 dp->d_type = tmp;
1519 xdp->d_reclen = EXT_DIRENT_LEN(dp->d_namlen);
1523 xdp->d_ino = dp->d_ino;
1524 xdp->d_namlen = dp->d_namlen;
1525 xdp->d_type = dp->d_type;
1527 bcopy(dp->d_name, xdp->d_name, dp->d_namlen + 1);
1528 off += dp->d_reclen;
1532 off -= dp->d_reclen;
1537 if (dp->d_reclen > 0) {
1538 dp = (struct dirent *)
1539 ((char *)dp + dp->d_reclen);