Home
last modified time | relevance | path

Searched refs:num_read (Results 1 – 4 of 4) sorted by relevance

/system/extras/boot_control_copy/
Dboot_control_copy.c105 ssize_t num_read; in copy_data() local
107 num_read = read(src_fd, copy_buf, num_to_read); in copy_data()
108 } while (num_read == -1 && errno == EINTR); in copy_data()
109 if (num_read <= 0) { in copy_data()
114 size_t num_to_write = num_read; in copy_data()
116 size_t offset = num_read - num_to_write; in copy_data()
128 remaining -= num_read; in copy_data()
Dbootinfo.c139 ssize_t num_read; in boot_info_load() local
141 num_read = read(fd, (void*) out_info, sizeof(BrilloBootInfo)); in boot_info_load()
142 } while (num_read == -1 && errno == EINTR); in boot_info_load()
144 if (num_read != sizeof(BrilloBootInfo)) in boot_info_load()
/system/core/fs_mgr/
Dfs_mgr_slotselect.c43 ssize_t num_read; in get_active_slot_suffix_from_misc() local
66 num_read = TEMP_FAILURE_RETRY(read(misc_fd, &msg, sizeof(msg))); in get_active_slot_suffix_from_misc()
69 if (num_read != sizeof(msg)) { in get_active_slot_suffix_from_misc()
/system/core/libutils/
DUnicode.cpp129 static inline int32_t utf32_at_internal(const char* cur, size_t *num_read) in utf32_at_internal() argument
133 *num_read = 1; in utf32_at_internal()
149 *num_read = num_to_read; in utf32_at_internal()
162 size_t num_read; in utf32_from_utf8_at() local
163 int32_t ret = utf32_at_internal(src + index, &num_read); in utf32_from_utf8_at()
165 *next_index = index + num_read; in utf32_from_utf8_at()
501 size_t num_read; in utf8_to_utf32() local
502 *cur_utf32++ = static_cast<char32_t>(utf32_at_internal(cur, &num_read)); in utf8_to_utf32()
503 cur += num_read; in utf8_to_utf32()