Lines Matching defs:readCount
1038 ssize_t readCount;
1048 readCount = read(sd, buff, sizeof buff);
1053 if (((char*) &pNLMsg[1] > (buff + readCount)) || // i.e. *pNLMsg extends off end of buffer
1054 ((char*) pNLMsg + pNLMsg->nlmsg_len > (buff + readCount)))
1059 readCount -= ((char*) pNLMsg - buff);
1060 memmove(buff, pNLMsg, readCount);
1064 readCount += read(sd, buff + readCount, sizeof buff - readCount);
1065 continue; // spin around and revalidate with new readCount
1084 ssize_t len = readCount - ((char*)pNLMsg - buff);
1127 ssize_t readCount;
1132 readCount = read(sd, buff, sizeof buff);
1133 if (readCount < (ssize_t) sizeof(struct ifa_msghdr))