Searched refs:nread (Results 1 - 6 of 6) sorted by relevance
/system/core/nexus/ |
H A D | SupplicantListener.cpp | 48 size_t nread = buflen - 1; local 50 if ((rc = wpa_ctrl_recv(mMonitor, buf, &nread))) { 55 buf[nread] = '\0'; 56 if (!rc && !nread) { 63 SupplicantEvent *evt = mFactory->createEvent(buf, nread);
|
H A D | Supplicant.cpp | 450 int nread; local 472 while ((nread = read(srcfd, buf, sizeof(buf))) != 0) { 473 if (nread < 0) { 480 write(destfd, buf, nread);
|
/system/core/libnetutils/ |
H A D | packet.c | 158 int nread; local 170 nread = read(s, &packet, sizeof(packet)); 171 if (nread < 0) { 180 if (nread < (int)(sizeof(struct iphdr) + sizeof(struct udphdr))) { 182 LOGD("Packet is too small (%d) to be a UDP datagram", nread); 188 } else if (nread < ntohs(packet.ip.tot_len)) { 190 LOGD("Packet was truncated (read %d, needed %d)", nread, ntohs(packet.ip.tot_len)); 223 nread = ntohs(packet.ip.tot_len); 231 sum = finish_sum(checksum(&packet, nread, 0));
|
H A D | ifc_utils.c | 290 int nread = fscanf(fp, "%63s%X%X%X%d%d%d%X%d%d%d\n", local 293 if (nread != 11) { 341 int nread = fscanf(fp, "%63s%X%X%X%d%d%d%X%d%d%d\n", local 344 if (nread != 11) {
|
/system/core/liblinenoise/ |
H A D | linenoise.c | 231 int nread; local 234 nread = read(fd,&c,1); 235 if (nread <= 0) return len;
|
/system/core/libcutils/ |
H A D | tztime.c | 363 register int nread; local 443 nread = read(fid, u.buf, toread); 444 if (close(fid) < 0 || nread <= 0) 464 if (nread - (p - u.buf) < 568 nread -= p - u.buf; 569 for (i = 0; i < nread; ++i) 577 if (doextend && nread > 2 && 578 u.buf[0] == '\n' && u.buf[nread - 1] == '\n' && 583 u.buf[nread - 1] = '\0';
|
Completed in 35 milliseconds