Searched refs:index_size (Results 1 – 1 of 1) sorted by relevance
/bionic/libc/tzcode/ |
D | bionic.cpp | 149 const size_t index_size = ntohl(header.data_offset) - ntohl(header.index_offset); in __bionic_open_tzdata_path() local 150 if ((index_size % sizeof(index_entry_t)) != 0) { in __bionic_open_tzdata_path() 151 fprintf(stderr, "%s: invalid index size in \"%s\": %zd\n", __FUNCTION__, path, index_size); in __bionic_open_tzdata_path() 156 char* index = reinterpret_cast<char*>(malloc(index_size)); in __bionic_open_tzdata_path() 158 …fprintf(stderr, "%s: couldn't allocate %zd-byte index for \"%s\"\n", __FUNCTION__, index_size, pat… in __bionic_open_tzdata_path() 162 if (TEMP_FAILURE_RETRY(read(fd, index, index_size)) != static_cast<ssize_t>(index_size)) { in __bionic_open_tzdata_path() 171 size_t id_count = index_size / sizeof(index_entry_t); in __bionic_open_tzdata_path()
|