Home
last modified time | relevance | path

Searched refs:nread (Results 1 – 2 of 2) sorted by relevance

/device/htc/flounder/sensor_hub/libsensors/
DInputEventReader.cpp51 const ssize_t nread = read(fd, mHead, mFreeSpace * sizeof(cw_event)); in fill() local
52 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()
/device/asus/flo/conn_init/
Dwfc_util_fctrl.c588 int nread; in wfc_util_ffile_check_copy() local
619 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()