aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/psiginfo-define.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2009-02-26 06:18:24 +0000
committerUlrich Drepper <drepper@redhat.com>2009-02-26 06:18:24 +0000
commit1f04d005421644726a8c6b9ac78ba22ed938f5f0 (patch)
tree0785508bd93125f3bdeb6758fae555ce88cf6b6f /stdio-common/psiginfo-define.h
parent77db439eaf8d88da3dfae342631384b143ce33e6 (diff)
downloadglibc-1f04d005421644726a8c6b9ac78ba22ed938f5f0.zip
glibc-1f04d005421644726a8c6b9ac78ba22ed938f5f0.tar.gz
glibc-1f04d005421644726a8c6b9ac78ba22ed938f5f0.tar.bz2
* 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.
Diffstat (limited to 'stdio-common/psiginfo-define.h')
-rw-r--r--stdio-common/psiginfo-define.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/stdio-common/psiginfo-define.h b/stdio-common/psiginfo-define.h
new file mode 100644
index 0000000..e1d1a35
--- /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