Searched refs:preread_count (Results 1 – 1 of 1) sorted by relevance
141 static uint8_t preread_count; in pmsgRead() local163 preread_count = 0; in pmsgRead()169 if (preread_count < sizeof(buf)) { in pmsgRead()174 ret = TEMP_FAILURE_RETRY(read(fd, &buf.p.magic + preread_count, sizeof(buf) - preread_count)); in pmsgRead()178 preread_count += ret; in pmsgRead()180 if (preread_count != sizeof(buf)) { in pmsgRead()181 return preread_count ? -EIO : -EAGAIN; in pmsgRead()190 memmove(&buf.p.magic, &buf.p.magic + 1, --preread_count); in pmsgRead()191 } while (preread_count && (buf.p.magic != LOGGER_MAGIC)); in pmsgRead()194 preread_count = 0; in pmsgRead()