Lines Matching refs:rootlen
554 static int rootlen = 0; /* length of rootpath */ variable
692 if ((buildpath = (char *)malloc(strlen(G.filename)+rootlen+
695 if ((buildpath = (char *)malloc(strlen(G.filename)+rootlen+1))
699 if ((rootlen > 0) && !renamed_fullpath) {
701 end = buildpath + rootlen;
722 rootlen = 0;
725 if (rootlen > 0) /* rootpath was already set, nothing to do */
727 if ((rootlen = strlen(pathcomp)) > 0) {
730 if ((tmproot = (char *)malloc(rootlen+2)) == (char *)NULL) {
731 rootlen = 0;
735 if (tmproot[rootlen-1] == '/') {
736 tmproot[--rootlen] = '\0';
738 if (rootlen > 0 && (stat(tmproot, &G.statbuf) ||
743 rootlen = 0;
754 rootlen = 0;
760 tmproot[rootlen++] = '/';
761 tmproot[rootlen] = '\0';
762 if ((rootpath = (char *)realloc(tmproot, rootlen+1)) == NULL) {
764 rootlen = 0;
779 if (rootlen > 0) {
781 rootlen = 0;