Searched refs:to_read (Results 1 - 14 of 14) sorted by relevance

/freebsd-11-stable/usr.sbin/bluetooth/bthidd/
H A Dserver.c305 int32_t len, to_read; local
318 to_read = sizeof(data.b);
321 to_read = sizeof(data.b);
326 to_read = sizeof(data.s);
330 len = read(fd, &data, to_read);
/freebsd-11-stable/contrib/subversion/subversion/libsvn_fs_x/
H A Dverify.c163 apr_size_t to_read = size > sizeof(buffer)
166 SVN_ERR(svn_fs_x__rev_file_read(file, buffer, to_read));
167 SVN_ERR(svn_checksum_update(context, buffer, to_read));
168 size -= to_read;
546 apr_size_t to_read = size > sizeof(buffer)
549 SVN_ERR(svn_fs_x__rev_file_read(file, buffer, to_read));
550 SVN_ERR(svn_checksum_update(context, buffer, to_read));
551 size -= to_read;
162 apr_size_t to_read = size > sizeof(buffer) local
545 apr_size_t to_read = size > sizeof(buffer) local
H A Dcached_data.c1979 apr_size_t to_read = (apr_size_t)len;
1980 err = get_contents_from_windows(baton, buffer, &to_read);
1981 len -= to_read;
1982 buffer += to_read;
2003 apr_size_t to_read = len > SVN__STREAM_CHUNK_SIZE
2007 err = get_contents_from_windows(baton, buffer, &to_read);
2008 len -= to_read;
2015 buffer, to_read));
2016 baton->off += to_read;
1978 apr_size_t to_read = (apr_size_t)len; local
2002 apr_size_t to_read = len > SVN__STREAM_CHUNK_SIZE local
H A Dindex.c3463 apr_size_t to_read = size > sizeof(buffer) local
3466 SVN_ERR(svn_fs_x__rev_file_read(rev_file, buffer, to_read));
3467 SVN_ERR(svn_checksum_update(context, buffer, to_read));
3468 size -= to_read;
/freebsd-11-stable/contrib/subversion/subversion/libsvn_fs_fs/
H A Dverify.c189 apr_size_t to_read = size > sizeof(buffer)
192 SVN_ERR(svn_io_file_read_full2(file, buffer, to_read, NULL, NULL,
194 SVN_ERR(svn_checksum_update(context, buffer, to_read));
195 size -= to_read;
575 apr_size_t to_read = size > sizeof(buffer)
578 SVN_ERR(svn_io_file_read_full2(file, buffer, to_read, NULL, NULL,
580 SVN_ERR(svn_checksum_update(context, buffer, to_read));
581 size -= to_read;
188 apr_size_t to_read = size > sizeof(buffer) local
574 apr_size_t to_read = size > sizeof(buffer) local
H A Dcached_data.c2058 apr_size_t to_read = (apr_size_t)len;
2059 err = get_contents_from_windows(baton, buffer, &to_read);
2060 len -= to_read;
2061 buffer += to_read;
2082 apr_size_t to_read = len > SVN__STREAM_CHUNK_SIZE
2086 err = get_contents_from_windows(baton, buffer, &to_read);
2087 len -= to_read;
2094 buffer, to_read));
2095 baton->off += to_read;
2057 apr_size_t to_read = (apr_size_t)len; local
2081 apr_size_t to_read = len > SVN__STREAM_CHUNK_SIZE local
H A Dindex.c3121 apr_size_t to_read = size > sizeof(buffer) local
3124 SVN_ERR(svn_io_file_read_full2(rev_file->file, buffer, to_read, NULL,
3126 SVN_ERR(svn_checksum_update(context, buffer, to_read));
3127 size -= to_read;
/freebsd-11-stable/contrib/gcc/
H A Dfix-header.c1083 long to_read;
1196 to_read = inf_size;
1197 while (to_read > 0)
1199 long i = read (inf_fd, inf_buffer + inf_size - to_read, to_read);
1208 inf_size -= to_read;
1211 to_read -= i;
1082 long to_read; local
/freebsd-11-stable/contrib/gdb/gdb/
H A Dui-file.c45 ui_file_read_ftype *to_read; member in struct:ui_file
206 return file->to_read (file, buf, length_buf);
249 file->to_read = read;
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_read_support_format_rar5.c2328 static void update_crc(struct rar5* rar, const uint8_t* p, size_t to_read) { argument
2345 crc32(rar->file.calculated_crc32, p, to_read);
2353 (void) blake2sp_update(&rar->file.b2state, p, to_read);
3704 size_t to_read; local
3723 to_read = rar5_min(rar->file.bytes_remaining, 64 * 1024);
3724 if(to_read == 0) {
3728 if(!read_ahead(a, to_read, &p)) {
3734 if(ARCHIVE_OK != consume(a, to_read)) {
3739 if(size) *size = to_read;
3742 rar->file.bytes_remaining -= to_read;
[all...]
H A Darchive_read_support_format_rar.c960 size_t to_read = skip; local
961 if (to_read > 32 * 1024)
962 to_read = 32 * 1024;
963 if ((h = __archive_read_ahead(a, to_read, NULL)) == NULL) {
969 crc32_val = crc32(crc32_val, (const unsigned char *)p, to_read);
970 __archive_read_consume(a, to_read);
971 skip -= to_read;
/freebsd-11-stable/contrib/subversion/subversion/libsvn_subr/
H A Dstream.c489 apr_size_t to_read = len;
491 while ((to_read > 0) && (bytes_read > 0))
493 bytes_read = sizeof(buffer) < to_read ? sizeof(buffer) : to_read;
495 to_read -= bytes_read;
1603 apr_size_t to_read = text->blocksize - 1 - text->len;
1604 apr_size_t actually_read = to_read;
1609 if (actually_read < to_read)
486 apr_size_t to_read = len; local
1594 apr_size_t to_read = text->blocksize - 1 - text->len; local
H A Dio.c4398 apr_size_t to_read = buf_size < 129 ? buf_size - 1 : 128;
4402 if (to_read == 0)
4406 SVN_ERR(svn_io_file_read_full2(file, buf, to_read,
4389 apr_size_t to_read = buf_size < 129 ? buf_size - 1 : 128; local
/freebsd-11-stable/contrib/llvm-project/lldb/source/Target/
H A DPlatform.cpp1651 const auto to_read = std::min(static_cast<uint64_t>(buffer.size()),
1654 ReadFile(src_fd, offset, &buffer[0], to_read, error);

Completed in 377 milliseconds