Lines Matching refs:directory

22  * C Shell - directory management
25 struct directory *dfind(tchar *);
29 void dfree(struct directory *);
30 void dnewcwd(struct directory *);
32 struct directory dhead; /* "head" of loop */
37 * dinit - initialize current working directory
43 struct directory *dp;
50 * If this is a login shell, we should have a home directory. But,
51 * if we got here via 'su - <user>' where the user has no directory
54 * working directory based on the home directory.
61 printf("Warning: cannot determine current directory\n");
65 dp = (struct directory *)xcalloc(sizeof (struct directory), 1);
75 * dodirs - list all directories in directory loop
80 struct directory *dp;
129 struct directory *dp;
137 bferr("No home directory");
139 bferr("Can't change to home directory");
150 dp = (struct directory *)xcalloc(sizeof (struct directory), 1);
163 * dfollow - change to arg directory; fall back on cdpath if not valid
184 * If the directory argument has a slash in it,
185 * for example, directory/directory, then can't
192 * cdpath caching is turned off or directory argument
251 * arg directory
326 error("cannot determine current directory");
363 * dopushd - push new directory onto directory stack.
370 struct directory *dp;
380 bferr("No other directory");
396 dp = (struct directory *)xcalloc(sizeof (struct directory), 1);
408 * dfind - find a directory if specified by numeric (+n) argument
410 struct directory *
413 struct directory *dp;
439 * dopopd - pop a directory out of the directory stack
445 struct directory *dp, *p;
473 * dfree - free the directory (or keep it if it still has ref count)
476 dfree(struct directory *dp)
718 * dnewcwd - make a new directory in the loop the current one
722 dnewcwd(struct directory *dp)
734 * name the current directory. Later...