/bionic/libc/stdio/ |
fread.c | 127 ssize_t bytes_read = (*fp->_read)(fp->_cookie, dst, total); variable 128 if (bytes_read <= 0) { 129 fp->_flags |= (bytes_read == 0) ? __SEOF : __SERR; 132 dst += bytes_read; 133 total -= bytes_read;
|
/external/brotli/enc/ |
utf8_util.c | 75 size_t bytes_read = local 77 i += bytes_read; 78 if (symbol < 0x110000) size_utf8 += bytes_read;
|
/external/syslinux/com32/lib/sys/ |
fileread.c | 44 ssize_t bytes_read; local 46 bytes_read = pmapi_read_file(&fp->i.fd.handle, fp->i.buf, 48 if (!bytes_read) { 53 fp->i.nbytes = bytes_read;
|
/frameworks/native/cmds/bugreport/ |
bugreport.cpp | 67 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer))); local 68 if (bytes_read == 0) { 70 } else if (bytes_read == -1) { 79 ssize_t bytes_to_send = bytes_read; 83 buffer + bytes_read - bytes_to_send, 87 bytes_read, bytes_to_send, strerror(errno));
|
/external/libmojo/mojo/common/ |
data_pipe_file_utils.cc | 36 int bytes_read = local 38 if (bytes_read >= 0) { 39 EndWriteDataRaw(destination.get(), bytes_read); 40 if (bytes_read == 0) {
|
/frameworks/native/cmds/bugreportz/ |
bugreportz.cpp | 49 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer))); local 50 if (bytes_read == 0) { 52 } else if (bytes_read == -1) { 62 for (int i = 0; i < bytes_read; i++) {
|
/system/update_engine/payload_generator/ |
blob_file_writer_unittest.cc | 49 ssize_t bytes_read; local 54 &bytes_read)); 55 EXPECT_EQ(bytes_read, blob_size);
|
/art/runtime/ |
zip_archive_test.cc | 57 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buf, kBufSize)); local 58 if (bytes_read == 0) { 61 computed_crc = crc32(computed_crc, buf, bytes_read);
|
/bionic/libc/bionic/ |
bionic_netlink.cpp | 82 ssize_t bytes_read; local 83 while ((bytes_read = TEMP_FAILURE_RETRY(recv(fd_, data_, size_, 0))) > 0) { 85 for (; NLMSG_OK(hdr, static_cast<size_t>(bytes_read)); hdr = NLMSG_NEXT(hdr, bytes_read)) {
|
/device/google/dragon/bluetooth/ |
bluetooth_address.cc | 57 int bytes_read = read(wifi_mac_fd, property, kStringLength); local 59 if (bytes_read != kStringLength) return false;
|
/device/linaro/hikey/bluetooth/ |
h4_protocol.cc | 60 size_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, 1)); local 61 CHECK(bytes_read == 1);
|
hci_packetizer.cc | 53 size_t bytes_read = TEMP_FAILURE_RETRY( local 56 CHECK(bytes_read > 0); 57 bytes_read_ += bytes_read; 71 size_t bytes_read = TEMP_FAILURE_RETRY(read( local 75 CHECK(bytes_read > 0); 76 bytes_remaining_ -= bytes_read; 77 bytes_read_ += bytes_read;
|
/external/bsdiff/ |
extents_file_unittest.cc | 99 size_t bytes_read; local 100 EXPECT_FALSE(file.Read(nullptr, 1, &bytes_read)); 126 size_t bytes_read = 0; local 127 EXPECT_TRUE(file.Read(buf, 100, &bytes_read)); 128 EXPECT_EQ(15U, bytes_read); 148 size_t bytes_read = 0; local 149 EXPECT_TRUE(file.Read(buf, 2, &bytes_read)); 150 EXPECT_EQ(2U, bytes_read); 151 EXPECT_TRUE(file.Read(buf, 8, &bytes_read)); 152 EXPECT_EQ(8U, bytes_read); 168 size_t bytes_read = 0; local 182 size_t bytes_read = 0; local 191 size_t bytes_read; local 206 size_t bytes_read = 0; local [all...] |
/external/e2fsprogs/resize/ |
resource_track.c | 43 track->bytes_read = 0; 48 track->bytes_read = io_start->bytes_read; 105 unsigned long long bytes_read = 0; local 110 bytes_read = delta->bytes_read - track->bytes_read; 113 if (bytes_read == 0 && bytes_written == 0) 119 mbytes(bytes_read), 121 (double)mbytes(bytes_read + bytes_written) [all...] |
/external/google-breakpad/src/common/tests/ |
file_utils.cc | 64 ssize_t bytes_read = HANDLE_EINTR(read(infile, buffer, sizeof(buffer))); local 65 if (bytes_read < 0) { 70 if (bytes_read == 0) 77 bytes_read - bytes_written_per_read)); 84 } while (bytes_written_per_read < bytes_read);
|
/external/libmojo/mojo/edk/test/ |
multiprocess_test_helper_unittest.cc | 44 size_t bytes_read = 0; local 45 BlockingRead(handle, c, 1, &bytes_read); 46 return bytes_read == 1;
|
/external/ltp/testcases/kernel/fs/fs_di/ |
frag.c | 48 int bytes_read = 0, bytes_written = 0, fd1 = -1, fd2 = -1; local 78 bytes_read = fread(buff, 1, 1024, fp_data); 79 if (bytes_read < 0) { 84 bytes_written = fwrite(buff, 1, bytes_read, fp_frag1); 85 if (bytes_read != bytes_written) { 90 bytes_written = fwrite(buff, 1, bytes_read, fp_frag2); 91 if (bytes_read != bytes_written) { 104 if (bytes_read < 1024)
|
/external/sfntly/cpp/src/test/ |
file_io_test.cc | 41 size_t bytes_read = fread(&(b1[0]), 1, length, file_handle); local 42 EXPECT_EQ(bytes_read, length); 102 size_t bytes_read = fread(&(b1[0]), 1, length, file_handle); local 103 EXPECT_EQ(bytes_read, length);
|
test_font_utils.cc | 78 size_t bytes_read = fread(&((*input_buffer)[0]), 1, file_size, input_file); local 79 EXPECT_EQ(bytes_read, file_size);
|
/external/syslinux/com32/elflink/ldlinux/ |
loadhigh.c | 48 uint32_t bytes_read; local 85 bytes_read = fs->fs_ops->getfssec(file, buf, sectors, &have_more); 87 if (bytes_read > chunk) 88 bytes_read = chunk; 90 buf += bytes_read; 91 bytes -= bytes_read;
|
/external/syslinux/core/fs/ |
getfssec.c | 94 uint32_t bytes_read = 0; local 182 bytes_read += len; 187 bytes_read = min(bytes_read, bytes_left); 188 file->offset += bytes_read; 191 *have_more = bytes_read < bytes_left; 193 return bytes_read;
|
/hardware/interfaces/bluetooth/1.0/default/ |
bluetooth_address.cc | 59 int bytes_read = read(addr_fd, address, kStringLength); local 60 if (bytes_read == -1) {
|
h4_protocol.cc | 71 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, 1)); local 72 if (bytes_read != 1) { 73 if (bytes_read == 0) { 76 } else if (bytes_read < 0) { 81 static_cast<unsigned int>(bytes_read));
|
hci_packetizer.cc | 56 ssize_t bytes_read = TEMP_FAILURE_RETRY( local 59 if (bytes_read <= 0) { 60 LOG_ALWAYS_FATAL_IF((bytes_read == 0), 65 bytes_read_ += bytes_read; 79 ssize_t bytes_read = TEMP_FAILURE_RETRY(read( local 83 if (bytes_read <= 0) { 84 LOG_ALWAYS_FATAL_IF((bytes_read == 0), 90 bytes_remaining_ -= bytes_read; 91 bytes_read_ += bytes_read;
|
/system/bt/vendor_libs/linux/interface/ |
h4_protocol.cc | 97 size_t bytes_read = TEMP_FAILURE_RETRY(read(fd, tpkt.data(), max_plen)); local 99 hci_packetizer_.CbHciPacket(tpkt.data()+1, bytes_read-1);
|