Lines Matching refs:dcwd
96 dp = dcwd; in dodirs()
105 } while ((dp = dp->di_prev) != dcwd); in dodirs()
145 dcwd->di_prev->di_next = dcwd->di_next; in dochngd()
146 dcwd->di_next->di_prev = dcwd->di_prev; in dochngd()
153 dp->di_next = dcwd->di_next; in dochngd()
154 dp->di_prev = dcwd->di_prev; in dochngd()
158 dfree(dcwd); in dochngd()
313 if ((cwdlen = (strlen_(dcwd->di_name))) == 1) { in dfollow()
314 if (*dcwd->di_name == '/') /* root */ in dfollow()
329 xfree(dcwd->di_name); in dfollow()
330 dcwd->di_name = savestr(p); in dfollow()
346 for (p = dp, q = dcwd->di_name; *p++ = *q++; ) in dfollow()
377 if ((dp = dcwd->di_prev) == &dhead) in dopushd()
379 if (dp == dcwd) in dopushd()
385 dp->di_next = dcwd->di_next; in dopushd()
386 dp->di_prev = dcwd; in dopushd()
387 dcwd->di_next->di_prev = dp; in dopushd()
388 dcwd->di_next = dp; in dopushd()
399 dp->di_prev = dcwd; in dopushd()
400 dp->di_next = dcwd->di_next; in dopushd()
401 dcwd->di_next = dp; in dopushd()
429 for (dp = dcwd; i != 0; i--) { in dfind()
432 if (dp == dcwd) in dfind()
452 dp = dcwd; in dopopd()
457 if (dp == dcwd) { in dopopd()
465 if (dp == dcwd) in dopopd()
728 dcwd = dp; in dnewcwd()
739 set(S_cwd, savestr(dcwd->di_name)); in dnewcwd()
741 local_setenv(S_PWD, dcwd->di_name); in dnewcwd()