Lines Matching refs:cwd
787 * are currently in '/proc/self/fd', then '/proc/self/cwd' will compare
1294 * which is the behavior of {cwd/root}. Trying to resolve this path
1295 * will result in /proc/pid/cwd instead of whatever the real working
1469 refstr_t *cwd, *oldcwd;
1475 * Check to see if there is a cached version of the cwd. If so, lookup
1479 if ((cwd = PTOU(p)->u_cwd) != NULL)
1480 refstr_hold(cwd);
1489 if (cwd != NULL)
1490 refstr_rele(cwd);
1495 if (cwd) {
1496 value = refstr_value(cwd);
1498 refstr_rele(cwd);
1514 refstr_rele(cwd);
1518 refstr_rele(cwd);
1528 refstr_rele(cwd);
1537 * Store the new cwd and replace the existing cached copy.
1540 cwd = refstr_alloc(buf);
1542 cwd = NULL;
1546 PTOU(p)->u_cwd = cwd;