Searched refs:num_read (Results 1 – 6 of 6) sorted by relevance
/system/extras/boot_control_copy/ |
D | boot_control_copy.cpp | 97 ssize_t num_read; in copy_data() local 99 num_read = read(src_fd, copy_buf, num_to_read); in copy_data() 100 } while (num_read == -1 && errno == EINTR); in copy_data() 101 if (num_read <= 0) { in copy_data() 105 size_t num_to_write = num_read; in copy_data() 107 size_t offset = num_read - num_to_write; in copy_data() 119 remaining -= num_read; in copy_data()
|
D | bootinfo.cpp | 131 ssize_t num_read; in boot_info_load() local 133 num_read = read(fd, (void*)out_info, sizeof(BrilloBootInfo)); in boot_info_load() 134 } while (num_read == -1 && errno == EINTR); in boot_info_load() 136 if (num_read != sizeof(BrilloBootInfo)) return false; in boot_info_load()
|
/system/core/trusty/apploader/ |
D | apploader.cpp | 142 ssize_t num_read = TEMP_FAILURE_RETRY( in read_file() local 145 if (num_read < 0) { in read_file() 150 if (num_read == 0) { in read_file() 155 file_offset += (off64_t)num_read; in read_file()
|
/system/core/fs_mgr/libfs_avb/ |
D | avb_ops.cpp | 241 ssize_t num_read = TEMP_FAILURE_RETRY(pread64(fd, buffer, num_bytes, offset)); in ReadFromPartition() local 242 if (num_read < 0 || (size_t)num_read != num_bytes) { in ReadFromPartition() 248 *out_num_read = num_read; in ReadFromPartition()
|
D | avb_util.cpp | 285 ssize_t num_read = in GetAvbFooter() local 287 if (num_read < 0 || num_read != AVB_FOOTER_SIZE) { in GetAvbFooter() 408 ssize_t num_read = TEMP_FAILURE_RETRY(pread64(fd, vbmeta->data(), vbmeta_size, vbmeta_offset)); in VerifyVBMetaData() local 410 if (num_read < 0 || (!is_vbmeta_partition && static_cast<uint64_t>(num_read) != vbmeta_size)) { in VerifyVBMetaData()
|
/system/core/libutils/binder/ |
D | Unicode.cpp | 103 static inline int32_t utf32_at_internal(const char* cur, size_t *num_read) in utf32_at_internal() argument 107 *num_read = 1; in utf32_at_internal() 123 *num_read = num_to_read; in utf32_at_internal() 136 size_t num_read; in utf32_from_utf8_at() local 137 int32_t ret = utf32_at_internal(src + index, &num_read); in utf32_from_utf8_at() 139 *next_index = index + num_read; in utf32_from_utf8_at()
|