Home
last modified time | relevance | path

Searched refs:preread_count (Results 1 – 1 of 1) sorted by relevance

/system/core/liblog/
Dpmsg_reader.c144 static uint8_t preread_count; in pmsgRead() local
166 preread_count = 0; in pmsgRead()
172 if (preread_count < sizeof(buf)) { in pmsgRead()
178 read(fd, &buf.p.magic + preread_count, sizeof(buf) - preread_count)); in pmsgRead()
182 preread_count += ret; in pmsgRead()
184 if (preread_count != sizeof(buf)) { in pmsgRead()
185 return preread_count ? -EIO : -EAGAIN; in pmsgRead()
195 memmove(&buf.p.magic, &buf.p.magic + 1, --preread_count); in pmsgRead()
196 } while (preread_count && (buf.p.magic != LOGGER_MAGIC)); in pmsgRead()
199 preread_count = 0; in pmsgRead()