Lines Matching refs:cdir
941 struct dir *cdir = NULL;
952 if ((cdir = dircache_search_by_name(vol, dir, path->u_name, strlen(path->u_name))) != NULL) {
956 ntohl(cdir->d_did), cfrombstr(dir->d_fullpath));
957 if (dir_remove(vol, cdir) != 0) {
996 if ((cdir = dir_new(path->m_name,
1007 if ((dircache_add(vol, cdir)) != 0) { /* 4 */
1019 if (!cdir && fullpath)
1021 if (cdir)
1022 dir_free(cdir);
1023 cdir = NULL;
1028 ntohl(cdir->d_did), cfrombstr(cdir->d_fullpath));
1031 return(cdir);
1192 struct dir *cdir;
1299 cdir = vol->v_root;
1360 cdir = dircache_search_by_name(vol, dir, ret.u_name, unamelen); /* 14 */
1361 if (cdir == NULL) {
1363 if ((cdir = dir_add(vol, dir, &ret, unamelen)) == NULL) { /* 15 */
1372 if (movecwd( vol, cdir ) < 0 ) { /* 16 */
1374 cfrombstr(curdir->d_fullpath), cfrombstr(cdir->d_fullpath), strerror(errno));
1376 return path_from_dir(vol, cdir, &ret);
1380 dir = cdir;