home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / sys / types.h < prev    next >
C/C++ Source or Header  |  1998-06-17  |  2KB  |  79 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  /* _MSC_VER > 1000 */
  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  /* !defined (_WIN32) && !defined (_MAC) */
  25.  
  26. #ifndef _CRTBLD
  27. /* This version of the header files is NOT for user programs.
  28.  * It is intended for use when building the C runtimes ONLY.
  29.  * The version intended for public use will not have this message.
  30.  */
  31. #error ERROR: Use of C runtime library internal header file.
  32. #endif  /* _CRTBLD */
  33.  
  34. #ifndef _TIME_T_DEFINED
  35. typedef long time_t;
  36. #define _TIME_T_DEFINED
  37. #endif  /* _TIME_T_DEFINED */
  38.  
  39.  
  40. #ifndef _INO_T_DEFINED
  41.  
  42. typedef unsigned short _ino_t;          /* i-node number (not used on DOS) */
  43.  
  44. #if !__STDC__
  45. /* Non-ANSI name for compatibility */
  46. typedef unsigned short ino_t;
  47. #endif  /* !__STDC__ */
  48.  
  49. #define _INO_T_DEFINED
  50. #endif  /* _INO_T_DEFINED */
  51.  
  52.  
  53. #ifndef _DEV_T_DEFINED
  54.  
  55. typedef unsigned int _dev_t;            /* device code */
  56.  
  57. #if !__STDC__
  58. /* Non-ANSI name for compatibility */
  59. typedef unsigned int dev_t;
  60. #endif  /* !__STDC__ */
  61.  
  62. #define _DEV_T_DEFINED
  63. #endif  /* _DEV_T_DEFINED */
  64.  
  65.  
  66. #ifndef _OFF_T_DEFINED
  67.  
  68. typedef long _off_t;                    /* file offset value */
  69.  
  70. #if !__STDC__
  71. /* Non-ANSI name for compatibility */
  72. typedef long off_t;
  73. #endif  /* !__STDC__ */
  74.  
  75. #define _OFF_T_DEFINED
  76. #endif  /* _OFF_T_DEFINED */
  77.  
  78. #endif  /* _INC_TYPES */
  79.