Searched refs:nread (Results 1 – 7 of 7) sorted by relevance
/system/core/libnetutils/ |
D | packet.c | 158 int nread; in receive_packet() local 170 nread = read(s, &packet, sizeof(packet)); in receive_packet() 171 if (nread < 0) { in receive_packet() 180 if (nread < (int)(sizeof(struct iphdr) + sizeof(struct udphdr))) { in receive_packet() 182 ALOGD("Packet is too small (%d) to be a UDP datagram", nread); in receive_packet() 188 } else if (nread < ntohs(packet.ip.tot_len)) { in receive_packet() 190 ALOGD("Packet was truncated (read %d, needed %d)", nread, ntohs(packet.ip.tot_len)); in receive_packet() 228 ((int)(nread - sizeof(struct iphdr) - sizeof(struct udphdr)) < dhcp_size) || in receive_packet() 237 nread = ntohs(packet.ip.tot_len); in receive_packet() 245 sum = finish_sum(checksum(&packet, nread, 0)); in receive_packet()
|
/system/connectivity/wificond/tests/ |
D | shell_utils.cpp | 90 ssize_t nread; in RunShellCommand() local 98 nread = TEMP_FAILURE_RETRY(read(shell_output.fd, buf, sizeof(buf))); in RunShellCommand() 99 if (output && nread > 0) { in RunShellCommand() 100 output->append(buf, nread); in RunShellCommand() 102 } while (nread > 0); in RunShellCommand()
|
/system/extras/simpleperf/ |
D | workload.cpp | 128 ssize_t nread = TEMP_FAILURE_RETRY(read(start_signal_fd, &start_signal, 1)); in ChildProcessFn() local 129 if (nread == 1 && start_signal == 1) { in ChildProcessFn() 151 PLOG(ERROR) << "child process failed to receive start_signal, nread = " << nread; in ChildProcessFn() 164 ssize_t nread = TEMP_FAILURE_RETRY(read(exec_child_fd_, &exec_child_failed, 1)); in Start() local 165 if (nread != 0) { in Start() 166 if (nread == -1) { in Start()
|
D | cmd_api.cpp | 183 ssize_t nread = TEMP_FAILURE_RETRY(read(in_fd, buffer.data(), buffer.size())); in CollectRecordingData() local 184 if (nread < 0) { in CollectRecordingData() 188 if (nread == 0) { in CollectRecordingData() 191 result = zip_writer.WriteBytes(buffer.data(), nread); in CollectRecordingData()
|
/system/core/libmemunreachable/ |
D | ThreadCapture.cpp | 127 ssize_t nread; in ListThreads() local 129 nread = syscall(SYS_getdents64, fd.get(), dirent_buf, sizeof(dirent_buf)); in ListThreads() 130 if (nread < 0) { in ListThreads() 133 } else if (nread > 0) { in ListThreads() 135 while (off < nread) { in ListThreads() 146 } while (nread != 0); in ListThreads()
|
/system/extras/libfec/ |
D | fec_process.cpp | 116 ssize_t nread = 0; in process() local 128 nread += p->rc; in process() 138 return nread; in process()
|
/system/vold/bench/ |
D | benchgen.py | 174 nread = 0 variable 224 nread += 1 241 nread += 1 270 nread += 1 337 print >>bench, """return "r%d:w%d:s%d";""" % (nread, nwrite, nsync)
|