Cygwin: access: Fix X_OK behaviour for backup operators and admins
[newlib-cygwin.git] / newlib / libc / include / ssp / stdlib.h
blobd5edb6d09c38d0857f579540821e934175b9e78a
1 #ifndef _SSP_STDLIB_H_
2 #define _SSP_STDLIB_H_
4 #include <ssp/ssp.h>
6 #if __SSP_FORTIFY_LEVEL > 0
7 __BEGIN_DECLS
9 __ssp_decl(size_t, mbstowcs, (wchar_t *__buf, const char *__src, size_t __n))
11 if (__buf != NULL)
12 __ssp_check(__buf, __n * sizeof(wchar_t), __ssp_bos);
13 return __ssp_real_mbstowcs (__buf, __src, __n);
16 __ssp_redirect_raw(size_t, wcstombs, \
17 (char *__buf, const wchar_t *__src, size_t __len), \
18 (__buf, __src, __len), __buf != NULL, __ssp_bos);
20 __ssp_decl(int, wctomb, (char *__buf, wchar_t __wc))
22 if (__buf != NULL)
23 __ssp_check(__buf, MB_CUR_MAX, __ssp_bos);
24 return __ssp_real_wctomb (__buf, __wc);
27 __END_DECLS
29 #endif /* __SSP_FORTIFY_LEVEL > 0 */
30 #endif /* _SSP_STDLIB_H_ */