Home | History | Annotate | Download | only in netd

Lines Matching refs:buffer

31     char buffer[4096];
36 while ((sz = read(parent_read, &buffer[b], sizeof(buffer) - 1 - b)) > 0) {
41 if (buffer[b] == '\r') {
42 buffer[b] = '\0';
43 } else if (buffer[b] == '\n') {
44 buffer[b] = '\0';
46 LOG(LOG_INFO, tag, "%s", &buffer[a]);
51 if (a == 0 && b == sizeof(buffer) - 1) {
52 // buffer is full, flush
53 buffer[b] = '\0';
54 LOG(LOG_INFO, tag, "%s", &buffer[a]);
59 memmove(buffer, &buffer[a], b);
69 buffer[b] = '\0';
70 LOG(LOG_INFO, tag, "%s", &buffer[a]);