Subversion Repositories f9daq

Rev

Blame | Last modification | View Log | RSS feed

  1. /***
  2. *sys/types.h - types returned by system level calls for file and time info
  3. *
  4. *       Copyright (c) Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *       This file defines types used in defining values returned by system
  8. *       level calls for file status and time information.
  9. *       [System V]
  10. *
  11. *       [Public]
  12. *
  13. ****/
  14.  
  15. #pragma once
  16.  
  17. #ifndef _INC_TYPES
  18. #define _INC_TYPES
  19.  
  20. #if     !defined(_WIN32)
  21. #error ERROR: Only Win32 target supported!
  22. #endif
  23.  
  24.  
  25. #if !defined(_W64)
  26. #if !defined(__midl) && (defined(_X86_) || defined(_M_IX86))
  27. #define _W64 __w64
  28. #else
  29. #define _W64
  30. #endif
  31. #endif
  32.  
  33. #ifdef  _USE_32BIT_TIME_T
  34. #ifdef  _WIN64
  35. #include <crtwrn.h>
  36. #endif
  37. #endif
  38.  
  39. #ifndef _TIME32_T_DEFINED
  40. typedef _W64 long __time32_t;   /* 32-bit time value */
  41. #define _TIME32_T_DEFINED
  42. #endif
  43.  
  44. #ifndef _TIME64_T_DEFINED
  45. typedef __int64 __time64_t;     /* 64-bit time value */
  46. #define _TIME64_T_DEFINED
  47. #endif
  48.  
  49. #ifndef _TIME_T_DEFINED
  50. #ifdef _USE_32BIT_TIME_T
  51. typedef __time32_t time_t;      /* time value */
  52. #else
  53. typedef __time64_t time_t;      /* time value */
  54. #endif
  55. #define _TIME_T_DEFINED         /* avoid multiple def's of time_t */
  56. #endif
  57.  
  58.  
  59. #ifndef _INO_T_DEFINED
  60.  
  61. typedef unsigned short _ino_t;          /* i-node number (not used on DOS) */
  62.  
  63. #if     !__STDC__
  64. /* Non-ANSI name for compatibility */
  65. typedef unsigned short ino_t;
  66. #endif
  67.  
  68. #define _INO_T_DEFINED
  69. #endif
  70.  
  71.  
  72. #ifndef _DEV_T_DEFINED
  73.  
  74. typedef unsigned int _dev_t;            /* device code */
  75.  
  76. #if     !__STDC__
  77. /* Non-ANSI name for compatibility */
  78. typedef unsigned int dev_t;
  79. #endif
  80.  
  81. #define _DEV_T_DEFINED
  82. #endif
  83.  
  84.  
  85. #ifndef _OFF_T_DEFINED
  86.  
  87. typedef long _off_t;                    /* file offset value */
  88.  
  89. #if     !__STDC__
  90. /* Non-ANSI name for compatibility */
  91. typedef long off_t;
  92. #endif
  93.  
  94. #define _OFF_T_DEFINED
  95. #endif
  96.  
  97. #endif  /* _INC_TYPES */
  98.