Navit SVN

/work/compile/navit/src/navit/support/libc/sys/types.h

00001 /*
00002  * types.h
00003  * This file has no copyright assigned and is placed in the Public Domain.
00004  * This file is a part of the mingw-runtime package.
00005  * No warranty is given; refer to the file DISCLAIMER within the package.
00006  *
00007  * The definition of constants, data types and global variables.
00008  *
00009  */
00010 
00011 #ifndef _TYPES_H_
00012 #define _TYPES_H_
00013 
00014 /* All the headers include this file. */
00015 #include <_mingw.h>
00016 
00017 #define __need_wchar_t
00018 #define __need_size_t
00019 #define __need_ptrdiff_t
00020 #ifndef RC_INVOKED
00021 #include <stddef.h>
00022 #endif  /* Not RC_INVOKED */
00023 
00024 #ifndef RC_INVOKED
00025 
00026 #ifndef _TIME_T_DEFINED
00027 typedef long    time_t;
00028 #define _TIME_T_DEFINED
00029 #endif
00030 
00031 #ifndef _TIME64_T_DEFINED
00032 typedef __int64 __time64_t;
00033 #define _TIME64_T_DEFINED
00034 #endif
00035 
00036 #ifndef _OFF_T_
00037 #define _OFF_T_
00038 typedef long _off_t;
00039 
00040 #ifndef _NO_OLDNAMES
00041 typedef _off_t  off_t;
00042 #endif
00043 #endif  /* Not _OFF_T_ */
00044 
00045 
00046 #ifndef _DEV_T_
00047 #define _DEV_T_
00048 #ifdef __MSVCRT__
00049 typedef unsigned int _dev_t;
00050 #else
00051 typedef short _dev_t;
00052 #endif
00053 
00054 #ifndef _NO_OLDNAMES
00055 typedef _dev_t  dev_t;
00056 #endif
00057 #endif  /* Not _DEV_T_ */
00058 
00059 
00060 #ifndef _INO_T_
00061 #define _INO_T_
00062 typedef short _ino_t;
00063 
00064 #ifndef _NO_OLDNAMES
00065 typedef _ino_t  ino_t;
00066 #endif
00067 #endif  /* Not _INO_T_ */
00068 
00069 
00070 #ifndef _PID_T_
00071 #define _PID_T_
00072 typedef int     _pid_t;
00073 
00074 #ifndef _NO_OLDNAMES
00075 typedef _pid_t  pid_t;
00076 #endif
00077 #endif  /* Not _PID_T_ */
00078 
00079 
00080 #ifndef _MODE_T_
00081 #define _MODE_T_
00082 typedef unsigned short _mode_t;
00083 
00084 #ifndef _NO_OLDNAMES
00085 typedef _mode_t mode_t;
00086 #endif
00087 #endif  /* Not _MODE_T_ */
00088 
00089 
00090 #ifndef _SIGSET_T_
00091 #define _SIGSET_T_
00092 typedef int     _sigset_t;
00093 
00094 #ifndef _NO_OLDNAMES
00095 typedef _sigset_t       sigset_t;
00096 #endif
00097 #endif  /* Not _SIGSET_T_ */
00098 
00099 #ifndef _SSIZE_T_
00100 #define _SSIZE_T_
00101 typedef long _ssize_t;
00102 
00103 #ifndef _NO_OLDNAMES
00104 typedef _ssize_t ssize_t;
00105 #endif
00106 #endif /* Not _SSIZE_T_ */ 
00107 
00108 #ifndef _FPOS64_T_
00109 #define _FPOS64_T_
00110 typedef long long fpos64_t;
00111 #endif
00112 
00113 #ifndef _OFF64_T_
00114 #define _OFF64_T_
00115 typedef long long off64_t;
00116 #endif
00117 
00118 #if !defined __NO_ISOCEXT
00119 typedef unsigned int useconds_t;
00120 #endif  /* Not __NO_ISOCEXT */
00121 
00122 #endif  /* Not RC_INVOKED */
00123 
00124 #endif  /* Not _TYPES_H_ */