• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/unzip60/amiga/

Lines Matching defs:pathcomp

324     char pathcomp[FILNAMSIZ];   /* path-component buffer */
326 char *lastsemi = NULL; /* pointer to last semi-colon in pathcomp */
327 int killed_ddot = FALSE; /* is set when skipping "../" pathcomp */
361 *pathcomp = '\0'; /* initialize translation buffer */
362 pp = pathcomp; /* point to translation buffer */
379 if (strcmp(pathcomp, ".") == 0) {
381 *pathcomp = '\0';
382 } else if (!uO.ddotflag && strcmp(pathcomp, "..") == 0) {
384 *pathcomp = '\0';
388 if (*pathcomp != '\0' &&
389 ((error = checkdir(__G__ pathcomp, APPEND_DIR))
392 pp = pathcomp; /* reset conversion buffer for next piece */
438 *pp = '\0'; /* done with pathcomp: terminate it */
449 if (*pathcomp == '\0') {
455 error = (error & ~MPN_MASK) | checkdir(__G__ pathcomp, APPEND_NAME);
473 int checkdir(__G__ pathcomp, flag)
475 char *pathcomp;
509 Trace((stderr, "appending dir segment [%s]\n", FnFilter1(pathcomp)));
510 while ((*G.build_end = *pathcomp++) != '\0')
562 GETPATH: copy full path to the string pointed at by pathcomp, and free
563 G.buildpath. Not our responsibility to worry whether pathcomp has room.
567 strcpy(pathcomp, G.buildpath);
569 FnFilter1(pathcomp)));
581 Trace((stderr, "appending filename [%s]\n", FnFilter1(pathcomp)));
582 while ((*G.build_end = *pathcomp++) != '\0') {
630 FnFilter1(pathcomp)));
631 if (pathcomp == (char *)NULL) {
637 if ((G.rootlen = strlen(pathcomp)) > 0) {
638 if (stat(pathcomp, &G.statbuf) || !S_ISDIR(G.statbuf.st_mode)) {
645 /* create the directory (could add loop here scanning pathcomp
647 if (MKDIR(pathcomp, 0777) == -1) {
650 FnFilter1(pathcomp)));
661 strcpy(G.rootpath, pathcomp);