diff options
author | Ulrich Drepper <drepper@redhat.com> | 2009-04-24 16:25:51 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2009-04-24 16:25:51 +0000 |
commit | 705341a92faad6305f47511f57ab46af19c10645 (patch) | |
tree | ab638ef2a75430bac2969e1ffa1e0f958089d530 /locale/locarchive.h | |
parent | 57d2da1c6723d11be2e448dd725dd51b5d930255 (diff) | |
download | glibc-705341a92faad6305f47511f57ab46af19c10645.tar.gz glibc-705341a92faad6305f47511f57ab46af19c10645.tar.xz glibc-705341a92faad6305f47511f57ab46af19c10645.zip |
* 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.
Diffstat (limited to 'locale/locarchive.h')
-rw-r--r-- | locale/locarchive.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/locale/locarchive.h b/locale/locarchive.h index e94bc2b480..eb3353d316 100644 --- a/locale/locarchive.h +++ b/locale/locarchive.h @@ -1,5 +1,5 @@ /* Definitions for locale archive handling. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2009 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -83,7 +83,8 @@ struct locarhandle { int fd; void *addr; - size_t len; + size_t mmaped; + size_t reserved; }; |