libc: update to a recent newlib version.
This commit is contained in:
parent
cd23acaa4a
commit
af4ac44cb5
77 changed files with 4496 additions and 9989 deletions
|
@ -32,6 +32,9 @@
|
|||
#include <newlib.h>
|
||||
#include <sys/config.h>
|
||||
#include <sys/cdefs.h>
|
||||
#if __POSIX_VISIBLE >= 200809
|
||||
#include <xlocale.h>
|
||||
#endif
|
||||
|
||||
typedef int nl_item;
|
||||
|
||||
|
@ -301,7 +304,7 @@ enum __nl_item
|
|||
_NL_COLLATE_CODESET,
|
||||
|
||||
/* This MUST be the last entry since it's used to check for an array
|
||||
index in nl_langinfo(). */
|
||||
index in nl_langinfo(). It also must not exceed _NL_LOCALE_NAME_BASE. */
|
||||
_NL_LOCALE_EXTENDED_LAST_ENTRY
|
||||
|
||||
#endif /* __HAVE_LOCALE_INFO_EXTENDED__ */
|
||||
|
@ -309,8 +312,19 @@ enum __nl_item
|
|||
|
||||
};
|
||||
|
||||
/* As an extension, nl_langinfo can retrive the name of a locale
|
||||
category, with this mapping from setlocale() category (other than
|
||||
LC_ALL) to nl_item. */
|
||||
#define _NL_LOCALE_NAME_BASE 100000
|
||||
#if __GNU_VISIBLE
|
||||
#define NL_LOCALE_NAME(category) (_NL_LOCALE_NAME_BASE + (category))
|
||||
#endif
|
||||
|
||||
__BEGIN_DECLS
|
||||
char *nl_langinfo(nl_item);
|
||||
char *nl_langinfo (nl_item);
|
||||
#if __POSIX_VISIBLE >= 200809
|
||||
char *nl_langinfo_l (nl_item, locale_t);
|
||||
#endif
|
||||
__END_DECLS
|
||||
|
||||
#endif /* !_LANGINFO_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue