~ubuntu-branches/ubuntu/hardy/gnupg2/hardy

« back to all changes in this revision

Viewing changes to intl/loadinfo.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Bienia, Michael Bienia, Kees Cook
  • Date: 2006-12-07 00:28:23 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20061207002823-0i7ittrpmsm1nv0i
Tags: 2.0.1-0ubuntu1
[ Michael Bienia ]
* New upstream version.
* Remaining changes:
  - Remove libpcsclite-dev, libopensc2-dev build dependencies (they are in
    universe).
* g10/encr-data.c: remotely controllable function pointer (CVE-2006-6235)
* debian/control: add libcurl3-gnutls-dev to build-depends 
  (Closes Ubuntu: #62864)

[ Kees Cook ]
* debian/rules: include doc/ files as done with gnupg

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 1996-1999, 2000-2003 Free Software Foundation, Inc.
 
1
/* Copyright (C) 1996-1999, 2000-2003, 2005-2006 Free Software Foundation, Inc.
2
2
   This file is part of the GNU C Library.
3
3
   Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
4
4
 
14
14
 
15
15
   You should have received a copy of the GNU Library General Public
16
16
   License along with this program; if not, write to the Free Software
17
 
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
 
17
   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
18
18
   USA.  */
19
19
 
20
20
#ifndef _LOADINFO_H
36
36
# define internal_function
37
37
#endif
38
38
 
 
39
#ifndef LIBINTL_DLL_EXPORTED
 
40
# define LIBINTL_DLL_EXPORTED
 
41
#endif
 
42
 
39
43
/* Tell the compiler when a conditional or integer expression is
40
44
   almost always true or almost always false.  */
41
45
#ifndef HAVE_BUILTIN_EXPECT
43
47
#endif
44
48
 
45
49
/* Separator in PATH like lists of pathnames.  */
46
 
#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
 
50
#if ((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) || defined __EMX__ || defined __DJGPP__
47
51
  /* Win32, OS/2, DOS */
48
52
# define PATH_SEPARATOR ';'
49
53
#else
52
56
#endif
53
57
 
54
58
/* Encoding of locale name parts.  */
55
 
#define CEN_REVISION            1
56
 
#define CEN_SPONSOR             2
57
 
#define CEN_SPECIAL             4
58
 
#define XPG_NORM_CODESET        8
59
 
#define XPG_CODESET             16
60
 
#define TERRITORY               32
61
 
#define CEN_AUDIENCE            64
62
 
#define XPG_MODIFIER            128
63
 
 
64
 
#define CEN_SPECIFIC    (CEN_REVISION|CEN_SPONSOR|CEN_SPECIAL|CEN_AUDIENCE)
65
 
#define XPG_SPECIFIC    (XPG_CODESET|XPG_NORM_CODESET|XPG_MODIFIER)
 
59
#define XPG_NORM_CODESET        1
 
60
#define XPG_CODESET             2
 
61
#define XPG_TERRITORY           4
 
62
#define XPG_MODIFIER            8
66
63
 
67
64
 
68
65
struct loaded_l10nfile
89
86
   files of the same kind, sorted in decreasing order of ->filename.
90
87
   DIRLIST and DIRLIST_LEN are an argz list of directories in which to
91
88
   look, containing at least one directory (i.e. DIRLIST_LEN > 0).
92
 
   MASK, LANGUAGE, TERRITORY, CODESET, NORMALIZED_CODESET, MODIFIER,
93
 
   SPECIAL, SPONSOR, REVISION are the pieces of the locale name, as
94
 
   produced by _nl_explode_name().  FILENAME is the filename suffix.
 
89
   MASK, LANGUAGE, TERRITORY, CODESET, NORMALIZED_CODESET, MODIFIER
 
90
   are the pieces of the locale name, as produced by _nl_explode_name().
 
91
   FILENAME is the filename suffix.
95
92
   The return value is the lookup result, either found in *L10NFILE_LIST,
96
93
   or - if DO_ALLOCATE is nonzero - freshly allocated, or possibly NULL.
97
94
   If the return value is non-NULL, it is added to *L10NFILE_LIST, and
103
100
                    const char *dirlist, size_t dirlist_len, int mask,
104
101
                    const char *language, const char *territory,
105
102
                    const char *codeset, const char *normalized_codeset,
106
 
                    const char *modifier, const char *special,
107
 
                    const char *sponsor, const char *revision,
 
103
                    const char *modifier,
108
104
                    const char *filename, int do_allocate);
109
105
 
110
106
/* Lookup the real locale name for a locale alias NAME, or NULL if
111
107
   NAME is not a locale alias (but possibly a real locale name).
112
108
   The return value is statically allocated and must not be freed.  */
113
 
extern const char *_nl_expand_alias (const char *name);
 
109
/* Part of the libintl ABI only for the sake of the gettext.m4 macro.  */
 
110
extern LIBINTL_DLL_EXPORTED const char *_nl_expand_alias (const char *name);
114
111
 
115
112
/* Split a locale name NAME into its pieces: language, modifier,
116
 
   territory, codeset, special, sponsor, revision.
 
113
   territory, codeset.
117
114
   NAME gets destructively modified: NUL bytes are inserted here and
118
115
   there.  *LANGUAGE gets assigned NAME.  Each of *MODIFIER, *TERRITORY,
119
 
   *CODESET, *SPECIAL, *SPONSOR, *REVISION gets assigned either a
120
 
   pointer into the old NAME string, or NULL.  *NORMALIZED_CODESET
121
 
   gets assigned the expanded *CODESET, if it is different from *CODESET;
122
 
   this one is dynamically allocated and has to be freed by the caller.
 
116
   *CODESET gets assigned either a pointer into the old NAME string, or
 
117
   NULL.  *NORMALIZED_CODESET gets assigned the expanded *CODESET, if it
 
118
   is different from *CODESET; this one is dynamically allocated and has
 
119
   to be freed by the caller.
123
120
   The return value is a bitmask, where each bit corresponds to one
124
121
   filled-in value:
125
 
     XPG_MODIFIER, CEN_AUDIENCE  for *MODIFIER,
126
 
     TERRITORY                   for *TERRITORY,
 
122
     XPG_MODIFIER                for *MODIFIER,
 
123
     XPG_TERRITORY               for *TERRITORY,
127
124
     XPG_CODESET                 for *CODESET,
128
 
     XPG_NORM_CODESET            for *NORMALIZED_CODESET,
129
 
     CEN_SPECIAL                 for *SPECIAL,
130
 
     CEN_SPONSOR                 for *SPONSOR,
131
 
     CEN_REVISION                for *REVISION.
 
125
     XPG_NORM_CODESET            for *NORMALIZED_CODESET.
132
126
 */
133
127
extern int _nl_explode_name (char *name, const char **language,
134
128
                             const char **modifier, const char **territory,
135
129
                             const char **codeset,
136
 
                             const char **normalized_codeset,
137
 
                             const char **special, const char **sponsor,
138
 
                             const char **revision);
139
 
 
140
 
/* Split a locale name NAME into a leading language part and all the
141
 
   rest.  Return a pointer to the first character after the language,
142
 
   i.e. to the first byte of the rest.  */
143
 
extern char *_nl_find_language (const char *name);
 
130
                             const char **normalized_codeset);
144
131
 
145
132
#endif  /* loadinfo.h */