Lines Matching defs:curdir
102 char curdir[MAXPATHLEN];
114 canon("/", curdir, sizeof(curdir));
126 getcmd(curdir, cmd, name, sizeof(name), &arglist);
154 (void) strcpy(curdir, name);
214 printlist(name, curdir);
222 if (curdir[1] == '\0')
225 fprintf(stderr, "%s\n", &curdir[1]);
296 * there are no arguments on the command line, then "curdir"
301 * "curdir" is prepended to it. Finally "canon" is called to
305 getcmd(char *curdir, char *cmd, char *name, size_t size, struct arglist *ap)
339 * If no argument, use curdir as the default.
342 (void) strncpy(name, curdir, size);
366 snprintf(output, sizeof(output), "%s/%s", curdir, rawname);