Lines Matching refs:cdir
922 struct dir *cdir = NULL;
933 if ((cdir = dircache_search_by_name(vol, dir, path->u_name, strlen(path->u_name))) != NULL) {
937 ntohl(cdir->d_did), cfrombstr(dir->d_fullpath));
938 if (dir_remove(vol, cdir) != 0) {
977 if ((cdir = dir_new(path->m_name,
988 if ((dircache_add(vol, cdir)) != 0) { /* 4 */
1000 if (!cdir && fullpath)
1002 if (cdir)
1003 dir_free(cdir);
1004 cdir = NULL;
1009 ntohl(cdir->d_did), cfrombstr(cdir->d_fullpath));
1012 return(cdir);
1173 struct dir *cdir;
1280 cdir = vol->v_root;
1341 cdir = dircache_search_by_name(vol, dir, ret.u_name, unamelen); /* 14 */
1342 if (cdir == NULL) {
1344 if ((cdir = dir_add(vol, dir, &ret, unamelen)) == NULL) { /* 15 */
1353 if (movecwd( vol, cdir ) < 0 ) { /* 16 */
1355 cfrombstr(curdir->d_fullpath), cfrombstr(cdir->d_fullpath), strerror(errno));
1357 return path_from_dir(vol, cdir, &ret);
1361 dir = cdir;