home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / sys / types.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-06-16  |  1.3 KB  |  72 lines

  1. /***
  2. *sys/types.h - types returned by system level calls for file and time info
  3. *
  4. *       Copyright (c) 1985-1997, 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. #if _MSC_VER > 1000
  16. #pragma once
  17. #endif
  18.  
  19. #ifndef _INC_TYPES
  20. #define _INC_TYPES
  21.  
  22. #if !defined(_WIN32) && !defined(_MAC)
  23. #error ERROR: Only Mac or Win32 targets supported!
  24. #endif
  25.  
  26.  
  27. #ifndef _TIME_T_DEFINED
  28. typedef long time_t;
  29. #define _TIME_T_DEFINED
  30. #endif
  31.  
  32.  
  33. #ifndef _INO_T_DEFINED
  34.  
  35. typedef unsigned short _ino_t;          /* i-node number (not used on DOS) */
  36.  
  37. #if     !__STDC__
  38. /* Non-ANSI name for compatibility */
  39. typedef unsigned short ino_t;
  40. #endif
  41.  
  42. #define _INO_T_DEFINED
  43. #endif
  44.  
  45.  
  46. #ifndef _DEV_T_DEFINED
  47.  
  48. typedef unsigned int _dev_t;            /* device code */
  49.  
  50. #if     !__STDC__
  51. /* Non-ANSI name for compatibility */
  52. typedef unsigned int dev_t;
  53. #endif
  54.  
  55. #define _DEV_T_DEFINED
  56. #endif
  57.  
  58.  
  59. #ifndef _OFF_T_DEFINED
  60.  
  61. typedef long _off_t;                    /* file offset value */
  62.  
  63. #if     !__STDC__
  64. /* Non-ANSI name for compatibility */
  65. typedef long off_t;
  66. #endif
  67.  
  68. #define _OFF_T_DEFINED
  69. #endif
  70.  
  71. #endif  /* _INC_TYPES */
  72.