Searched refs:num_read (Results 1 – 4 of 4) sorted by relevance
105 ssize_t num_read; in copy_data() local107 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()
139 ssize_t num_read; in boot_info_load() local141 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()
43 ssize_t num_read; in get_active_slot_suffix_from_misc() local66 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()
129 static inline int32_t utf32_at_internal(const char* cur, size_t *num_read) in utf32_at_internal() argument133 *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() local163 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() local502 *cur_utf32++ = static_cast<char32_t>(utf32_at_internal(cur, &num_read)); in utf8_to_utf32()503 cur += num_read; in utf8_to_utf32()