Lines Matching refs:b
52 int b = 0; // end index of unprocessed data in parent() local
54 while ((sz = read(parent_read, &buffer[b], sizeof(buffer) - 1 - b)) > 0) { in parent()
56 sz += b; in parent()
58 for (b = 0; b < sz; b++) { in parent()
59 if (buffer[b] == '\r') { in parent()
60 buffer[b] = '\0'; in parent()
61 } else if (buffer[b] == '\n') { in parent()
62 buffer[b] = '\0'; in parent()
64 a = b + 1; in parent()
68 if (a == 0 && b == sizeof(buffer) - 1) { in parent()
70 buffer[b] = '\0'; in parent()
72 b = 0; in parent()
73 } else if (a != b) { in parent()
75 b -= a; in parent()
76 memmove(buffer, &buffer[a], b); in parent()
80 b = 0; in parent()
85 if (a != b) { in parent()
86 buffer[b] = '\0'; in parent()