Lines Matching refs:amt_read
158 size_t amt_read;
190 amt_read = fread(((char *)&hdr) + sizeof hdr.magic, 1,
192 if (amt_read != sizeof(hdr) - sizeof(hdr.magic)) {
199 sizeof(hdr), amt_read);
447 size_t amt_read;
457 amt_read = fread(&sf_hdr, 1, ps->hdrsize, fp);
458 if (amt_read != ps->hdrsize) {
464 if (amt_read != 0) {
467 ps->hdrsize, amt_read);
611 amt_read = fread(p->buffer, 1, p->snapshot, fp);
612 if (amt_read != (bpf_u_int32)p->snapshot) {
627 p->snapshot, amt_read);
636 bytes_read = amt_read;
641 amt_read = fread(discard_buf, 1, bytes_to_read, fp);
642 bytes_read += amt_read;
643 if (amt_read != bytes_to_read) {
655 bytes_to_discard -= amt_read;
694 amt_read = fread(p->buffer, 1, hdr->caplen, fp);
695 if (amt_read != hdr->caplen) {
703 hdr->caplen, amt_read);
893 size_t amt_read;
950 amt_read = fread(&ph, 1, sizeof (ph), f);
951 if (amt_read != sizeof (ph)) {
957 } else if (feof(f) && amt_read > 0) {
985 if (amt_read > 0) {