Searched refs:preread_count (Results 1 – 1 of 1) sorted by relevance
39 static uint8_t preread_count; in PmsgRead() local60 preread_count = 0; in PmsgRead()66 if (preread_count < sizeof(buf)) { in PmsgRead()71 ret = TEMP_FAILURE_RETRY(read(fd, &buf.p.magic + preread_count, sizeof(buf) - preread_count)); in PmsgRead()75 preread_count += ret; in PmsgRead()77 if (preread_count != sizeof(buf)) { in PmsgRead()78 return preread_count ? -EIO : -EAGAIN; in PmsgRead()87 memmove(&buf.p.magic, &buf.p.magic + 1, --preread_count); in PmsgRead()88 } while (preread_count && (buf.p.magic != LOGGER_MAGIC)); in PmsgRead()91 preread_count = 0; in PmsgRead()