summaryrefslogtreecommitdiff
path: root/lib/localename.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/localename.h')
-rw-r--r--lib/localename.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/lib/localename.h b/lib/localename.h
index fd110818..06906143 100644
--- a/lib/localename.h
+++ b/lib/localename.h
@@ -1,5 +1,5 @@
/* Determine name of the currently selected locale.
- Copyright (C) 2007, 2009-2022 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2009-2024 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
@@ -17,6 +17,11 @@
#ifndef _GL_LOCALENAME_H
#define _GL_LOCALENAME_H
+/* This file uses _GL_ATTRIBUTE_CONST, HAVE_CFPREFERENCESCOPYAPPVALUE. */
+#if !_GL_CONFIG_H_INCLUDED
+ #error "Please include config.h first."
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -91,6 +96,19 @@ extern const char * gl_locale_name_default (void)
#endif
;
+
+/* These functions with the '_unsafe' suffix are like the functions without
+ this suffix, above, except that the result is not statically allocated, but
+ instead only valid in the current thread, until the next uselocale(),
+ setlocale(), newlocale(), or freelocale() call. */
+extern const char * gl_locale_name_unsafe (int category,
+ const char *categoryname);
+extern const char * gl_locale_name_thread_unsafe (int category,
+ const char *categoryname);
+extern const char * gl_locale_name_posix_unsafe (int category,
+ const char *categoryname);
+
+
#ifdef __cplusplus
}
#endif