Lines Matching defs:rootlen
749 static int rootlen = 0; /* length of rootpath */
894 if ((buildpath = (char *)malloc(strlen(G.filename)+rootlen+1))
897 if ((rootlen > 0) && !renamed_fullpath) {
899 end = buildpath + rootlen;
920 rootlen = 0;
923 if (rootlen > 0) /* rootpath was already set, nothing to do */
925 if ((rootlen = strlen(pathcomp)) > 0) {
928 if ((tmproot = (char *)malloc(rootlen+2)) == (char *)NULL) {
929 rootlen = 0;
933 if (tmproot[rootlen-1] == '/') {
934 tmproot[--rootlen] = '\0';
936 if (rootlen > 0 && (SSTAT(tmproot, &G.statbuf) ||
941 rootlen = 0;
955 rootlen = 0;
961 tmproot[rootlen++] = '/';
962 tmproot[rootlen] = '\0';
963 if ((rootpath = (char *)realloc(tmproot, rootlen+1)) == NULL) {
965 rootlen = 0;
980 if (rootlen > 0) {
982 rootlen = 0;