Back to index

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

Go to the source code of this file.

Defines

#define __STDLIB_MB_LEN_MAX   16

Functions

char * __realpath_chk (__const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen) __THROW __wur
char * __REDIRECT_NTH (__realpath_alias,(__const char *__restrict __name, char *__restrict __resolved), realpath) __wur
char * __REDIRECT_NTH (__realpath_chk_warn,(__const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen), __realpath_chk) __wur __warnattr("second argument of realpath must be either NULL or at ""least PATH_MAX bytes long buffer")
int __REDIRECT_NTH (__ptsname_r_alias,(int __fd, char *__buf, size_t __buflen), ptsname_r) __nonnull((2))
int __REDIRECT_NTH (__ptsname_r_chk_warn,(int __fd, char *__buf, size_t __buflen, size_t __nreal), __ptsname_r_chk) __nonnull((2)) __warnattr("ptsname_r called with buflen bigger than ""size of buf")
int __REDIRECT_NTH (__wctomb_alias,(char *__s, wchar_t __wchar), wctomb) __wur
size_t __REDIRECT_NTH (__mbstowcs_alias,(wchar_t *__restrict __dst, __const char *__restrict __src, size_t __len), mbstowcs)
size_t __REDIRECT_NTH (__mbstowcs_chk_warn,(wchar_t *__restrict __dst, __const char *__restrict __src, size_t __len, size_t __dstlen), __mbstowcs_chk) __warnattr("mbstowcs called with dst buffer smaller than len ""* sizeof (wchar_t)")
__extern_always_inline size_t __NTH (mbstowcs(wchar_t *__restrict __dst, __const char *__restrict __src, size_t __len))
size_t __wcstombs_chk (char *__restrict __dst, __const wchar_t *__restrict __src, size_t __len, size_t __dstlen) __THROW
size_t __REDIRECT_NTH (__wcstombs_alias,(char *__restrict __dst, __const wchar_t *__restrict __src, size_t __len), wcstombs)
size_t __REDIRECT_NTH (__wcstombs_chk_warn,(char *__restrict __dst, __const wchar_t *__restrict __src, size_t __len, size_t __dstlen), __wcstombs_chk) __warnattr("wcstombs called with dst buffer smaller than len")
__extern_always_inline size_t __NTH (wcstombs(char *__restrict __dst, __const wchar_t *__restrict __src, size_t __len))

Define Documentation

#define __STDLIB_MB_LEN_MAX   16

Function Documentation

Definition at line 114 of file stdlib.h.

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

      if (__len > __bos (__dst) / sizeof (wchar_t))
       return __mbstowcs_chk_warn (__dst, __src, __len,
                                 __bos (__dst) / sizeof (wchar_t));
    }
  return __mbstowcs_alias (__dst, __src, __len);
}

Here is the call graph for this function:

Definition at line 145 of file stdlib.h.

{
  if (__bos (__dst) != (size_t) -1)
    {
      if (!__builtin_constant_p (__len))
       return __wcstombs_chk (__dst, __src, __len, __bos (__dst));
      if (__len > __bos (__dst))
       return __wcstombs_chk_warn (__dst, __src, __len, __bos (__dst));
    }
  return __wcstombs_alias (__dst, __src, __len);
}

Here is the call graph for this function:

char* __realpath_chk ( __const char *__restrict  __name,
char *__restrict  __resolved,
size_t  __resolvedlen 
)
char* __REDIRECT_NTH ( __realpath_alias  ,
(__const char *__restrict __name, char *__restrict __resolved)  ,
realpath   
)
char* __REDIRECT_NTH ( __realpath_chk_warn  ,
(__const char *__restrict __name, char *__restrict __resolved, size_t __resolvedlen)  ,
__realpath_chk   
)
int __REDIRECT_NTH ( __ptsname_r_alias  ,
(int __fd, char *__buf, size_t __buflen ,
ptsname_r   
)
int __REDIRECT_NTH ( __ptsname_r_chk_warn  ,
(int __fd, char *__buf, size_t __buflen, size_t __nreal)  ,
__ptsname_r_chk   
)
int __REDIRECT_NTH ( __wctomb_alias  ,
(char *__s, wchar_t __wchar)  ,
wctomb   
)
size_t __REDIRECT_NTH ( __mbstowcs_alias  ,
(wchar_t *__restrict __dst, __const char *__restrict __src, size_t __len ,
mbstowcs   
)
size_t __REDIRECT_NTH ( __mbstowcs_chk_warn  ,
(wchar_t *__restrict __dst, __const char *__restrict __src, size_t __len, size_t __dstlen)  ,
__mbstowcs_chk   
)
size_t __REDIRECT_NTH ( __wcstombs_alias  ,
(char *__restrict __dst, __const wchar_t *__restrict __src, size_t __len ,
wcstombs   
)
size_t __REDIRECT_NTH ( __wcstombs_chk_warn  ,
(char *__restrict __dst, __const wchar_t *__restrict __src, size_t __len, size_t __dstlen)  ,
__wcstombs_chk   
)
size_t __wcstombs_chk ( char *__restrict  __dst,
__const wchar_t *__restrict  __src,
size_t  __len,
size_t  __dstlen 
)