Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
2.2 KiB

  1. /***
  2. *sys/timeb.h - definition/declarations for _ftime()
  3. *
  4. * Copyright (c) 1985-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * This file define the _ftime() function and the types it uses.
  8. * [System V]
  9. *
  10. * [Public]
  11. *
  12. ****/
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif
  16. #ifndef _INC_TIMEB
  17. #define _INC_TIMEB
  18. #if !defined(_WIN32)
  19. #error ERROR: Only Win32 target supported!
  20. #endif
  21. #ifdef _MSC_VER
  22. #pragma pack(push,8)
  23. #endif /* _MSC_VER */
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. /* Define _CRTIMP */
  28. #ifndef _CRTIMP
  29. #ifdef _DLL
  30. #define _CRTIMP __declspec(dllimport)
  31. #else /* ndef _DLL */
  32. #define _CRTIMP
  33. #endif /* _DLL */
  34. #endif /* _CRTIMP */
  35. /* Define __cdecl for non-Microsoft compilers */
  36. #if ( !defined(_MSC_VER) && !defined(__cdecl) )
  37. #define __cdecl
  38. #endif
  39. #ifndef _TIME_T_DEFINED
  40. #ifdef _WIN64
  41. typedef __int64 time_t; /* time value */
  42. #else
  43. typedef long time_t; /* time value */
  44. #endif
  45. #if _INTEGRAL_MAX_BITS >= 64
  46. typedef __int64 __time64_t;
  47. #endif
  48. #define _TIME_T_DEFINED /* avoid multiple def's of time_t */
  49. #endif
  50. /* Structure returned by _ftime system call */
  51. #ifndef _TIMEB_DEFINED
  52. struct _timeb {
  53. time_t time;
  54. unsigned short millitm;
  55. short timezone;
  56. short dstflag;
  57. };
  58. #if !__STDC__
  59. /* Non-ANSI name for compatibility */
  60. struct timeb {
  61. time_t time;
  62. unsigned short millitm;
  63. short timezone;
  64. short dstflag;
  65. };
  66. #endif
  67. #if _INTEGRAL_MAX_BITS >= 64
  68. struct __timeb64 {
  69. __time64_t time;
  70. unsigned short millitm;
  71. short timezone;
  72. short dstflag;
  73. };
  74. #endif
  75. #define _TIMEB_DEFINED
  76. #endif
  77. /* Function prototypes */
  78. _CRTIMP void __cdecl _ftime(struct _timeb *);
  79. #if !__STDC__
  80. /* Non-ANSI name for compatibility */
  81. _CRTIMP void __cdecl ftime(struct timeb *);
  82. #endif
  83. #if _INTEGRAL_MAX_BITS >= 64
  84. _CRTIMP void __cdecl _ftime64(struct __timeb64 *);
  85. #endif
  86. #ifdef __cplusplus
  87. }
  88. #endif
  89. #ifdef _MSC_VER
  90. #pragma pack(pop)
  91. #endif /* _MSC_VER */
  92. #endif /* _INC_TIMEB */