~ubuntu-branches/ubuntu/lucid/fpc/lucid-proposed

« back to all changes in this revision

Viewing changes to fpcsrc/packages/libc/src/typesh.inc

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-10-09 23:29:00 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20081009232900-553f61m37jkp6upv
Tags: 2.2.2-4
[ Torsten Werner ]
* Update ABI version in fpc-depends automatically.
* Remove empty directories from binary package fpc-source.

[ Mazen Neifer ]
* Removed leading path when calling update-alternatives to remove a Linitian
  error.
* Fixed clean target.
* Improved description of packages. (Closes: #498882)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{ ---------------------------------------------------------------------
 
2
    'h2pas -S -c -D -l libc -i' from bits/types.h sys/types.h
 
3
  ---------------------------------------------------------------------}
 
4
 
 
5
type
 
6
   __u_char = byte;
 
7
   __u_short = word;
 
8
   __u_int = dword;
 
9
   __u_long = dword;
 
10
   __u_quad_t = qword;
 
11
   __quad_t = int64;
 
12
 
 
13
   __int8_t = char;
 
14
   __uint8_t = byte;
 
15
   __int16_t = smallint;
 
16
   __uint16_t = word;
 
17
   __int32_t = longint;
 
18
   __uint32_t = dword;
 
19
   __int64_t = Int64;
 
20
   __uint64_t = Qword;
 
21
 
 
22
   __qaddr_t = __quad_t;
 
23
   __dev_t = __u_quad_t;
 
24
   __uid_t = __u_int;
 
25
   __gid_t = __u_int;
 
26
   __ino_t = __u_long;
 
27
   __mode_t = __u_int;
 
28
   __nlink_t = __u_int;
 
29
   __off_t = longint;
 
30
   __loff_t = __quad_t;
 
31
   __pid_t = longint;
 
32
   __ssize_t = longint;
 
33
   __rlim_t = __u_long;
 
34
   __rlim64_t = __u_quad_t;
 
35
   __id_t = __u_int;
 
36
   __fsid_t = record
 
37
        __val : array[0..1] of longint;
 
38
     end;
 
39
   __daddr_t = longint;
 
40
   __caddr_t = char;
 
41
   __time_t = longint;
 
42
   __useconds_t = dword;
 
43
   __suseconds_t = longint;
 
44
   __swblk_t = longint;
 
45
   __clock_t = longint;
 
46
   __clockid_t = longint;
 
47
   __timer_t = longint;
 
48
   __fd_mask = dWord;
 
49
 
 
50
const
 
51
  __FD_SETSIZE = 1024;
 
52
  __NFDBITS       = 8 * sizeof(__fd_mask);
 
53
 
 
54
type
 
55
  __fd_set = record
 
56
     fds_bits: packed array[0..(__FD_SETSIZE div __NFDBITS)-1] of __fd_mask;
 
57
  end;
 
58
  TFdSet = __fd_set;
 
59
  PFdSet = ^TFdSet;
 
60
 
 
61
 
 
62
type
 
63
  __key_t = longint;
 
64
  __ipc_pid_t = word;
 
65
  __blksize_t = longint;
 
66
  __blkcnt_t = longint;
 
67
  __blkcnt64_t = __quad_t;
 
68
  __fsblkcnt_t = __u_long;
 
69
  __fsblkcnt64_t = __u_quad_t;
 
70
  __fsfilcnt_t = __u_long;
 
71
  __fsfilcnt64_t = __u_quad_t;
 
72
  __ino64_t = __u_quad_t;
 
73
  __off64_t = __loff_t;
 
74
  __t_scalar_t = longint;
 
75
  __t_uscalar_t = dword;
 
76
  __intptr_t = longint;
 
77
  __socklen_t = dword;
 
78
  TFileDescriptor = integer;
 
79
 
 
80
Const
 
81
  stdin   = 0;
 
82
  stdout  = 1;
 
83
  stderr  = 2;
 
84
           
 
85
  
 
86
{ ---------------------------------------------------------------------
 
87
    'h2pas -S -c -D -l libc -i' from sys/types.h
 
88
  ---------------------------------------------------------------------}
 
89
 
 
90
Type
 
91
 
 
92
  u_char = __u_char;
 
93
  u_short = __u_short;
 
94
  u_int = __u_int;
 
95
  u_long = __u_long;
 
96
  quad_t = __quad_t;
 
97
  u_quad_t = __u_quad_t;
 
98
  fsid_t = __fsid_t;
 
99
  loff_t = __loff_t;
 
100
  ino_t = __ino_t;
 
101
  ino64_t = __ino64_t;
 
102
  dev_t = __dev_t;
 
103
  gid_t = __gid_t;
 
104
  mode_t = __mode_t;
 
105
  nlink_t = __nlink_t;
 
106
  uid_t = __uid_t;
 
107
  off_t = __off_t;
 
108
  off64_t = __off64_t;
 
109
  pid_t = __pid_t;
 
110
  id_t = __id_t;
 
111
  ssize_t = __ssize_t;
 
112
  daddr_t = __daddr_t;
 
113
  caddr_t = __caddr_t;
 
114
  key_t = __key_t;
 
115
  useconds_t = __useconds_t;
 
116
  suseconds_t = __suseconds_t;
 
117
  ulong = dword;
 
118
  ushort = word;
 
119
  uint = dword;
 
120
  int8_t = char;
 
121
  int16_t = smallint;
 
122
  int32_t = longint;
 
123
  u_int8_t = byte;
 
124
  u_int16_t = word;
 
125
  u_int32_t = dword;
 
126
  register_t = longint;
 
127
  blksize_t = __blksize_t;
 
128
  blkcnt_t = __blkcnt_t;
 
129
  fsblkcnt_t = __fsblkcnt_t;
 
130
  fsfilcnt_t = __fsfilcnt_t;
 
131
  blkcnt64_t = __blkcnt64_t;
 
132
  fsblkcnt64_t = __fsblkcnt64_t;
 
133
  fsfilcnt64_t = __fsfilcnt64_t;
 
134
 
 
135
  P__key_t = ^__key_t;
 
136
  P__ipc_pid_t = ^__ipc_pid_t;
 
137
  P__blksize_t = ^__blksize_t;
 
138
  P__blkcnt_t = ^__blkcnt_t;
 
139
  P__blkcnt64_t = ^__blkcnt64_t;
 
140
  P__fsblkcnt_t = ^__fsblkcnt_t;
 
141
  P__fsblkcnt64_t = ^__fsblkcnt64_t;
 
142
  P__fsfilcnt_t = ^__fsfilcnt_t;
 
143
  P__fsfilcnt64_t = ^__fsfilcnt64_t;
 
144
  P__ino64_t = ^__ino64_t;
 
145
  P__off64_t = ^__off64_t;
 
146
  P__t_scalar_t = ^__t_scalar_t;
 
147
  P__t_uscalar_t = ^__t_uscalar_t;
 
148
  P__intptr_t = ^__intptr_t;
 
149
  P__socklen_t = ^__socklen_t;
 
150
 
 
151
 
 
152
  Pu_char = ^u_char;
 
153
  Pu_short = ^u_short;
 
154
  Pu_int = ^u_int;
 
155
  Pu_long = ^u_long;
 
156
  Pquad_t = ^quad_t;
 
157
  Pu_quad_t = ^u_quad_t;
 
158
  Pfsid_t = ^fsid_t;
 
159
  Ploff_t = ^loff_t;
 
160
  Pino_t = ^ino_t;
 
161
  Pino64_t = ^ino64_t;
 
162
  Pdev_t = ^dev_t;
 
163
  Pgid_t = ^gid_t;
 
164
  Pmode_t = ^mode_t;
 
165
  Pnlink_t = ^nlink_t;
 
166
  Puid_t = ^uid_t;
 
167
  Poff_t = ^off_t;
 
168
  Poff64_t = ^off64_t;
 
169
  Ppid_t = ^pid_t;
 
170
  Pssize_t = ^ssize_t;
 
171
  Pdaddr_t = ^daddr_t;
 
172
  Pcaddr_t = ^caddr_t;
 
173
  Pkey_t = ^key_t;
 
174
  Puseconds_t = ^useconds_t;
 
175
  Psuseconds_t = ^suseconds_t;
 
176
  Pulong = ^ulong;
 
177
  Pushort = ^ushort;
 
178
  Puint = ^uint;
 
179
  Pint8_t = ^int8_t;
 
180
  Pint16_t = ^int16_t;
 
181
  Pint32_t = ^int32_t;
 
182
  Pu_int8_t = ^u_int8_t;
 
183
  Pu_int16_t = ^u_int16_t;
 
184
  Pu_int32_t = ^u_int32_t;
 
185
  Pregister_t = ^register_t;
 
186
  Pblksize_t = ^blksize_t;
 
187
  Pblkcnt_t = ^blkcnt_t;
 
188
  Pfsblkcnt_t = ^fsblkcnt_t;
 
189
  Pfsfilcnt_t = ^fsfilcnt_t;
 
190
  Pblkcnt64_t = ^blkcnt64_t;
 
191
  Pfsblkcnt64_t = ^fsblkcnt64_t;
 
192
  Pfsfilcnt64_t = ^fsfilcnt64_t;
 
193
 
 
194
  P__qaddr_t = ^__qaddr_t;
 
195
  P__dev_t = ^__dev_t;
 
196
  P__uid_t = ^__uid_t;
 
197
  P__gid_t = ^__gid_t;
 
198
  P__ino_t = ^__ino_t;
 
199
  P__mode_t = ^__mode_t;
 
200
  P__nlink_t = ^__nlink_t;
 
201
  P__off_t = ^__off_t;
 
202
  P__loff_t = ^__loff_t;
 
203
  P__pid_t = ^__pid_t;
 
204
  P__ssize_t = ^__ssize_t;
 
205
  P__rlim_t = ^__rlim_t;
 
206
  P__rlim64_t = ^__rlim64_t;
 
207
  P__id_t = ^__id_t;
 
208
  P__fsid_t = ^__fsid_t;
 
209
  P__daddr_t = ^__daddr_t;
 
210
  P__caddr_t = ^__caddr_t;
 
211
  P__time_t = ^__time_t;
 
212
  P__useconds_t = ^__useconds_t;
 
213
  P__suseconds_t = ^__suseconds_t;
 
214
  P__swblk_t = ^__swblk_t;
 
215
  P__clock_t = ^__clock_t;
 
216
  P__clockid_t = ^__clockid_t;
 
217
  P__timer_t = ^__timer_t;
 
218
 
 
219
 
 
220
{ Macros }
 
221
Function __FDELT(d: longint): Integer;
 
222
Function __FDMASK(d: longint): __fd_mask;
 
223
 
 
224
{ Borland compatibility }
 
225
Type
 
226
 
 
227
  TFsID = __fsid_t;
 
228
  PFsID = ^TFsID;
 
229