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.

69 lines
1.1 KiB

  1. /***
  2. *sys\timeb.h - definition/declarations for ftime()
  3. *
  4. * Copyright (c) 1985-1992, 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. ****/
  11. #ifndef _INC_TIMEB
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. #if (_MSC_VER <= 600)
  16. #define __cdecl _cdecl
  17. #define __far _far
  18. #endif
  19. #ifndef _TIME_T_DEFINED
  20. typedef long time_t;
  21. #define _TIME_T_DEFINED
  22. #endif
  23. /* structure returned by ftime system call */
  24. #ifndef _TIMEB_DEFINED
  25. #pragma pack(2)
  26. struct _timeb {
  27. time_t time;
  28. unsigned short millitm;
  29. short timezone;
  30. short dstflag;
  31. };
  32. #ifndef __STDC__
  33. /* Non-ANSI name for compatibility */
  34. struct timeb {
  35. time_t time;
  36. unsigned short millitm;
  37. short timezone;
  38. short dstflag;
  39. };
  40. #endif
  41. #pragma pack()
  42. #define _TIMEB_DEFINED
  43. #endif
  44. /* function prototypes */
  45. void __cdecl _ftime(struct _timeb *);
  46. #ifndef __STDC__
  47. /* Non-ANSI name for compatibility */
  48. void __cdecl ftime(struct timeb *);
  49. #endif
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #define _INC_TIMEB
  54. #endif