Home
last modified time | relevance | path

Searched refs:amt_read (Results 1 – 11 of 11) 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()
402 size_t amt_read; in pcap_next_packet() local
412 amt_read = fread(&sf_hdr, 1, ps->hdrsize, fp); in pcap_next_packet()
413 if (amt_read != ps->hdrsize) { in pcap_next_packet()
420 if (amt_read != 0) { in pcap_next_packet()
424 (unsigned long)amt_read); in pcap_next_packet()
521 amt_read = fread((char *)tp, 1, hdr->caplen, fp); in pcap_next_packet()
[all …]
Dsf-pcap-ng.c234 size_t amt_read; in read_bytes() local
236 amt_read = fread(buf, 1, bytes_to_read, fp); in read_bytes()
237 if (amt_read != bytes_to_read) { in read_bytes()
243 if (amt_read == 0 && !fail_on_eof) in read_bytes()
248 (unsigned long)amt_read); in read_bytes()
648 size_t amt_read; in pcap_ng_check_header() local
693 amt_read = fread(&total_length, 1, sizeof(total_length), fp); in pcap_ng_check_header()
694 if (amt_read < sizeof(total_length)) { in pcap_ng_check_header()
709 amt_read = fread(&byte_order_magic, 1, sizeof(byte_order_magic), fp); in pcap_ng_check_header()
710 if (amt_read < sizeof(byte_order_magic)) { in pcap_ng_check_header()
Dsavefile.c266 size_t amt_read; in pcap_fopen_offline_with_tstamp_precision() local
277 amt_read = fread((char *)&magic, 1, sizeof(magic), fp); in pcap_fopen_offline_with_tstamp_precision()
278 if (amt_read != sizeof(magic)) { in pcap_fopen_offline_with_tstamp_precision()
287 (unsigned long)amt_read); in pcap_fopen_offline_with_tstamp_precision()
/external/chromium_org/ipc/
Dipc_send_fds_test.cc71 ssize_t amt_read = read(fd, &buf, 1); in HandleFD() local
72 ASSERT_EQ(amt_read, 1); in HandleFD()
/external/chromium_org/content/common/mac/
Dfont_loader.mm143 int32 amt_read = base::ReadFile(font_path,
146 if (amt_read != font_file_size_32) {
/external/chromium_org/third_party/icu/source/test/intltest/
Ditspoof.cpp389 int32_t amt_read = fread(fileBuf.getAlias(), 1, fileSize, f.getAlias()); in testConfData() local
390 TEST_ASSERT_EQ(amt_read, fileSize); in testConfData()
392 if (amt_read != fileSize || fileSize <=0) { in testConfData()
Drbbitst.cpp1452 int amt_read; in ReadAndConvertFile() local
1458 amt_read = fread(fileBuf, 1, fileSize, f); in ReadAndConvertFile()
1459 if (amt_read != fileSize || fileSize <= 0) { in ReadAndConvertFile()
Dregextst.cpp3820 int32_t amt_read; in ReadAndConvertFile() local
3826 amt_read = fread(fileBuf, 1, fileSize, f); in ReadAndConvertFile()
3827 if (amt_read != fileSize || fileSize <= 0) { in ReadAndConvertFile()
/external/icu/icu4c/source/test/intltest/
Ditspoof.cpp389 int32_t amt_read = fread(fileBuf.getAlias(), 1, fileSize, f.getAlias()); in testConfData() local
390 TEST_ASSERT_EQ(amt_read, fileSize); in testConfData()
392 if (amt_read != fileSize || fileSize <=0) { in testConfData()
Drbbitst.cpp1452 int amt_read; in ReadAndConvertFile() local
1458 amt_read = fread(fileBuf, 1, fileSize, f); in ReadAndConvertFile()
1459 if (amt_read != fileSize || fileSize <= 0) { in ReadAndConvertFile()
Dregextst.cpp3825 int32_t amt_read; in ReadAndConvertFile() local
3831 amt_read = fread(fileBuf, 1, fileSize, f); in ReadAndConvertFile()
3832 if (amt_read != fileSize || fileSize <= 0) { in ReadAndConvertFile()