Lines Matching refs:toklen

65     unsigned int toklen[(sizeof(tokens)/sizeof(tokens[0]))];  in ParseFTPList()  local
76 toklen[0] = carry_buf_len; in ParseFTPList()
94 toklen[numtoks] = (&line[pos] - tokens[numtoks]); in ParseFTPList()
103 linelen_sans_wsp = &(tokens[numtoks-1][toklen[numtoks-1]]) - tokens[0]; in ParseFTPList()
209 (numtoks == 1 || (numtoks == 2 && toklen[0] == 9 && in ParseFTPList()
217 pos = toklen[0]; in ParseFTPList()
221 pos = toklen[1]; in ParseFTPList()
267 else if ((tokens[0][toklen[0]-1]) != ';') in ParseFTPList()
273 else if (toklen[1] >= 10 && memcmp(tokens[1], "%RMS-E-PRV", 10) == 0) in ParseFTPList()
281 toklen[5] < 4 || *tokens[5] != '(' || /* perms */ in ParseFTPList()
282 (tokens[5][toklen[5]-1]) != ')' )) in ParseFTPList()
284 else if ( (toklen[2] == 10 || toklen[2] == 11) && in ParseFTPList()
285 (tokens[2][toklen[2]-5]) == '-' && in ParseFTPList()
286 (tokens[2][toklen[2]-9]) == '-' && in ParseFTPList()
287 (((toklen[3]==4 || toklen[3]==5 || toklen[3]==7 || toklen[3]==8) && in ParseFTPList()
288 (tokens[3][toklen[3]-3]) == ':' ) || in ParseFTPList()
289 ((toklen[3]==10 || toklen[3]==11 ) && in ParseFTPList()
290 (tokens[3][toklen[3]-3]) == '.' ) in ParseFTPList()
321 if (*p == '[' && toklen[0] >= 4) /* CMU style */ in ParseFTPList()
328 while (lstyle && pos < toklen[0] && *p != ']') in ParseFTPList()
336 if (lstyle && pos < (toklen[0]-1)) in ParseFTPList()
348 while (lstyle && pos < toklen[0] && *p != ';') in ParseFTPList()
360 if (pos == 0 || pos == (toklen[0]-1)) in ParseFTPList()
362 for (pos++;lstyle && pos < toklen[0];pos++) in ParseFTPList()
389 for (pos = 0; lstyle && pos < (toklen[1]); pos++) in ParseFTPList()
396 for (pos = 1; lstyle && pos < (toklen[5]-1); pos++) in ParseFTPList()
417 pos = toklen[0]-1; in ParseFTPList()
424 toklen[0] = --pos; in ParseFTPList()
428 while (pos < toklen[0] && (tokens[0][pos]) != ';') in ParseFTPList()
454 while (pos < toklen[1] && (tokens[1][pos]) != '/') in ParseFTPList()
464 if (pos < toklen[1] && ( (pos<<1) > (toklen[1]-1) || in ParseFTPList()
569 if (numtoks >= 7 && (toklen[0]+toklen[1]) <= 16) in ParseFTPList()
574 if ((toklen[pos] == 1 && (*p == 'F' || *p == 'V')) || in ParseFTPList()
575 (toklen[pos] == 3 && *p == 'D' && p[1] == 'I' && p[2] == 'R')) in ParseFTPList()
577 if (toklen[pos+5] == 8 && (tokens[pos+5][2]) == ':' && in ParseFTPList()
581 if ((toklen[pos+4] == 10 && p[4] == '-' && p[7] == '-') || in ParseFTPList()
582 (toklen[pos+4] >= 7 && toklen[pos+4] <= 9 && in ParseFTPList()
606 for (pos = 0, p = tokens[0]; lstyle && pos < toklen[0]; pos++, p++) in ParseFTPList()
613 if (!(toklen[pos] == 1 && *tokens[pos] == '-')) in ParseFTPList()
615 for (p = tokens[pos]; lstyle && p<(tokens[pos]+toklen[pos]); p++) in ParseFTPList()
623 lstyle && pos < toklen[tokmarker+4]; pos++, p++) in ParseFTPList()
644 lstyle && pos < toklen[tokmarker+5]; pos++, p++) in ParseFTPList()
648 else if (*p == ':' && pos != (toklen[tokmarker+5]-3) in ParseFTPList()
649 && pos != (toklen[tokmarker+5]-6)) in ParseFTPList()
660 if (toklen[tokmarker+4] == 10) /* newstyle: YYYY-MM-DD format */ in ParseFTPList()
668 pos = toklen[tokmarker+4]; in ParseFTPList()
677 pos = toklen[tokmarker+5]; in ParseFTPList()
684 result->fe_fnlen = toklen[0]; in ParseFTPList()
688 if (toklen[tokmarker] == 3 && *p=='D' && p[1]=='I' && p[2]=='R') in ParseFTPList()
691 if ((/*newstyle*/ toklen[tokmarker+4] == 10 && tokmarker > 1) || in ParseFTPList()
692 (/*oldstyle*/ toklen[tokmarker+4] != 10 && tokmarker > 2)) in ParseFTPList()
695 p = &(tokens[0][toklen[0]]); in ParseFTPList()
699 for (pos = 0; pos < toklen[1]; pos++) in ParseFTPList()
701 result->fe_fnlen += 1 + toklen[1]; in ParseFTPList()
732 if ((numtoks >= 4) && (toklen[0] == 8 || toklen[0] == 10) && toklen[1] == 7 && in ParseFTPList()
750 if (*p != '<' || p[toklen[2]-1] != '>') in ParseFTPList()
752 for (pos = 1; (lstyle && pos < toklen[2]); pos++) in ParseFTPList()
778 if (tokens[2] + toklen[2] - line == 38) { in ParseFTPList()
783 pos = toklen[2]; in ParseFTPList()
793 if (tokens[2] - line == 24 && (toklen[2] == 5 || toklen[2] == 10) && in ParseFTPList()
883 p = &(line[toklen[0]]); in ParseFTPList()
885 if (numtoks >= 4 && toklen[0] <= 18 && isdigit(*tokens[0]) && in ParseFTPList()
886 (linelen - toklen[0]) >= (53-18) && in ParseFTPList()
900 for (pos = 1; lstyle && pos < toklen[0]; pos++) in ParseFTPList()
913 p = &(line[toklen[0]]); in ParseFTPList()
934 pos = toklen[0]; in ParseFTPList()
999 if (toklen[0] == 1 || (tokens[0][1]) == '[') in ParseFTPList()
1003 pos = toklen[0]-1; in ParseFTPList()
1008 pos = toklen[1]; in ParseFTPList()
1019 if (toklen[0] == 10) in ParseFTPList()
1024 else if ((toklen[0] == 10 || toklen[0] == 11) in ParseFTPList()
1051 && toklen[pos+1] == 3 && isalpha(*tokens[pos+1]) && in ParseFTPList()
1055 (toklen[pos+2] == 1 || in ParseFTPList()
1056 (toklen[pos+2] == 2 && isdigit(tokens[pos+2][1]))) in ParseFTPList()
1057 && toklen[pos+3] >= 4 && isdigit(*tokens[pos+3]) in ParseFTPList()
1059 && (toklen[pos+3] <= 5 || ( in ParseFTPList()
1060 (toklen[pos+3] == 7 || toklen[pos+3] == 8) && in ParseFTPList()
1061 (tokens[pos+3][toklen[pos+3]-3]) == ':')) in ParseFTPList()
1062 && isdigit(tokens[pos+3][toklen[pos+3]-2]) in ParseFTPList()
1063 && isdigit(tokens[pos+3][toklen[pos+3]-1]) in ParseFTPList()
1066 ((toklen[pos+3] == 4 || toklen[pos+3] == 5) && in ParseFTPList()
1070 || ((toklen[pos+3] == 4 || toklen[pos+3] == 7) && in ParseFTPList()
1074 || ((toklen[pos+3] == 5 || toklen[pos+3] == 8) && in ParseFTPList()
1086 for (i = 0; i < toklen[tokmarker]; i++) in ParseFTPList()
1129 pos = toklen[tokmarker]; in ParseFTPList()
1177 const char *date_end = tokens[tokmarker+3] + toklen[tokmarker+3]; in ParseFTPList()
1283 if (numtoks >= 4 && toklen[0] < 13 && in ParseFTPList()
1284 ((toklen[1] == 5 && *tokens[1] == '<') || isdigit(*tokens[1])) ) in ParseFTPList()
1287 && (toklen[2] == 8 || toklen[2] == 9) in ParseFTPList()
1290 && (toklen[3] == 4 || toklen[3] == 5) in ParseFTPList()
1291 && (tokens[3][toklen[3]-3]) == ':' in ParseFTPList()
1295 && (toklen[2] < 9 || isdigit(tokens[2][8])) in ParseFTPList()
1296 && isdigit(tokens[3][toklen[3]-1]) && isdigit(tokens[3][toklen[3]-2]) in ParseFTPList()
1297 && isdigit(tokens[3][toklen[3]-4]) && isdigit(*tokens[3]) in ParseFTPList()
1303 && toklen[2] == 3 && toklen[3] == 2 in ParseFTPList()
1304 && toklen[4] == 4 && toklen[5] == 5 in ParseFTPList()
1321 if (toklen[1] != 5 || p[0] != '<' || p[1] != 'D' || in ParseFTPList()
1324 for (pos = 0; lstyle && pos < toklen[1]; pos++) in ParseFTPList()
1340 result->fe_fnlen = toklen[0]; in ParseFTPList()
1347 pos = toklen[1]; in ParseFTPList()
1355 if (toklen[2] == 3) /* Chameleon */ in ParseFTPList()
1386 result->fe_time.tm_min = atoi(&(tokens[pos][toklen[pos]-2])); in ParseFTPList()
1443 linelen >= 2 && toklen[numtoks-1] != 1) in ParseFTPList()
1473 pos = toklen[1]-1; /* and is 'as-is' (may contain whitespace) */ in ParseFTPList()
1486 while (pos < numtoks && (tokens[pos]+toklen[pos]) < (&line[23])) in ParseFTPList()
1489 if ((tokens[pos]+toklen[pos]) == (&line[23])) in ParseFTPList()
1497 if (toklen[tokmarker] != 1 || in ParseFTPList()
1498 (tokens[tokmarker-1][toklen[tokmarker-1]-1]) != '/') in ParseFTPList()
1503 for (pos = 0; lstyle && pos < toklen[tokmarker]; pos++) in ParseFTPList()
1513 p < &(tokens[tokmarker-1][toklen[tokmarker-1]]); p++) in ParseFTPList()
1547 p = &(tokens[tokmarker-1][toklen[tokmarker-1]]); in ParseFTPList()
1564 pos = toklen[tokmarker]; in ParseFTPList()
1572 (&(tokens[numtoks-1][toklen[numtoks-1]]) - in ParseFTPList()
1577 pos = toklen[pos]; in ParseFTPList()
1594 && (toklen[pos] == 1 || in ParseFTPList()
1595 (toklen[pos] == 2 && isdigit(tokens[pos][1]))) in ParseFTPList()
1596 && toklen[month_num] == 3 in ParseFTPList()
1650 if (toklen[pos] == 2 && *p == '-' && p[1] == '>') in ParseFTPList()
1652 p = &(tokens[numtoks-1][toklen[numtoks-1]]); in ParseFTPList()