Lines Matching defs:total
59 int i, total = 0;
62 while (total<len && (i = xread(fd, buf, len-total))) {
64 error_msg("xread2line line %d, len %d total %d i %d toybox buf %s\r\n",
65 __LINE__, len, total, i, toybuf);
68 total += i;
69 if (buf[total-1] == '\n') break;
71 if (total>=len) {
72 error_msg("xread2line line %d, len %d total %d toybox buf %s\r\n",
73 __LINE__, len, total, toybuf);
85 while (total--)
86 if (buf[total]=='\r' || buf[total]=='\n') buf[total] = 0;
90 return total+1;