Lines Matching refs:readCount
1686 ssize_t readCount;
1696 readCount = read(sd, buff, sizeof buff);
1701 if (((char*) &pNLMsg[1] > (buff + readCount)) || // i.e. *pNLMsg extends off end of buffer
1702 ((char*) pNLMsg + pNLMsg->nlmsg_len > (buff + readCount)))
1707 readCount -= ((char*) pNLMsg - buff);
1708 memmove(buff, pNLMsg, readCount);
1712 readCount += read(sd, buff + readCount, sizeof buff - readCount);
1713 continue; // spin around and revalidate with new readCount
1732 ssize_t len = readCount - ((char*)pNLMsg - buff);
1775 ssize_t readCount;
1780 readCount = read(sd, buff, sizeof buff);
1781 if (readCount < (ssize_t) sizeof(struct ifa_msghdr))