From 1f04d005421644726a8c6b9ac78ba22ed938f5f0 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 26 Feb 2009 06:18:24 +0000 Subject: * locale/langinfo.h: nl_langinfo_l is in POSIX 2008. * locale/xlocale.h: Define locale_t type. * locale/locale.h: duplocale, freelocale, newlocale, uselocale are in POSIX 2008. Don't define locale_t here. * stdlib/monetary.h: strfmon_l is in POSIX 2008. * signal/signal.h: Declare psignal and psiginfo for POSIX 2008. * stdio-common/psiginfo.c: New file. * stdio-common/psiginfo-data.h: New file. * stdio-common/psiginfo-define.h: New file. * stdio-common/Makefile (routines): Add psiginfo. * stdio-common/Versions: Export psiginfo for GLIBC_2.10. --- stdio-common/psiginfo-define.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 stdio-common/psiginfo-define.h (limited to 'stdio-common/psiginfo-define.h') diff --git a/stdio-common/psiginfo-define.h b/stdio-common/psiginfo-define.h new file mode 100644 index 0000000000..e1d1a351f8 --- /dev/null +++ b/stdio-common/psiginfo-define.h @@ -0,0 +1,15 @@ +static const union C(codestrs_t_, NOW) { + struct { +#define P(n, s) char MF(__LINE__)[sizeof (s)]; +#include "psiginfo-data.h" + }; + char str[0]; +} C(codestrs_, NOW) = { { +#define P(n, s) s, +#include "psiginfo-data.h" + } }; +static const uint8_t C(codes_, NOW)[] = { +#define P(n, s) [(n) - 1] = offsetof (union C(codestrs_t_, NOW), MF(__LINE__)), +#include "psiginfo-data.h" +}; +#undef NOW -- cgit v1.2.3