Lines Matching defs:rootlen
550 static int rootlen = 0; /* length of rootpath */
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;
721 rootlen = 0;
724 if (rootlen > 0) /* rootpath was already set, nothing to do */
726 if ((rootlen = strlen(pathcomp)) > 0) {
729 if ((tmproot = (char *)malloc(rootlen+2)) == (char *)NULL) {
730 rootlen = 0;
734 if (tmproot[rootlen-1] == '/') {
735 tmproot[--rootlen] = '\0';
737 if (rootlen > 0 && (stat(tmproot, &G.statbuf) ||
742 rootlen = 0;
753 rootlen = 0;
759 tmproot[rootlen++] = '/';
760 tmproot[rootlen] = '\0';
761 if ((rootpath = (char *)realloc(tmproot, rootlen+1)) == NULL) {
763 rootlen = 0;
778 if (rootlen > 0) {
780 rootlen = 0;