Add locale aware APIs.

Since we only support the C locale, we can just forward all of these to
their non-locale equivalents for correct behavior.

Change-Id: Ib7be71b7f636309c0cc3be1096a4c1f693f04fbb
This commit is contained in:
Dan Albert
2014-07-09 10:09:04 -07:00
parent 6cdd0cfd2f
commit e087eac404
16 changed files with 432 additions and 0 deletions

View File

@@ -41,6 +41,7 @@
#define _CTYPE_H_
#include <sys/cdefs.h>
#include <xlocale.h>
#define _CTYPE_U 0x01
#define _CTYPE_L 0x02
@@ -72,6 +73,22 @@ int isxdigit(int);
int tolower(int);
int toupper(int);
int isalnum_l(int, locale_t);
int isalpha_l(int, locale_t);
int isascii_l(int, locale_t);
int isblank_l(int, locale_t);
int iscntrl_l(int, locale_t);
int isdigit_l(int, locale_t);
int isgraph_l(int, locale_t);
int islower_l(int, locale_t);
int isprint_l(int, locale_t);
int ispunct_l(int, locale_t);
int isspace_l(int, locale_t);
int isupper_l(int, locale_t);
int isxdigit_l(int, locale_t);
int tolower_l(int, locale_t);
int toupper_l(int, locale_t);
#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 1999 || __POSIX_VISIBLE > 200112 \
|| __XPG_VISIBLE > 600
int isblank(int);