Searched refs:amt_read (Results 1 - 5 of 5) sorted by relevance

/freebsd-current/contrib/libpcap/
H A Dsf-pcap.c163 size_t amt_read; local
195 amt_read = fread(((char *)&hdr) + sizeof hdr.magic, 1,
197 if (amt_read != sizeof(hdr) - sizeof(hdr.magic)) {
204 sizeof(hdr), amt_read);
451 size_t amt_read; local
461 amt_read = fread(&sf_hdr, 1, ps->hdrsize, fp);
462 if (amt_read != ps->hdrsize) {
468 if (amt_read != 0) {
471 ps->hdrsize, amt_read);
615 amt_read
932 size_t amt_read; local
[all...]
H A Dsavefile.c487 size_t amt_read; local
511 amt_read = fread(&magic, 1, sizeof(magic), fp);
512 if (amt_read != sizeof(magic)) {
519 sizeof(magic), amt_read);
H A Dsf-pcapng.c261 size_t amt_read; local
263 amt_read = fread(buf, 1, bytes_to_read, fp);
264 if (amt_read != bytes_to_read) {
269 if (amt_read == 0 && !fail_on_eof)
273 bytes_to_read, amt_read);
774 size_t amt_read; local
820 amt_read = fread(&total_length, 1, sizeof(total_length), fp);
821 if (amt_read < sizeof(total_length)) {
835 amt_read = fread(&byte_order_magic, 1, sizeof(byte_order_magic), fp);
836 if (amt_read < sizeo
[all...]
/freebsd-current/sbin/camcontrol/
H A Dcamcontrol.c4856 ssize_t amt_read; local
4860 for (amt_read = 0; amt_to_read > 0;
4861 amt_read = read(STDIN_FILENO, buf_ptr, amt_to_read)) {
4862 if (amt_read == -1) {
4867 amt_to_read -= amt_read;
4868 buf_ptr += amt_read;
7810 ssize_t amt_read; local
7814 for (amt_read = 0; amt_to_read > 0;
7815 amt_read = read(STDIN_FILENO, buf_ptr, amt_to_read)) {
7816 if (amt_read
[all...]
/freebsd-current/usr.sbin/ctladm/
H A Dctladm.c1016 ssize_t amt_read; local
1020 for (amt_read = 0; amt_to_read > 0;
1021 amt_read = read(STDIN_FILENO, buf_ptr, amt_to_read)) {
1022 if (amt_read == -1) {
1027 amt_to_read -= amt_read;
1028 buf_ptr += amt_read;

Completed in 86 milliseconds