summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/quick_exit.c
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2017-01-19 20:45:16 -0600
committerCorinna Vinschen <corinna@vinschen.de>2017-01-20 10:30:47 +0100
commitca3e3bc54ee4a5a27fc7721a512818255c804812 (patch)
tree06a9f785db413438b0a631adfc6e25d26098327c /newlib/libc/stdlib/quick_exit.c
parentef007184874ead6f288e432eb23bfc76bf65929d (diff)
downloadcygnal-ca3e3bc54ee4a5a27fc7721a512818255c804812.tar.gz
cygnal-ca3e3bc54ee4a5a27fc7721a512818255c804812.tar.bz2
cygnal-ca3e3bc54ee4a5a27fc7721a512818255c804812.zip
nl_langinfo: Add NL_LOCALE_NAME macro
Provide an extension NL_LOCALE_NAME() macro, with semantics matching glibc, which can be used as: nl_langinfo_l(NL_LOCALE_NAME(LC_MESSAGES), locale); to get back the locale string that locale was originally created with during newlocale(). This in turn allows a library (such as gettext) to determine what thread-local locale settings it has inherited from the main program without having to be told what parameters were passed to newlocale(), for less overall coupling between parts of the program. gnulib is set up to use the extension: https://lists.gnu.org/archive/html/bug-gnulib/2017-01/msg00129.html * libc/include/langinfo.h (NL_LOCALE_NAME): New macro * libc/locale/nl_langinfo.c (nl_langinfo_l): Expose locale names of a locale_t's category components. Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'newlib/libc/stdlib/quick_exit.c')
0 files changed, 0 insertions, 0 deletions