Lines Matching defs:curdir
104 char curdir[MAXPATHLEN];
116 canon("/", curdir, sizeof(curdir));
128 getcmd(curdir, cmd, name, sizeof(name), &arglist);
158 (void) strcpy(curdir, name);
220 printlist(name, curdir);
228 if (curdir[1] == '\0')
231 fprintf(stderr, "%s\n", &curdir[1]);
302 * there are no arguments on the command line, then "curdir"
307 * "curdir" is prepended to it. Finally "canon" is called to
311 getcmd(char *curdir, char *cmd, char *name, size_t size, struct arglist *ap)
347 * If no argument, use curdir as the default.
350 (void) strlcpy(name, curdir, size);
373 snprintf(output, sizeof(output), "%s/%s", curdir, rawname);