Back to index

glibc  2.9
Defines | Functions
wchar2.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define swprintf(s, n,...)
#define __WCHAR_MB_LEN_MAX   16

Functions

wchar_t * __wmemcpy_chk (wchar_t *__restrict __s1, __const wchar_t *__restrict __s2, size_t __n, size_t __ns1) __THROW
wchar_t * __REDIRECT_NTH (__wmemcpy_alias,(wchar_t *__restrict __s1, __const wchar_t *__restrict __s2, size_t __n), wmemcpy)
wchar_t * __REDIRECT_NTH (__wmemcpy_chk_warn,(wchar_t *__restrict __s1, __const wchar_t *__restrict __s2, size_t __n, size_t __ns1), __wmemcpy_chk) __warnattr("wmemcpy called with length bigger than size of destination ""buffer")
__extern_always_inline wchar_t * __NTH (wmemcpy(wchar_t *__restrict __s1, __const wchar_t *__restrict __s2, size_t __n))
wchar_t * __wmemmove_chk (wchar_t *__s1, __const wchar_t *__s2, size_t __n, size_t __ns1) __THROW
wchar_t * __REDIRECT_NTH (__wmemmove_alias,(wchar_t *__s1, __const wchar_t *__s2, size_t __n), wmemmove)
wchar_t * __REDIRECT_NTH (__wmemmove_chk_warn,(wchar_t *__restrict __s1, __const wchar_t *__restrict __s2, size_t __n, size_t __ns1), __wmemmove_chk) __warnattr("wmemmove called with length bigger than size of destination ""buffer")
__extern_always_inline wchar_t * __NTH (wmemmove(wchar_t *__restrict __s1, __const wchar_t *__restrict __s2, size_t __n))
wchar_t * __wmemset_chk (wchar_t *__s, wchar_t __c, size_t __n, size_t __ns) __THROW
wchar_t * __REDIRECT_NTH (__wmemset_alias,(wchar_t *__s, wchar_t __c, size_t __n), wmemset)
wchar_t * __REDIRECT_NTH (__wmemset_chk_warn,(wchar_t *__s, wchar_t __c, size_t __n, size_t __ns), __wmemset_chk) __warnattr("wmemset called with length bigger than size of destination ""buffer")
wchar_t * __REDIRECT_NTH (__wcscpy_alias,(wchar_t *__restrict __dest, __const wchar_t *__restrict __src), wcscpy)
wchar_t * __REDIRECT_NTH (__wcpcpy_alias,(wchar_t *__dest, __const wchar_t *__src), wcpcpy)
wchar_t * __REDIRECT_NTH (__wcsncpy_alias,(wchar_t *__restrict __dest, __const wchar_t *__restrict __src, size_t __n), wcsncpy)
wchar_t * __REDIRECT_NTH (__wcsncpy_chk_warn,(wchar_t *__restrict __dest, __const wchar_t *__restrict __src, size_t __n, size_t __destlen), __wcsncpy_chk) __warnattr("wcsncpy called with length bigger than size of destination ""buffer")
wchar_t * __REDIRECT_NTH (__wcpncpy_alias,(wchar_t *__restrict __dest, __const wchar_t *__restrict __src, size_t __n), wcpncpy)
wchar_t * __REDIRECT_NTH (__wcpncpy_chk_warn,(wchar_t *__restrict __dest, __const wchar_t *__restrict __src, size_t __n, size_t __destlen), __wcpncpy_chk) __warnattr("wcpncpy called with length bigger than size of destination ""buffer")
wchar_t * __REDIRECT_NTH (__wcscat_alias,(wchar_t *__restrict __dest, __const wchar_t *__restrict __src), wcscat)
wchar_t * __REDIRECT_NTH (__wcsncat_alias,(wchar_t *__restrict __dest, __const wchar_t *__restrict __src, size_t __n), wcsncat)
int __REDIRECT_NTH_LDBL (__swprintf_alias,(wchar_t *__restrict __s, size_t __n, __const wchar_t *__restrict __fmt,...), swprintf)
int __vswprintf_chk (wchar_t *__restrict __s, size_t __n, int __flag, size_t __s_len, __const wchar_t *__restrict __format, __gnuc_va_list __arg) __THROW
int __REDIRECT_NTH_LDBL (__vswprintf_alias,(wchar_t *__restrict __s, size_t __n, __const wchar_t *__restrict __fmt, __gnuc_va_list __ap), vswprintf)
__extern_always_inline int __NTH (vswprintf(wchar_t *__restrict __s, size_t __n, __const wchar_t *__restrict __fmt, __gnuc_va_list __ap))
wchar_t * __fgetws_chk (wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream) __wur
wchar_t * __REDIRECT (__fgetws_alias,(wchar_t *__restrict __s, int __n, __FILE *__restrict __stream), fgetws) __wur
wchar_t * __REDIRECT (__fgetws_chk_warn,(wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream), __fgetws_chk) __wur __warnattr("fgetws called with bigger size than length ""of destination buffer")
__extern_always_inline __wur
wchar_t * 
fgetws (wchar_t *__restrict __s, int __n, __FILE *__restrict __stream)
size_t __wcrtomb_chk (char *__s, wchar_t __wchar, mbstate_t *__p, size_t __buflen) __THROW __wur
size_t __REDIRECT_NTH (__wcrtomb_alias,(char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps), wcrtomb) __wur
size_t __REDIRECT_NTH (__mbsrtowcs_alias,(wchar_t *__restrict __dst, __const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps), mbsrtowcs)
size_t __REDIRECT_NTH (__mbsrtowcs_chk_warn,(wchar_t *__restrict __dst, __const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen), __mbsrtowcs_chk) __warnattr("mbsrtowcs called with dst buffer smaller than len ""* sizeof (wchar_t)")
__extern_always_inline size_t __NTH (mbsrtowcs(wchar_t *__restrict __dst, __const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps))
size_t __wcsrtombs_chk (char *__restrict __dst, __const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen) __THROW
size_t __REDIRECT_NTH (__wcsrtombs_alias,(char *__restrict __dst, __const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps), wcsrtombs)
size_t __REDIRECT_NTH (__wcsrtombs_chk_warn,(char *__restrict __dst, __const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen), __wcsrtombs_chk) __warnattr("wcsrtombs called with dst buffer smaller than len")
__extern_always_inline size_t __NTH (wcsrtombs(char *__restrict __dst, __const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps))

