aboutsummaryrefslogtreecommitdiff
path: root/support/support.h
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-05-18 14:36:19 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-07-07 14:10:58 -0300
commit653200ef42674cd0b71c9e07145054ccfadf2f0f (patch)
treec6a7884b33ab1d08b3d25871e7afa431a25ed6bd /support/support.h
parentc2723ce317f858f70237fc8866935114e2bb61b2 (diff)
downloadglibc-653200ef42674cd0b71c9e07145054ccfadf2f0f.tar
glibc-653200ef42674cd0b71c9e07145054ccfadf2f0f.tar.gz
glibc-653200ef42674cd0b71c9e07145054ccfadf2f0f.tar.bz2
glibc-653200ef42674cd0b71c9e07145054ccfadf2f0f.zip
string: Add strerror, strerror_r, and strerror_l test
Checked on x86-64-linux-gnu, i686-linux-gnu, powerpc64le-linux-gnu, and s390x-linux-gnu. Tested-by: Carlos O'Donell <carlos@redhat.com> Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'support/support.h')
-rw-r--r--support/support.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/support/support.h b/support/support.h
index 8e1a6a17f7..905b5a76d8 100644
--- a/support/support.h
+++ b/support/support.h
@@ -29,6 +29,8 @@
#include <sys/stat.h>
/* For ssize_t and off64_t. */
#include <sys/types.h>
+/* For locale_t. */
+#include <locale.h>
__BEGIN_DECLS
@@ -92,6 +94,8 @@ char *xasprintf (const char *format, ...)
char *xstrdup (const char *);
char *xstrndup (const char *, size_t);
char *xsetlocale (int category, const char *locale);
+locale_t xnewlocale (int category_mask, const char *locale, locale_t base);
+char *xuselocale (locale_t newloc);
/* These point to the TOP of the source/build tree, not your (or
support's) subdirectory. */