Lines Matching defs:nread
339 int nread;
357 nread = TEMP_FAILURE_RETRY(read(srcfd, pbuf, sb.st_size));
359 if (nread < 0) {
377 while (((ilen + (iptr - pbuf)) < nread) && (iptr[ilen] != '\n'))
380 memmove(iptr + mlen, iptr + ilen + 1, nread - (iptr + ilen + 1 - pbuf));
389 TEMP_FAILURE_RETRY(write(destfd, pbuf, nread + mlen - ilen -1));
402 int nread;
434 while ((nread = TEMP_FAILURE_RETRY(read(srcfd, buf, sizeof(buf)))) != 0) {
435 if (nread < 0) {
442 TEMP_FAILURE_RETRY(write(destfd, buf, nread));
726 size_t nread = buflen - 1;
740 result = wifi_ctrl_recv(index, buf, &nread);
755 buf[nread] = '\0';
757 if (result == 0 && nread == 0) {
776 nread -= (match+1-buf);
777 memmove(buf, match+1, nread+1);
781 return nread;