Home
last modified time | relevance | path

Searched refs:amt_read (Results 1 – 6 of 6) sorted by relevance

/external/libpcap/
Dsf-pcap.c155 size_t amt_read; in pcap_check_header() local
184 amt_read = fread(((char *)&hdr) + sizeof hdr.magic, 1, in pcap_check_header()
186 if (amt_read != sizeof(hdr) - sizeof(hdr.magic)) { in pcap_check_header()
195 (unsigned long)amt_read); in pcap_check_header()
425 size_t amt_read; in pcap_next_packet() local
435 amt_read = fread(&sf_hdr, 1, ps->hdrsize, fp); in pcap_next_packet()
436 if (amt_read != ps->hdrsize) { in pcap_next_packet()
443 if (amt_read != 0) { in pcap_next_packet()
447 (unsigned long)amt_read); in pcap_next_packet()
545 amt_read = fread(p->buffer, 1, p->bufsize, fp); in pcap_next_packet()
[all …]
Dsf-pcap-ng.c238 size_t amt_read; in read_bytes() local
240 amt_read = fread(buf, 1, bytes_to_read, fp); in read_bytes()
241 if (amt_read != bytes_to_read) { in read_bytes()
247 if (amt_read == 0 && !fail_on_eof) in read_bytes()
252 (unsigned long)amt_read); in read_bytes()
709 size_t amt_read; in pcap_ng_check_header() local
754 amt_read = fread(&total_length, 1, sizeof(total_length), fp); in pcap_ng_check_header()
755 if (amt_read < sizeof(total_length)) { in pcap_ng_check_header()
770 amt_read = fread(&byte_order_magic, 1, sizeof(byte_order_magic), fp); in pcap_ng_check_header()
771 if (amt_read < sizeof(byte_order_magic)) { in pcap_ng_check_header()
Dsavefile.c370 size_t amt_read; in pcap_fopen_offline_with_tstamp_precision() local
381 amt_read = fread((char *)&magic, 1, sizeof(magic), fp); in pcap_fopen_offline_with_tstamp_precision()
382 if (amt_read != sizeof(magic)) { in pcap_fopen_offline_with_tstamp_precision()
391 (unsigned long)amt_read); in pcap_fopen_offline_with_tstamp_precision()
/external/icu/icu4c/source/test/intltest/
Ditspoof.cpp341 int32_t amt_read = fread(fileBuf.getAlias(), 1, fileSize, f.getAlias()); in testConfData() local
342 TEST_ASSERT_EQ(amt_read, fileSize); in testConfData()
344 if (amt_read != fileSize || fileSize <=0) { in testConfData()
Drbbitst.cpp1570 int amt_read; in ReadAndConvertFile() local
1576 amt_read = fread(fileBuf, 1, fileSize, f); in ReadAndConvertFile()
1577 if (amt_read != fileSize || fileSize <= 0) { in ReadAndConvertFile()
Dregextst.cpp3857 int32_t amt_read; in ReadAndConvertFile() local
3863 amt_read = fread(fileBuf, 1, fileSize, f); in ReadAndConvertFile()
3864 if (amt_read != fileSize || fileSize <= 0) { in ReadAndConvertFile()