mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-30 14:31:14 +00:00
1f04d00542
* 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.
16 lines
388 B
C
16 lines
388 B
C
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
|