Searched refs:nread (Results 1 – 2 of 2) sorted by relevance
51 const ssize_t nread = read(fd, mHead, mFreeSpace * sizeof(cw_event)); in fill() local52 if (nread<0 || nread % sizeof(cw_event)) { in fill()54 return nread<0 ? -errno : -EINVAL; in fill()57 numEventsRead = nread / sizeof(cw_event); in fill()
588 int nread; in wfc_util_ffile_check_copy() local619 while ((nread = read(srcfd, buf, WFC_BUFFER_SIZE-1)) != 0) { in wfc_util_ffile_check_copy()620 if (nread < 0) { in wfc_util_ffile_check_copy()628 if (nread < WFC_BUFFER_SIZE) in wfc_util_ffile_check_copy()629 buf[nread] = '\0'; in wfc_util_ffile_check_copy()632 nread = WFC_BUFFER_SIZE-1; in wfc_util_ffile_check_copy()634 write(destfd, buf, nread); in wfc_util_ffile_check_copy()