]> git.ipfire.org Git - thirdparty/glibc.git/commit - locale/locarchive.h
* locale/locarchive.h (struct locarhandle): Rename len field to
authorUlrich Drepper <drepper@redhat.com>
Fri, 24 Apr 2009 16:25:51 +0000 (16:25 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 24 Apr 2009 16:25:51 +0000 (16:25 +0000)
commit705341a92faad6305f47511f57ab46af19c10645
treeab638ef2a75430bac2969e1ffa1e0f958089d530
parent57d2da1c6723d11be2e448dd725dd51b5d930255
* locale/locarchive.h (struct locarhandle): Rename len field to

mmaped and add new reserved field.
* locale/programs/locarchive.c (RESERVE_MMAP_SIZE): Define.
(create_archive): Reserve address space and then map file into it.
(open_archive): Likewise.
(file_data_available_p): New function.
(compare_from_file): New function.
(close_archive): Adjust to member name changes.
(add_locale): Before comparing locale data, check it is mapped.
Otherwise fall back to reading from the file.
ChangeLog
locale/locarchive.h
locale/programs/locarchive.c