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

Lines Matching defs:pathcomp

156 static void maskDOSdevice   (__GPRO__ char *pathcomp);
157 static void map2fat (char *pathcomp, char **pEndFAT);
1663 char pathcomp[FILNAMSIZ]; /* path-component buffer */
1665 char *lastsemi = NULL; /* pointer to last semi-colon in pathcomp */
1667 char *lastcomma=(char *)NULL; /* pointer to last comma in pathcomp */
1670 int killed_ddot = FALSE; /* is set when skipping "../" pathcomp */
1696 pathcomp[0] = '/'; /* copy the '/' and terminate */
1697 pathcomp[1] = '\0';
1701 pp = pathcomp;
1710 /* pathcomp is ignored unless renamed_fullpath is TRUE: */
1711 if ((error = checkdir(__G__ pathcomp, INIT)) != 0) /* init path buffer */
1714 *pathcomp = '\0'; /* initialize translation buffer */
1715 pp = pathcomp; /* point to translation buffer */
1734 maskDOSdevice(__G__ pathcomp);
1735 if (strcmp(pathcomp, ".") == 0) {
1737 *pathcomp = '\0';
1738 } else if (!uO.ddotflag && strcmp(pathcomp, "..") == 0) {
1740 *pathcomp = '\0';
1744 if (*pathcomp != '\0' &&
1745 ((error = checkdir(__G__ pathcomp, APPEND_DIR))
1748 pp = pathcomp; /* reset conversion buffer for next piece */
1858 *pp = '\0'; /* done with pathcomp: terminate it */
1885 sprintf(pathcomp+strlen(pathcomp), ",%03x", (int)(ft>>8) & 0xFFF);
1889 maskDOSdevice(__G__ pathcomp);
1891 if (*pathcomp == '\0') {
1897 checkdir(__G__ pathcomp, APPEND_NAME); /* returns 1 if truncated: care? */
1939 static void maskDOSdevice(__G__ pathcomp)
1941 char *pathcomp;
1960 if (zstat(pathcomp, &G.statbuf) == 0) {
1963 FnFilter1(pathcomp), G.statbuf.st_mode, G.statbuf.st_mode));
1966 FnFilter1(pathcomp)));
1969 if (zstat(pathcomp, &G.statbuf) == 0 && S_ISCHR(G.statbuf.st_mode)) {
1972 /* pathcomp contains a name of a DOS character device (builtin or
1976 for (i = strlen(pathcomp) + 1; i > 0; --i)
1977 pathcomp[i] = pathcomp[i - 1];
1978 pathcomp[0] = '_';
1990 static void map2fat(pathcomp, pEndFAT)
1991 char *pathcomp, **pEndFAT;
1993 char *ppc = pathcomp; /* variable pointer to pathcomp */
2022 ++ppc; /* skip over to pathcomp's end */
2094 int checkdir(__G__ pathcomp, flag)
2096 char *pathcomp;
2128 char *p = pathcomp;
2131 Trace((stderr, "appending dir segment [%s]\n", FnFilter1(pathcomp)));
2135 p = pathcomp;
2139 map2fat(pathcomp, &G.endFAT); /* map into FAT fn, update endFAT */
2247 GETPATH: copy full FAT path to the string pointed at by pathcomp (want
2257 strcpy(pathcomp, G.buildpathFAT);
2270 char *p = pathcomp;
2273 Trace((stderr, "appending filename [%s]\n", FnFilter1(pathcomp)));
2299 p = pathcomp;
2304 map2fat(pathcomp, &G.endFAT);
2350 if (G.renamed_fullpath && pathcomp[1] == ':')
2351 *G.buildpathHPFS = (char)ToLower(*pathcomp);
2374 } else if (G.renamed_fullpath) /* pathcomp = valid data */
2375 strcpy(G.buildpathHPFS, pathcomp);
2404 FnFilter1(pathcomp)));
2405 if (pathcomp == NULL) {
2411 if ((G.rootlen = strlen(pathcomp)) > 0) {
2419 strcpy(tmproot, pathcomp);