Home
last modified time | relevance | path

Searched refs:head (Results 1 – 3 of 3) sorted by relevance

/locale/programs/
A Dlocarchive.c136 SET (head.serial, 0); in create_archive()
148 GET (head.string_offset) + GET (head.string_size)); in create_archive()
162 if (TEMP_FAILURE_RETRY (write (fd, &head, sizeof (head))) != sizeof (head)) in create_archive()
382 newhead = *head; in enlarge_archive()
651 if (TEMP_FAILURE_RETRY (read (fd, &head, sizeof (head))) != sizeof (head)) in open_archive()
804 GET (head->string_offset) + GET (head->string_used)); in add_alias()
865 head = ah->addr; in add_locale()
986 && (GET (head->locrectab_used) == GET (head->locrectab_size) in add_locale()
1084 GET (head->string_offset) + GET (head->string_used)); in add_locale()
1539 head = ah.addr; in delete_locales_from_archive()
[all …]
A Dlocale.c641 struct locarhead *head; in write_archive_locales() local
651 if (fstat64 (fd, &st) < 0 || st.st_size < sizeof (*head)) in write_archive_locales()
659 head = (struct locarhead *) addr; in write_archive_locales()
660 if (head->namehash_offset + head->namehash_size > len in write_archive_locales()
661 || head->string_offset + head->string_size > len in write_archive_locales()
662 || head->locrectab_offset + head->locrectab_size > len in write_archive_locales()
663 || head->sumhash_offset + head->sumhash_size > len) in write_archive_locales()
666 namehashtab = (struct namehashent *) (addr + head->namehash_offset); in write_archive_locales()
669 for (cnt = 0; cnt < head->namehash_size; ++cnt) in write_archive_locales()
681 names = (struct nameent *) xmalloc (head->namehash_used in write_archive_locales()
[all …]
/locale/
A Dloadarchive.c142 struct locarhead *head; in _nl_load_locale_from_archive() local
272 head = headmap.ptr; in _nl_load_locale_from_archive()
273 namehashtab = (struct namehashent *) ((char *) head in _nl_load_locale_from_archive()
274 + head->namehash_offset); in _nl_load_locale_from_archive()
277 if (__glibc_unlikely (head->namehash_size <= 2)) in _nl_load_locale_from_archive()
280 idx = hval % head->namehash_size; in _nl_load_locale_from_archive()
281 incr = 1 + hval % (head->namehash_size - 2); in _nl_load_locale_from_archive()
297 if (idx >= head->namehash_size) in _nl_load_locale_from_archive()
298 idx -= head->namehash_size; in _nl_load_locale_from_archive()

Completed in 11 milliseconds