home *** CD-ROM | disk | FTP | other *** search
/ Programming Win32 Under the API / ProgrammingWin32UnderTheApiPatVillani.iso / i386-mingw32 / include / sys / types.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-11-07  |  2.0 KB  |  119 lines

  1. /*
  2.  * types.h
  3.  *
  4.  * The definition of constants, data types and global variables.
  5.  *
  6.  * This file is part of the Mingw32 package.
  7.  *
  8.  * Contributors:
  9.  *  Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
  10.  *  Lots of types supplied by Pedro A. Aranda <paag@tid.es>
  11.  *
  12.  *  THIS SOFTWARE IS NOT COPYRIGHTED
  13.  *
  14.  *  This source code is offered for use in the public domain. You may
  15.  *  use, modify or distribute it freely.
  16.  *
  17.  *  This code is distributed in the hope that it will be useful but
  18.  *  WITHOUT ANY WARRANTY. ALL WARRENTIES, EXPRESS OR IMPLIED ARE HEREBY
  19.  *  DISCLAMED. This includes but is not limited to warrenties of
  20.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  21.  *
  22.  * $Revision: 1.7 $
  23.  * $Author: khan $
  24.  * $Date: 1998/12/29 21:41:40 $
  25.  *
  26.  */
  27.  
  28. #ifndef    _TYPES_H_
  29. #define    _TYPES_H_
  30.  
  31. /* All the headers include this file. */
  32. #include <_mingw.h>
  33.  
  34. #define __need_wchar_t
  35. #define __need_size_t
  36. #define __need_ptrdiff_t
  37. #ifndef RC_INVOKED
  38. #include <stddef.h>
  39. #endif    /* Not RC_INVOKED */
  40.  
  41. #ifndef RC_INVOKED
  42.  
  43. #ifndef    _TIME_T_
  44. #define    _TIME_T_
  45. typedef    long    time_t;
  46. #endif
  47.  
  48.  
  49. #ifndef    __STRICT_ANSI__
  50.  
  51. #ifndef    _OFF_T_
  52. #define    _OFF_T_
  53. typedef long _off_t;
  54.  
  55. #ifndef    _NO_OLDNAMES
  56. typedef _off_t    off_t;
  57. #endif
  58. #endif    /* Not _OFF_T_ */
  59.  
  60.  
  61. #ifndef _DEV_T_
  62. #define    _DEV_T_
  63. #ifdef __MSVCRT__
  64. typedef unsigned int _dev_t;
  65. #else
  66. typedef short _dev_t;
  67. #endif
  68.  
  69. #ifndef    _NO_OLDNAMES
  70. typedef _dev_t    dev_t;
  71. #endif
  72. #endif    /* Not _DEV_T_ */
  73.  
  74.  
  75. #ifndef _INO_T_
  76. #define    _INO_T_
  77. typedef short _ino_t;
  78.  
  79. #ifndef    _NO_OLDNAMES
  80. typedef _ino_t    ino_t;
  81. #endif
  82. #endif    /* Not _INO_T_ */
  83.  
  84.  
  85. #ifndef _PID_T_
  86. #define    _PID_T_
  87. typedef int    _pid_t;
  88.  
  89. #ifndef    _NO_OLDNAMES
  90. typedef _pid_t    pid_t;
  91. #endif
  92. #endif    /* Not _PID_T_ */
  93.  
  94.  
  95. #ifndef _MODE_T_
  96. #define    _MODE_T_
  97. typedef unsigned short _mode_t;
  98.  
  99. #ifndef    _NO_OLDNAMES
  100. typedef _mode_t    mode_t;
  101. #endif
  102. #endif    /* Not _MODE_T_ */
  103.  
  104.  
  105. #ifndef _SIGSET_T_
  106. #define    _SIGSET_T_
  107. typedef int    _sigset_t;
  108.  
  109. #ifndef    _NO_OLDNAMES
  110. typedef _sigset_t    sigset_t;
  111. #endif
  112. #endif    /* Not _SIGSET_T_ */
  113.  
  114. #endif    /* Not __STRICT_ANSI__ */
  115.  
  116. #endif    /* Not RC_INVOKED */
  117.  
  118. #endif    /* Not _TYPES_H_ */
  119.