Searched refs:nread (Results 1 – 3 of 3) sorted by relevance
/system/core/libnetutils/ |
D | packet.c | 159 int nread; in receive_packet() local 171 nread = read(s, &packet, sizeof(packet)); in receive_packet() 172 if (nread < 0) { in receive_packet() 181 if (nread < (int)(sizeof(struct iphdr) + sizeof(struct udphdr))) { in receive_packet() 183 ALOGD("Packet is too small (%d) to be a UDP datagram", nread); in receive_packet() 189 } else if (nread < ntohs(packet.ip.tot_len)) { in receive_packet() 191 ALOGD("Packet was truncated (read %d, needed %d)", nread, ntohs(packet.ip.tot_len)); in receive_packet() 224 nread = ntohs(packet.ip.tot_len); in receive_packet() 232 sum = finish_sum(checksum(&packet, nread, 0)); in receive_packet()
|
/system/extras/simpleperf/ |
D | workload.cpp | 85 ssize_t nread = TEMP_FAILURE_RETRY(read(start_signal_fd, &start_signal, 1)); in ChildProcessFn() local 86 if (nread == 1 && start_signal == 1) { in ChildProcessFn() 98 PLOG(DEBUG) << "child process failed to receive start_signal, nread = " << nread; in ChildProcessFn() 112 ssize_t nread = TEMP_FAILURE_RETRY(read(exec_child_fd_, &exec_child_failed, 1)); in Start() local 113 if (nread != 0) { in Start()
|
/system/vold/bench/ |
D | benchgen.py | 172 nread = 0 variable 211 nread += 1 228 nread += 1 257 nread += 1 318 print >>bench, """return "r%d:w%d:s%d";""" % (nread, nwrite, nsync)
|