Lines Matching defs:rootlen
630 static int rootlen = 0; /* length of rootpath */
760 if ((buildpath = (char *)malloc(strlen(G.filename)+rootlen+1))
763 if ((rootlen > 0) && !renamed_fullpath) {
765 end = buildpath + rootlen;
786 rootlen = 0;
789 if (rootlen > 0) /* rootpath was already set, nothing to do */
791 if ((rootlen = strlen(pathcomp)) > 0) {
794 if ((tmproot = (char *)malloc(rootlen+2)) == (char *)NULL) {
795 rootlen = 0;
799 if (tmproot[rootlen-1] == TANDEM_DELIMITER) {
800 tmproot[--rootlen] = '\0';
802 if (rootlen > 0 && (stat(tmproot, &G.statbuf) ||
807 rootlen = 0;
818 rootlen = 0;
824 tmproot[rootlen++] = TANDEM_DELIMITER;
825 tmproot[rootlen] = '\0';
826 if ((rootpath = (char *)realloc(tmproot, rootlen+1)) == NULL) {
828 rootlen = 0;
843 if (rootlen > 0) {
845 rootlen = 0;