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

/freebsd-12-stable/contrib/libpcap/
H A Dsf-pcap.c158 size_t amt_read; local
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; local
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
893 size_t amt_read; local
[all...]
H A Dsavefile.c380 size_t amt_read; local
391 amt_read = fread(&magic, 1, sizeof(magic), fp);
392 if (amt_read != sizeof(magic)) {
399 sizeof(magic), amt_read);
H A Dsf-pcapng.c258 size_t amt_read; local
260 amt_read = fread(buf, 1, bytes_to_read, fp);
261 if (amt_read != bytes_to_read) {
266 if (amt_read == 0 && !fail_on_eof)
270 bytes_to_read, amt_read);
768 size_t amt_read; local
814 amt_read = fread(&total_length, 1, sizeof(total_length), fp);
815 if (amt_read < sizeof(total_length)) {
829 amt_read = fread(&byte_order_magic, 1, sizeof(byte_order_magic), fp);
830 if (amt_read < sizeo
[all...]
/freebsd-12-stable/contrib/serf/buckets/
H A Dheaders_buckets.c59 apr_size_t amt_read; /* how much of the current state we've read */ member in struct:__anon6940
277 ctx->amt_read = 0;
306 *value = v + ctx->amt_read;
307 *len = l - ctx->amt_read;
315 ctx->amt_read = 0;
373 ctx->amt_read += requested;
/freebsd-12-stable/contrib/subversion/subversion/libsvn_subr/
H A Dstream.c1625 apr_size_t amt_read;
1637 apr_size_t left_to_read = btn->str->len - btn->amt_read;
1640 memcpy(buffer, btn->str->data + btn->amt_read, *len);
1641 btn->amt_read += *len;
1649 apr_size_t left_to_read = btn->str->len - btn->amt_read;
1652 btn->amt_read += len;
1674 stringbuf_stream_mark->pos = btn->amt_read;
1689 btn->amt_read = stringbuf_stream_mark->pos;
1692 btn->amt_read = 0;
1702 *data_available = ((btn->str->len - btn->amt_read) >
1616 apr_size_t amt_read; member in struct:stringbuf_stream_baton
1755 apr_size_t amt_read; member in struct:string_stream_baton
[all...]
H A Dio.c3819 apr_size_t amt_read = sizeof(block);
3851 err = svn_io_file_read(fh, block, &amt_read, pool);
3859 if (svn_io_is_binary_data(block, amt_read))
3810 apr_size_t amt_read = sizeof(block); local
/freebsd-12-stable/sbin/camcontrol/
H A Dcamcontrol.c4798 ssize_t amt_read; local
4802 for (amt_read = 0; amt_to_read > 0;
4803 amt_read = read(STDIN_FILENO, buf_ptr, amt_to_read)) {
4804 if (amt_read == -1) {
4809 amt_to_read -= amt_read;
4810 buf_ptr += amt_read;
7754 ssize_t amt_read; local
7758 for (amt_read = 0; amt_to_read > 0;
7759 amt_read = read(STDIN_FILENO, buf_ptr, amt_to_read)) {
7760 if (amt_read
[all...]
/freebsd-12-stable/usr.sbin/ctladm/
H A Dctladm.c985 ssize_t amt_read; local
989 for (amt_read = 0; amt_to_read > 0;
990 amt_read = read(STDIN_FILENO, buf_ptr, amt_to_read)) {
991 if (amt_read == -1) {
996 amt_to_read -= amt_read;
997 buf_ptr += amt_read;

Completed in 303 milliseconds