home *** CD-ROM | disk | FTP | other *** search
/ OpenStep (Enterprise) / OpenStepENTCD.toast / OEDEV / DEV.Z / TYPES.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-08  |  2.1 KB  |  100 lines

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