mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
* 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.
This commit is contained in:
15
stdio-common/psiginfo-define.h
Normal file
15
stdio-common/psiginfo-define.h
Normal file
@ -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
|
Reference in New Issue
Block a user