Define Documentation

#define __WCHAR_MB_LEN_MAX   16
#define swprintf (   s,
  n,
  ... 
)
Value:
(__bos (s) != (size_t) -1 || __USE_FORTIFY_LEVEL > 1                        \
   ? __swprintf_chk (s, n, __USE_FORTIFY_LEVEL - 1,                         \
                   __bos (s) / sizeof (wchar_t), __VA_ARGS__)               \
   : swprintf (s, n, __VA_ARGS__))

Definition at line 295 of file wchar2.h.


Function Documentation

wchar_t* __fgetws_chk ( wchar_t *__restrict  __s,
size_t  __size,
int  __n,
__FILE *__restrict  __stream 
)
__extern_always_inline wchar_t* __NTH ( wmemcpy(wchar_t *__restrict __s1, __const wchar_t *__restrict __s2,size_t __n )

Definition at line 40 of file wchar2.h.

{
  if (__bos0 (__s1) != (size_t) -1)
    {
      if (!__builtin_constant_p (__n))
       return __wmemcpy_chk (__s1, __s2, __n,
                           __bos0 (__s1) / sizeof (wchar_t));

      if (__n > __bos0 (__s1) / sizeof (wchar_t))
       return __wmemcpy_chk_warn (__s1, __s2, __n,
                               __bos0 (__s1) / sizeof (wchar_t));
    }
  return __wmemcpy_alias (__s1, __s2, __n);
}

Here is the call graph for this function:

__extern_always_inline wchar_t* __NTH ( wmemmove(wchar_t *__restrict __s1, __const wchar_t *__restrict __s2,size_t __n )

Definition at line 70 of file wchar2.h.

{
  if (__bos0 (__s1) != (size_t) -1)
    {
      if (!__builtin_constant_p (__n))
       return __wmemmove_chk (__s1, __s2, __n,
                            __bos0 (__s1) / sizeof (wchar_t));

      if (__n > __bos0 (__s1) / sizeof (wchar_t))
       return __wmemmove_chk_warn (__s1, __s2, __n,
                                __bos0 (__s1) / sizeof (wchar_t));
    }
  return __wmemmove_alias (__s1, __s2, __n);
}

Here is the call graph for this function:

Definition at line 314 of file wchar2.h.

{
  if (__bos (__s) != (size_t) -1 || __USE_FORTIFY_LEVEL > 1)
    return __vswprintf_chk (__s, __n,  __USE_FORTIFY_LEVEL - 1,
                         __bos (__s) / sizeof (wchar_t), __fmt, __ap);
  return __vswprintf_alias (__s, __n, __fmt, __ap);
}

Here is the call graph for this function:

Definition at line 471 of file wchar2.h.

{
  if (__bos (__dst) != (size_t) -1)
    {
      if (!__builtin_constant_p (__len))
       return __mbsrtowcs_chk (__dst, __src, __len, __ps,
                            __bos (__dst) / sizeof (wchar_t));

      if (__len > __bos (__dst) / sizeof (wchar_t))
       return __mbsrtowcs_chk_warn (__dst, __src, __len, __ps,
                                 __bos (__dst) / sizeof (wchar_t));
    }
  return __mbsrtowcs_alias (__dst, __src, __len, __ps);
}

Here is the call graph for this function:

Definition at line 505 of file wchar2.h.

{
  if (__bos (__dst) != (size_t) -1)
    {
      if (!__builtin_constant_p (__len))
       return __wcsrtombs_chk (__dst, __src, __len, __ps, __bos (__dst));

      if (__len > __bos (__dst))
       return __wcsrtombs_chk_warn (__dst, __src, __len, __ps, __bos (__dst));
    }
  return __wcsrtombs_alias (__dst, __src, __len, __ps);
}

Here is the call graph for this function:

wchar_t* __REDIRECT ( __fgetws_alias  ,
(wchar_t *__restrict __s, int __n, __FILE *__restrict __stream)  ,
fgetws   
)
wchar_t* __REDIRECT ( __fgetws_chk_warn  ,
(wchar_t *__restrict __s, size_t __size, int __n, __FILE *__restrict __stream)  ,
__fgetws_chk   
)
wchar_t* __REDIRECT_NTH ( __wmemcpy_alias  ,
(wchar_t *__restrict __s1, __const wchar_t *__restrict __s2, size_t __n ,
wmemcpy   
)
wchar_t* __REDIRECT_NTH ( __wmemcpy_chk_warn  ,
(wchar_t *__restrict __s1, __const wchar_t *__restrict __s2, size_t __n, size_t __ns1)  ,
__wmemcpy_chk   
)
wchar_t* __REDIRECT_NTH ( __wmemmove_alias  ,
(wchar_t *__s1, __const wchar_t *__s2, size_t __n ,
wmemmove   
)
wchar_t* __REDIRECT_NTH ( __wmemmove_chk_warn  ,
(wchar_t *__restrict __s1, __const wchar_t *__restrict __s2, size_t __n, size_t __ns1)  ,
__wmemmove_chk   
)
wchar_t* __REDIRECT_NTH ( __wmemset_alias  ,
(wchar_t *__s, wchar_t __c, size_t __n ,
wmemset   
)
wchar_t* __REDIRECT_NTH ( __wmemset_chk_warn  ,
(wchar_t *__s, wchar_t __c, size_t __n, size_t __ns)  ,
__wmemset_chk   
)
wchar_t* __REDIRECT_NTH ( __wcscpy_alias  ,
(wchar_t *__restrict __dest, __const wchar_t *__restrict __src ,
wcscpy   
)
wchar_t* __REDIRECT_NTH ( __wcpcpy_alias  ,
(wchar_t *__dest, __const wchar_t *__src ,
wcpcpy   
)
wchar_t* __REDIRECT_NTH ( __wcsncpy_alias  ,
(wchar_t *__restrict __dest, __const wchar_t *__restrict __src, size_t __n ,
wcsncpy   
)
wchar_t* __REDIRECT_NTH ( __wcsncpy_chk_warn  ,
(wchar_t *__restrict __dest, __const wchar_t *__restrict __src, size_t __n, size_t __destlen)  ,
__wcsncpy_chk   
)
wchar_t* __REDIRECT_NTH ( __wcpncpy_alias  ,
(wchar_t *__restrict __dest, __const wchar_t *__restrict __src, size_t __n ,
wcpncpy   
)
wchar_t* __REDIRECT_NTH ( __wcpncpy_chk_warn  ,
(wchar_t *__restrict __dest, __const wchar_t *__restrict __src, size_t __n, size_t __destlen)  ,
__wcpncpy_chk   
)
wchar_t* __REDIRECT_NTH ( __wcscat_alias  ,
(wchar_t *__restrict __dest, __const wchar_t *__restrict __src ,
wcscat   
)
wchar_t* __REDIRECT_NTH ( __wcsncat_alias  ,
(wchar_t *__restrict __dest, __const wchar_t *__restrict __src, size_t __n ,
wcsncat   
)
size_t __REDIRECT_NTH ( __wcrtomb_alias  ,
(char *__restrict __s, wchar_t __wchar, mbstate_t *__restrict __ps)  ,
wcrtomb   
)
size_t __REDIRECT_NTH ( __mbsrtowcs_alias  ,
(wchar_t *__restrict __dst, __const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps)  ,
mbsrtowcs   
)
size_t __REDIRECT_NTH ( __mbsrtowcs_chk_warn  ,
(wchar_t *__restrict __dst, __const char **__restrict __src, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen)  ,
__mbsrtowcs_chk   
)
size_t __REDIRECT_NTH ( __wcsrtombs_alias  ,
(char *__restrict __dst, __const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps)  ,
wcsrtombs   
)
size_t __REDIRECT_NTH ( __wcsrtombs_chk_warn  ,
(char *__restrict __dst, __const wchar_t **__restrict __src, size_t __len, mbstate_t *__restrict __ps, size_t __dstlen)  ,
__wcsrtombs_chk   
)
int __REDIRECT_NTH_LDBL ( __swprintf_alias  ,
(wchar_t *__restrict __s, size_t __n, __const wchar_t *__restrict __fmt,...)  ,
swprintf   
)
int __REDIRECT_NTH_LDBL ( __vswprintf_alias  ,
(wchar_t *__restrict __s, size_t __n, __const wchar_t *__restrict __fmt, __gnuc_va_list __ap)  ,
vswprintf   
)
int __vswprintf_chk ( wchar_t *__restrict  __s,
size_t  __n,
int  __flag,
size_t  __s_len,
__const wchar_t *__restrict  __format,
__gnuc_va_list  __arg 
)
size_t __wcrtomb_chk ( char *  __s,
wchar_t  __wchar,
mbstate_t __p,
size_t  __buflen 
)

Definition at line 27 of file wcrtomb_chk.c.

{
  /* We do not have to implement the full wctomb semantics since we
     know that S cannot be NULL when we come here.  */
  if (buflen < MB_CUR_MAX)
    __chk_fail ();

  return __wcrtomb (s, wchar, ps);
}

Here is the call graph for this function:

size_t __wcsrtombs_chk ( char *__restrict  __dst,
__const wchar_t **__restrict  __src,
size_t  __len,
mbstate_t *__restrict  __ps,
size_t  __dstlen 
)
wchar_t* __wmemcpy_chk ( wchar_t *__restrict  __s1,
__const wchar_t *__restrict  __s2,
size_t  __n,
size_t  __ns1 
)
wchar_t* __wmemmove_chk ( wchar_t *  __s1,
__const wchar_t *  __s2,
size_t  __n,
size_t  __ns1 
)
wchar_t* __wmemset_chk ( wchar_t *  __s,
wchar_t  __c,
size_t  __n,
size_t  __ns 
)

Definition at line 24 of file wmemset_chk.c.

{
  if (__builtin_expect (dstlen < n, 0))
    __chk_fail ();

  return wmemset (s, c, n);
}

Here is the call graph for this function:

__extern_always_inline __wur wchar_t* fgetws ( wchar_t *__restrict  __s,
int  __n,
__FILE *__restrict  __stream 
)

Definition at line 383 of file wchar2.h.

{
  if (__bos (__s) != (size_t) -1)
    {
      if (!__builtin_constant_p (__n) || __n <= 0)
       return __fgetws_chk (__s, __bos (__s) / sizeof (wchar_t),
                          __n, __stream);

      if ((size_t) __n > __bos (__s) / sizeof (wchar_t))
       return __fgetws_chk_warn (__s, __bos (__s) / sizeof (wchar_t),
                              __n, __stream);
    }
  return __fgetws_alias (__s, __n, __stream);
}

Here is the call graph for this function: