w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

types.h
Go to the documentation of this file.
1 /*
2  * sys/types include file. Supports MSC and IBM C Set/2
3  */
4 
5 #ifndef __types_h
6 # define __types_h
7 # define _ANSI_H_ /* Stop GCC */
8 
9 # if !defined(__ino_t) && !defined(_INO_T_DEFINED)
10 typedef unsigned short ino_t;
11 typedef unsigned short _ino_t; /* i-node number (not used on DOS) */
12 # define _INO_T_DEFINED
13 # define __ino_t
14 # endif
15 
16 #if _MSC_VER < 1600
17 # if !defined(__time_t) && !defined(_TIME_T_DEFINED) && !defined(_TIME_T) && !defined(_TIME_T_DEFINED_)
18 typedef long time_t;
19 # define __time_t
20 # define _TIME_T_DEFINED
21 # define _TIME_T_DEFINED_
22 # define _TIME_T
23 # endif
24 #endif
25 
26 # if !defined(__dev_t) && !defined(_DEV_T_DEFINED)
27 typedef unsigned int dev_t;
28 typedef unsigned int _dev_t; /* device code */
29 # define __dev_t
30 # define _DEV_T_DEFINED
31 # endif
32 
33 # if !defined(__off_t) && !defined(_OFF_T_DEFINED)
34 typedef long off_t;
35 typedef long _off_t;
36 # define __off_t
37 # define _OFF_T_DEFINED
38 # endif
39 
40 # if !defined(_SIZE_T_DEFINED) && !defined(__size_t) && !defined(_SIZE_T) && !defined(_SIZE_T_DEFINED_)
41 
42 # ifdef __GNUC__
43 typedef long unsigned int size_t;
44 # else
45 typedef unsigned int size_t;
46 # endif
47 
48 # define _SIZE_T_DEFINED
49 # define _SIZE_T_DEFINED_
50 # define _SIZE_T
51 # define __size_t
52 # endif
53 
54 # if !defined (_CLOCK_T_DEFINED) && !defined (_CLOCK_T)
55 typedef long clock_t;
56 # define _CLOCK_T_DEFINED
57 # define _CLOCK_T
58 # endif
59 
60 /*
61  * IS additions
62  */
63 
64 # ifndef _BOOL_T_DEFINED
65 typedef unsigned char bool; /* Boolean: 0 = false, 1 = true */
66 # define _BOOL_T_DEFINED
67 # endif
68 
69 
70 typedef unsigned short ushort; /* 2-byte unsigned */
71 typedef unsigned long ulong; /* 4-byte unsigned */
72 typedef unsigned int uint; /* unsigned */
73 #ifndef WINNT
74 typedef ushort u_short;
75 # ifdef __GNUC__
76 typedef unsigned char u_char;
77 typedef unsigned long u_long;
78 # endif
79 #endif
80 typedef ushort mode_t;
81 typedef int pid_t;
82 typedef ushort uid_t;
83 typedef ushort gid_t;
84 typedef short nlink_t;
85 
86 /*
87  * System Constants
88  */
89 
90 # ifndef FALSE
91 # define FALSE ((bool)0) /* Boolean 'false' */
92 # endif
93 # ifndef TRUE
94 # define TRUE ((bool)1) /* Boolean 'true' */
95 # endif
96 
97 # ifdef __GNUC__
98 # define _VA_LIST_ char * /* va_list */
99 # define _WCHAR_T_ unsigned short /* wchar_t */
100 # define _PTRDIFF_T_ int /* ptr1 - ptr2 */
101 # endif
102 
103 #endif
unsigned char u_char
Definition: defines.h:140
ushort mode_t
Definition: types.h:80
int pid_t
Definition: types.h:81
long clock_t
Definition: types.h:55
ushort gid_t
Definition: types.h:83
unsigned long ulong
Definition: types.h:71
unsigned int size_t
Definition: types.h:45
unsigned short _ino_t
Definition: types.h:11
long _off_t
Definition: types.h:35
long time_t
Definition: types.h:18
unsigned int uint
Definition: types.h:72
unsigned char bool
Definition: types.h:65
unsigned int dev_t
Definition: types.h:27
unsigned short ino_t
Definition: types.h:10
short nlink_t
Definition: types.h:84
unsigned short ushort
Definition: types.h:70
unsigned int _dev_t
Definition: types.h:28
ushort uid_t
Definition: types.h:82
long off_t
Definition: types.h:34
ushort u_short
Definition: types.h:74
unsigned long u_long
Definition: vmsdir.h:26