Lines Matching refs:directory

39  * C Shell - directory management
44 static struct directory *dfind (Char *);
48 static void dnewcwd (struct directory *, int);
50 static void dextract (struct directory *);
55 static struct directory dhead INIT_ZERO_STRUCT; /* "head" of loop */
97 * dinit - initialize current working directory
103 struct directory *dp;
134 * See if $HOME is the working directory we got and use that
167 dp = xcalloc(sizeof(struct directory), 1);
181 * Don't call set() directly cause if the directory contains ` or
229 * dodirs - list all directories in directory loop
240 struct directory *dp, *fdp;
267 struct directory *dp;
314 struct directory *d = dcwd;
387 * the current working directory.
467 * only makes sense if the directory item in buf really exists.
496 struct directory *dp;
530 dp = xcalloc(sizeof(struct directory), 1);
590 * dfollow - change to arg directory; fall back on cdpath if not valid
658 * We always want to fix the directory here
699 * dopushd - push new directory onto directory stack.
707 struct directory *dp;
723 dp = xcalloc(sizeof(struct directory), 1);
769 dp = xcalloc(sizeof(struct directory), 1);
781 * dfind - find a directory if specified by numeric (+n) argument
783 static struct directory *
786 struct directory *dp;
809 * dopopd - pop a directory out of the directory stack
817 struct directory *dp, *p = NULL;
855 * dfree - free the directory (or keep it if it still has ref count)
858 dfree(struct directory *dp)
1187 * dnewcwd - make a new directory in the loop the current one
1190 dnewcwd(struct directory *dp, int dflag)
1195 struct directory *dn;
1225 struct directory *dn, *dp;
1238 /* thread the current working directory */
1244 dp = xcalloc(sizeof(struct directory), 1);
1260 struct directory *dn;
1279 * Support routine for the stack hack. Finds nth directory in
1280 * the directory stack, or finds last directory in stack.
1285 struct directory *dp;
1313 dextract(struct directory *dp)
1361 struct directory *dp;