PageRenderTime 47ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/x86_64-w64-mingw32/include/sec_api/time_s.h

https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8
C Header | 60 lines | 45 code | 10 blank | 5 comment | 1 complexity | 4288b0e5ee958c5cab30559f44d0802d MD5 | raw file
Possible License(s): 0BSD, BSD-3-Clause, GPL-2.0, LGPL-2.0, GPL-3.0, LGPL-2.1, AGPL-1.0, LGPL-3.0
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef _TIME_H__S
  7. #define _TIME_H__S
  8. #include <time.h>
  9. #if defined(MINGW_HAS_SECURE_API)
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. errno_t __cdecl _ctime32_s (char *_Buf,size_t _SizeInBytes,const __time32_t *_Time);
  14. errno_t __cdecl _gmtime32_s (struct tm *_Tm,const __time32_t *_Time);
  15. errno_t __cdecl _localtime32_s (struct tm *_Tm,const __time32_t *_Time);
  16. errno_t __cdecl asctime_s (char *_Buf,size_t _SizeInWords,const struct tm *_Tm);
  17. errno_t __cdecl _strdate_s (char *_Buf,size_t _SizeInBytes);
  18. errno_t __cdecl _strtime_s (char *_Buf ,size_t _SizeInBytes);
  19. errno_t __cdecl _ctime64_s (char *_Buf,size_t _SizeInBytes,const __time64_t *_Time);
  20. errno_t __cdecl _gmtime64_s (struct tm *_Tm,const __time64_t *_Time);
  21. errno_t __cdecl _localtime64_s (struct tm *_Tm,const __time64_t *_Time);
  22. #ifndef _WTIME_S_DEFINED
  23. #define _WTIME_S_DEFINED
  24. errno_t __cdecl _wasctime_s (wchar_t *_Buf,size_t _SizeInWords,const struct tm *_Tm);
  25. errno_t __cdecl _wctime32_s (wchar_t *_Buf,size_t _SizeInWords,const __time32_t *_Time);
  26. errno_t __cdecl _wstrdate_s (wchar_t *_Buf,size_t _SizeInWords);
  27. errno_t __cdecl _wstrtime_s (wchar_t *_Buf,size_t _SizeInWords);
  28. errno_t __cdecl _wctime64_s (wchar_t *_Buf,size_t _SizeInWords,const __time64_t *_Time);
  29. #if !defined (RC_INVOKED) && !defined (_INC_WTIME_S_INL)
  30. #define _INC_WTIME_S_INL
  31. errno_t __cdecl _wctime_s(wchar_t *, size_t, const time_t *);
  32. #ifndef _USE_32BIT_TIME_T
  33. __CRT_INLINE errno_t __cdecl _wctime_s (wchar_t *_Buffer,size_t _SizeInWords,const time_t *_Time) { return _wctime64_s (_Buffer,_SizeInWords,_Time); }
  34. #endif
  35. #endif
  36. #endif
  37. #ifndef RC_INVOKED
  38. #ifdef _USE_32BIT_TIME_T
  39. __CRT_INLINE errno_t __cdecl localtime_s(struct tm *_Tm,const time_t *_Time) { return _localtime32_s(_Tm,_Time); }
  40. __CRT_INLINE errno_t __cdecl gmtime_s(struct tm *_Tm, const time_t *_Time) { return _gmtime32_s(_Tm, _Time); }
  41. #else
  42. __CRT_INLINE errno_t __cdecl localtime_s(struct tm *_Tm,const time_t *_Time) { return _localtime64_s(_Tm,_Time); }
  43. __CRT_INLINE errno_t __cdecl gmtime_s(struct tm *_Tm, const time_t *_Time) { return _gmtime64_s(_Tm, _Time); }
  44. #endif
  45. #endif
  46. #ifdef __cplusplus
  47. }
  48. #endif
  49. #endif
  50. #endif