Searched refs:amt_read (Results 1 – 7 of 7) sorted by relevance
/external/libpcap/ |
D | sf-pcap.c | 142 size_t amt_read; in pcap_check_header() local 171 amt_read = fread(((char *)&hdr) + sizeof hdr.magic, 1, in pcap_check_header() 173 if (amt_read != sizeof(hdr) - sizeof(hdr.magic)) { in pcap_check_header() 181 (unsigned long)amt_read); in pcap_check_header() 434 size_t amt_read; in pcap_next_packet() local 444 amt_read = fread(&sf_hdr, 1, ps->hdrsize, fp); in pcap_next_packet() 445 if (amt_read != ps->hdrsize) { in pcap_next_packet() 451 if (amt_read != 0) { in pcap_next_packet() 455 (unsigned long)amt_read); in pcap_next_packet() 599 amt_read = fread(p->buffer, 1, p->snapshot, fp); in pcap_next_packet() [all …]
|
D | sf-pcapng.c | 253 size_t amt_read; in read_bytes() local 255 amt_read = fread(buf, 1, bytes_to_read, fp); in read_bytes() 256 if (amt_read != bytes_to_read) { in read_bytes() 261 if (amt_read == 0 && !fail_on_eof) in read_bytes() 266 (unsigned long)amt_read); in read_bytes() 742 size_t amt_read; in pcap_ng_check_header() local 787 amt_read = fread(&total_length, 1, sizeof(total_length), fp); in pcap_ng_check_header() 788 if (amt_read < sizeof(total_length)) { in pcap_ng_check_header() 802 amt_read = fread(&byte_order_magic, 1, sizeof(byte_order_magic), fp); in pcap_ng_check_header() 803 if (amt_read < sizeof(byte_order_magic)) { in pcap_ng_check_header()
|
D | savefile.c | 350 size_t amt_read; in pcap_fopen_offline_with_tstamp_precision() local 361 amt_read = fread((char *)&magic, 1, sizeof(magic), fp); in pcap_fopen_offline_with_tstamp_precision() 362 if (amt_read != sizeof(magic)) { in pcap_fopen_offline_with_tstamp_precision() 370 (unsigned long)amt_read); in pcap_fopen_offline_with_tstamp_precision()
|
/external/libchrome/ipc/ |
D | ipc_send_fds_test.cc | 93 ssize_t amt_read = read(fd, &buf, 1); in HandleFD() local 94 ASSERT_EQ(amt_read, 1); in HandleFD()
|
/external/icu/icu4c/source/test/intltest/ |
D | itspoof.cpp | 361 int32_t amt_read = static_cast<int32_t>(fread(fileBuf.getAlias(), 1, fileSize, f.getAlias())); in testConfData() local 362 TEST_ASSERT_EQ(amt_read, fileSize); in testConfData() 364 if (amt_read != fileSize || fileSize <=0) { in testConfData()
|
D | rbbitst.cpp | 1183 int amt_read; in ReadAndConvertFile() local 1189 amt_read = static_cast<int>(fread(fileBuf, 1, fileSize, f)); in ReadAndConvertFile() 1190 if (amt_read != fileSize || fileSize <= 0) { in ReadAndConvertFile()
|
D | regextst.cpp | 3895 int32_t amt_read; in ReadAndConvertFile() local 3901 amt_read = static_cast<int32_t>(fread(fileBuf, 1, fileSize, f)); in ReadAndConvertFile() 3902 if (amt_read != fileSize || fileSize <= 0) { in ReadAndConvertFile()
|