Lines Matching defs:readCount
1106 ssize_t readCount;
1116 readCount = read(sd, buff, sizeof buff);
1121 if (((char*) &pNLMsg[1] > (buff + readCount)) || // i.e. *pNLMsg extends off end of buffer
1122 ((char*) pNLMsg + pNLMsg->nlmsg_len > (buff + readCount)))
1127 readCount -= ((char*) pNLMsg - buff);
1128 memmove(buff, pNLMsg, readCount);
1132 readCount += read(sd, buff + readCount, sizeof buff - readCount);
1133 continue; // spin around and revalidate with new readCount
1152 ssize_t len = readCount - ((char*)pNLMsg - buff);
1195 ssize_t readCount;
1200 readCount = read(sd, buff, sizeof buff);
1201 if (readCount < (ssize_t) sizeof(struct ifa_msghdr))