Lines Matching defs:amt_read
224 size_t amt_read;
256 amt_read = fread(((char *)&hdr) + sizeof hdr.magic, 1,
258 if (amt_read != sizeof(hdr) - sizeof(hdr.magic)) {
265 sizeof(hdr), amt_read);
523 size_t amt_read;
533 amt_read = fread(&sf_hdr, 1, ps->hdrsize, fp);
534 if (amt_read != ps->hdrsize) {
540 if (amt_read != 0) {
543 ps->hdrsize, amt_read);
687 amt_read = fread(p->buffer, 1, p->snapshot, fp);
688 if (amt_read != (bpf_u_int32)p->snapshot) {
703 p->snapshot, amt_read);
712 bytes_read = amt_read;
717 amt_read = fread(discard_buf, 1, bytes_to_read, fp);
718 bytes_read += amt_read;
719 if (amt_read != bytes_to_read) {
731 bytes_to_discard -= amt_read;
770 amt_read = fread(p->buffer, 1, hdr->caplen, fp);
771 if (amt_read != hdr->caplen) {
779 hdr->caplen, amt_read);
1010 size_t amt_read;
1067 amt_read = fread(&ph, 1, sizeof (ph), f);
1068 if (amt_read != sizeof (ph)) {
1074 } else if (feof(f) && amt_read > 0) {
1102 if (amt_read > 0) {