Lines Matching refs:nBytes
82 ssize_t nBytes;
127 nBytes = 0;
131 nBytes = read(thisClass->fdIO, buf, bufSize);
136 if ((nBytes > 0) && !thisClass->callbackRead(thisClass->callerContext, buf, nBytes)) {
141 if (nBytes < 0 && (errno == EINTR || errno == EAGAIN)) {
145 if (nBytes > 0) {
146 if (!thisClass->callbackRead(thisClass->callerContext, buf, nBytes)) {
153 WRITE_LOG(LOG_INFO, "FileIOOnThread fd:%d nBytes:%d errno:%d",
154 thisClass->fdIO, nBytes, errno);
161 nBytes = read(thisClass->fdIO, buf, bufSize);
163 if (nBytes < 0 && (errno == EINTR || errno == EAGAIN)) {
167 if (nBytes > 0) {
168 if (!thisClass->callbackRead(thisClass->callerContext, buf, nBytes)) {
175 WRITE_LOG(LOG_INFO, "FileIOOnThread fd:%d nBytes:%d errno:%d",
176 thisClass->fdIO, nBytes, errno);