Print this page
4964 nl_langinfo(CRNCYSTR) returns wrong alignment character
4999 libc test suite enhancements
4939 desire wcsnrtombs() function
Reviewed by: Jason King <jason.brian.king@gmail.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Approved by: TBD


  64 extern int wcswidth_l(const wchar_t *, size_t, locale_t);
  65 
  66 extern int iswspecial_l(wint_t, locale_t);
  67 extern int iswnumber_l(wint_t, locale_t);
  68 extern int iswhexnumber_l(wint_t, locale_t);
  69 extern int iswideogram_l(wint_t, locale_t);
  70 extern int iswphonogram_l(wint_t, locale_t);
  71 
  72 extern wint_t btowc_l(int, locale_t);
  73 extern int wctob_l(wint_t, locale_t);
  74 extern size_t mbrtowc_l(wchar_t *_RESTRICT_KYWD, const char *_RESTRICT_KYWD,
  75     size_t, mbstate_t *_RESTRICT_KYWD, locale_t);
  76 extern size_t mbstowcs_l(wchar_t *_RESTRICT_KYWD, const char *_RESTRICT_KYWD,
  77     size_t, locale_t);
  78 extern int mblen_l(const char *, size_t, locale_t);
  79 extern size_t mbrlen_l(const char *_RESTRICT_KYWD, size_t,
  80     mbstate_t *_RESTRICT_KYWD, locale_t);
  81 extern int mbtowc_l(wchar_t *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t,
  82     locale_t);
  83 extern size_t wcsrtombs_l(char *_RESTRICT_KYWD, const wchar_t **_RESTRICT_KYWD,
  84     size_t len, mbstate_t *_RESTRICT_KYWD, locale_t);


  85 extern size_t wcrtomb_l(char *_RESTRICT_KYWD, wchar_t,
  86     mbstate_t *_RESTRICT_KYWD, locale_t);
  87 extern size_t wcstombs_l(char *_RESTRICT_KYWD, const wchar_t *_RESTRICT_KYWD,
  88     size_t, locale_t);
  89 extern int wctomb_l(char *, wchar_t, locale_t);
  90 
  91 extern unsigned char __mb_cur_max_l(locale_t);
  92 #ifndef MB_CUR_MAX_L
  93 #define MB_CUR_MAX_L(l) (__mb_cur_max_l(l))
  94 #endif
  95 
  96 
  97 #if defined(_XPG4) && !defined(_FILEDEFED) || __cplusplus >= 199711L
  98 #define _FILEDEFED
  99 typedef __FILE FILE;
 100 #endif
 101 
 102 extern wint_t fgetwc_l(FILE *, locale_t);
 103 extern wint_t getwc_l(FILE *, locale_t);
 104 


  64 extern int wcswidth_l(const wchar_t *, size_t, locale_t);
  65 
  66 extern int iswspecial_l(wint_t, locale_t);
  67 extern int iswnumber_l(wint_t, locale_t);
  68 extern int iswhexnumber_l(wint_t, locale_t);
  69 extern int iswideogram_l(wint_t, locale_t);
  70 extern int iswphonogram_l(wint_t, locale_t);
  71 
  72 extern wint_t btowc_l(int, locale_t);
  73 extern int wctob_l(wint_t, locale_t);
  74 extern size_t mbrtowc_l(wchar_t *_RESTRICT_KYWD, const char *_RESTRICT_KYWD,
  75     size_t, mbstate_t *_RESTRICT_KYWD, locale_t);
  76 extern size_t mbstowcs_l(wchar_t *_RESTRICT_KYWD, const char *_RESTRICT_KYWD,
  77     size_t, locale_t);
  78 extern int mblen_l(const char *, size_t, locale_t);
  79 extern size_t mbrlen_l(const char *_RESTRICT_KYWD, size_t,
  80     mbstate_t *_RESTRICT_KYWD, locale_t);
  81 extern int mbtowc_l(wchar_t *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t,
  82     locale_t);
  83 extern size_t wcsrtombs_l(char *_RESTRICT_KYWD, const wchar_t **_RESTRICT_KYWD,
  84     size_t, mbstate_t *_RESTRICT_KYWD, locale_t);
  85 extern size_t wcsnrtombs_l(char *_RESTRICT_KYWD, const wchar_t **_RESTRICT_KYWD,
  86     size_t, size_t, mbstate_t *_RESTRICT_KYWD, locale_t);
  87 extern size_t wcrtomb_l(char *_RESTRICT_KYWD, wchar_t,
  88     mbstate_t *_RESTRICT_KYWD, locale_t);
  89 extern size_t wcstombs_l(char *_RESTRICT_KYWD, const wchar_t *_RESTRICT_KYWD,
  90     size_t, locale_t);
  91 extern int wctomb_l(char *, wchar_t, locale_t);
  92 
  93 extern unsigned char __mb_cur_max_l(locale_t);
  94 #ifndef MB_CUR_MAX_L
  95 #define MB_CUR_MAX_L(l) (__mb_cur_max_l(l))
  96 #endif
  97 
  98 
  99 #if defined(_XPG4) && !defined(_FILEDEFED) || __cplusplus >= 199711L
 100 #define _FILEDEFED
 101 typedef __FILE FILE;
 102 #endif
 103 
 104 extern wint_t fgetwc_l(FILE *, locale_t);
 105 extern wint_t getwc_l(FILE *, locale_t);
 106