1 /* Definitions for locale archive handling.
2 Copyright (C) 2002-2013 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
20 #define _LOCARCHIVE_H 1
25 #define AR_MAGIC 0xde020109
32 /* Name hash table. */
33 uint32_t namehash_offset
;
34 uint32_t namehash_used
;
35 uint32_t namehash_size
;
37 uint32_t string_offset
;
40 /* Table with locale records. */
41 uint32_t locrectab_offset
;
42 uint32_t locrectab_used
;
43 uint32_t locrectab_size
;
44 /* MD5 sum hash table. */
45 uint32_t sumhash_offset
;
46 uint32_t sumhash_used
;
47 uint32_t sumhash_size
;
53 /* Hash value of the name. */
55 /* Offset of the name in the string table. */
57 /* Offset of the locale record. */
58 uint32_t locrec_offset
;
66 /* Offset of the file in the archive. */
72 uint32_t refs
; /* # of namehashent records that point here */
83 /* Full path to the locale archive file. */
89 /* If this mmap required adjustment (such as re-aligning), then this is the
90 real address that was returned from mmap and thus should be passed to the
91 munmap call. The addr field above is the first usable address. */
93 /* Same as above for mmap_base vs addr, but this is the real length of the
94 map rather than the usable (which is what reserved represents). */
99 /* In memory data for the locales with their checksums. */
100 typedef struct locale_category_data
105 } locale_data_t
[__LC_LAST
];
107 #endif /* locarchive.h */