/external/vboot_reference/futility/ |
dump_kernel_config_lib.c | 34 ssize_t to_read = count - nr_read; local 35 ssize_t chunk = read(fd, buf + nr_read, to_read); 60 ssize_t to_read = count - nr_skipped; local 61 if (to_read > sizeof(buf)) { 62 to_read = sizeof(buf); 64 if (read_fn(ctx, buf, to_read) != to_read) { 67 nr_skipped += to_read;
|
/bionic/tests/ |
pty_test.cpp | 92 size_t to_read = std::min(sizeof(buf), (arg->data_count + 1 - counter) * sizeof(uint32_t)); local 93 ASSERT_TRUE(android::base::ReadFully(arg->slave_fd, buf, to_read)); 94 size_t num_of_value = to_read / sizeof(uint32_t);
|
/build/make/tools/releasetools/ |
sparse_img.py | 182 to_read = e-s 188 this_read = min(remain, to_read) 195 to_read -= this_read 197 while to_read > 0: 201 this_read = min(chunk_len, to_read) 207 to_read -= this_read
|
/system/core/libsparse/ |
sparse_read.c | 364 unsigned int to_read; local 373 to_read = min(remain, s->block_size); 374 ret = read_all(fd, buf, to_read); 381 if (to_read == s->block_size) { 395 sparse_file_add_fill(s, buf[0], to_read, block); 397 sparse_file_add_fd(s, fd, offset, to_read, block); 400 remain -= to_read; 401 offset += to_read;
|
/external/vboot_reference/cgpt/ |
cgpt_nor.c | 122 size_t to_read = size - copied; local 123 if (to_read > bufsize) { 124 to_read = bufsize; 126 nr_read = read(source_fd, buf, to_read);
|
/bootable/recovery/applypatch/ |
applypatch.cpp | 296 size_t to_read = len - p; local 297 if (to_read > sizeof(buffer)) { 298 to_read = sizeof(buffer); 302 while (so_far < to_read) { 303 ssize_t read_count = TEMP_FAILURE_RETRY(ota_read(fd, buffer + so_far, to_read - so_far)); 311 if (static_cast<size_t>(read_count) < to_read) { 312 printf("short verify read %s at %zu: %zd %zu\n", partition, p, read_count, to_read); 317 if (memcmp(buffer, data + p, to_read) != 0) {
|
/external/libvpx/libvpx/examples/ |
vp8_multi_resolution_encoder.c | 65 size_t nbytes, to_read; local 68 to_read = img->w * img->h * 3 / 2; 69 nbytes = fread(img->planes[0], 1, to_read, f); 70 if (nbytes != to_read) { 79 size_t nbytes, to_read; local 106 to_read = w; 108 nbytes = fread(ptr, 1, to_read, f); 109 if (nbytes != to_read) {
|
/external/pdfium/third_party/libtiff/ |
tif_read.c | 52 tmsize_t cc, to_read; local 116 to_read = tif->tif_rawdatasize - unused_data; 117 if( (uint64) to_read > td->td_stripbytecount[strip] 120 to_read = (tmsize_t) td->td_stripbytecount[strip] 125 cc = TIFFReadFile(tif, tif->tif_rawdata + unused_data, to_read); 127 if (cc != to_read) { 133 (unsigned __int64) to_read); 139 (unsigned long long) to_read); 145 tif->tif_rawdataloaded = unused_data + to_read; 152 TIFFReverseBits(tif->tif_rawdata + unused_data, to_read ); [all...] |
/external/tinycompress/ |
compress.c | 417 int to_read = 0; local 456 to_read = avail.avail; 458 to_read = size; 459 num_read = read(compress->fd, cbuf, to_read);
|
/external/e2fsprogs/intl/ |
loadmsgcat.c | 977 size_t to_read; local 984 to_read = size; 988 long int nb = (long int) read (fd, read_ptr, to_read); 999 to_read -= nb; 1001 while (to_read > 0); [all...] |
/toolchain/binutils/binutils-2.25/gold/ |
fileread.cc | 397 size_t to_read = size; local 400 bytes = ::pread(this->descriptor_, read_ptr, to_read, read_pos); 407 to_read -= bytes; 408 if (to_read == 0) 413 bytes = size - to_read;
|
/toolchain/binutils/binutils-2.25/intl/ |
loadmsgcat.c | 974 size_t to_read; local 981 to_read = size; 985 long int nb = (long int) read (fd, read_ptr, to_read); 996 to_read -= nb; 998 while (to_read > 0); [all...] |
/bootable/recovery/uncrypt/ |
uncrypt.cpp | 349 size_t to_read = static_cast<size_t>( local 351 if (!android::base::ReadFully(fd, buffers[tail].data(), to_read)) { 355 pos += to_read;
|
/external/selinux/libsepol/src/ |
policydb.c | 2294 int rc, to_read = 2; local 2373 int rc, to_read; local 3022 int rc, to_read = 2; local [all...] |
/build/make/tools/ |
fat16copy.py | 154 to_read = self.backing.size / 32 158 while to_read > 0: 160 to_read -= consumed
|
/toolchain/binutils/binutils-2.25/bfd/ |
vms-alpha.c | 796 unsigned int to_read; 817 to_read = PRIV (recrd.rec_size); 819 to_read += VMS_OBJECT_ADJUSTMENT; 822 if (to_read > PRIV (recrd.buf_size)) 825 = (unsigned char *) bfd_realloc (PRIV (recrd.buf), to_read); 828 PRIV (recrd.buf_size) = to_read; 832 to_read -= read_so_far; 834 vms_debug2 ((8, "vms_get_remaining_obj_record: to_read %d\n", to_read)); 836 if (bfd_bread (PRIV (recrd.buf) + read_so_far, to_read, abfd) != to_read 793 unsigned int to_read; local 2483 unsigned int to_read; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
_pyio.py | [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
_pyio.py | [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/ |
_pyio.py | [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
_pyio.py | [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
_pyio.py | [all...] |
/external/libevent/ |
buffer.c | 2910 ev_ssize_t to_read = length > EV_SSIZE_MAX ? EV_SSIZE_MAX : (ev_ssize_t)length; local [all...] |