Lines Matching refs:curdir
100 char curdir[MAXPATHLEN];
112 canon("/", curdir, sizeof(curdir));
124 getcmd(curdir, cmd, name, sizeof(name), &arglist);
152 (void) strcpy(curdir, name);
212 printlist(name, curdir);
220 if (curdir[1] == '\0')
223 fprintf(stderr, "%s\n", &curdir[1]);
294 * there are no arguments on the command line, then "curdir"
299 * "curdir" is prepended to it. Finally "canon" is called to
303 getcmd(char *curdir, char *cmd, char *name, size_t size, struct arglist *ap)
337 * If no argument, use curdir as the default.
340 (void) strncpy(name, curdir, size);
364 snprintf(output, sizeof(output), "%s/%s", curdir, rawname);