~ubuntu-branches/ubuntu/dapper/fpc/dapper

« back to all changes in this revision

Viewing changes to rtl/linux/ptypes.inc

  • Committer: Bazaar Package Importer
  • Author(s): Carlos Laviola
  • Date: 2005-05-30 11:59:10 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050530115910-x5pbzm4qqta4i94h
Tags: 2.0.0-2
debian/fp-compiler.postinst.in: forgot to reapply the patch that
correctly creates the slave link to pc(1).  (Closes: #310907)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
{
2
 
    $Id: ptypes.inc,v 1.10 2004/05/02 01:00:07 peter Exp $
 
2
    $Id: ptypes.inc,v 1.14 2005/03/16 22:26:12 florian Exp $
3
3
    This file is part of the Free Pascal run time library.
4
4
    Copyright (c) 2001 by Free Pascal development team
5
5
 
30
30
}
31
31
 
32
32
{$I ctypes.inc}
 
33
{$packrecords c}
33
34
 
34
35
Type
35
36
 
88
89
    clock_t  = culong;
89
90
    time_t   = clong;           { used for returning the time  }
90
91
{$endif}
 
92
    wint_t    = cint32;
91
93
    TSize     = size_t;
92
94
    pSize     = ^size_t;
 
95
    psize_t   = pSize;
93
96
    TSSize    = ssize_t;
94
97
    pSSize    = ^ssize_t;
95
98
    TClock    = clock_t;
98
101
    pTime     = ^time_t;
99
102
    ptime_t   = ^time_t;
100
103
 
 
104
    wchar_t   = widechar;
 
105
    pwchar_t  = ^wchar_t;
 
106
 
101
107
    uid_t    = cuint32;         { used for user ID type        }
102
108
    TUid     = uid_t;
103
109
    pUid     = ^uid_t;
134
140
  end;
135
141
  PStatFS=^TStatFS;
136
142
 
 
143
  pthread_t = culong;
 
144
 
 
145
  sched_param = record
 
146
    __sched_priority: cint;
 
147
  end;
 
148
 
 
149
  pthread_attr_t = record
 
150
    __detachstate: cint;
 
151
    __schedpolicy: cint;
 
152
    __schedparam: sched_param;
 
153
    __inheritsched: cint;
 
154
    __scope: cint;
 
155
    __guardsize: size_t;
 
156
    __stackaddr_set: cint;
 
157
    __stackaddr: pointer;
 
158
    __stacksize: size_t;
 
159
  end;
 
160
 
 
161
  _pthread_fastlock = record
 
162
    __status: clong;
 
163
    __spinlock: cint;
 
164
  end;
 
165
 
 
166
  pthread_mutex_t = record
 
167
    __m_reserved: cint;
 
168
    __m_count: cint;
 
169
    __m_owner: pointer;
 
170
    __m_kind:  cint;
 
171
    __m_lock: _pthread_fastlock;
 
172
  end;
 
173
 
 
174
  pthread_mutexattr_t = record
 
175
    __mutexkind: cint;
 
176
  end;
 
177
 
 
178
  pthread_cond_t = record
 
179
    __c_lock: _pthread_fastlock;
 
180
    __c_waiting: pointer;
 
181
    __padding: array[0..48-1-sizeof(_pthread_fastlock)-sizeof(pointer)-sizeof(clonglong)] of byte;
 
182
    __align: clonglong;
 
183
  end;
 
184
 
 
185
  pthread_condattr_t = record
 
186
    __dummy: cint;
 
187
  end;
 
188
 
 
189
  pthread_key_t = cuint;
 
190
 
 
191
  pthread_rwlock_t = record
 
192
    __rw_readers: cint;
 
193
    __rw_writer: pointer;
 
194
    __rw_read_waiting: pointer;
 
195
    __rw_write_waiting: pointer;
 
196
    __rw_kind: cint;
 
197
    __rw_pshared: cint;
 
198
  end;
 
199
 
 
200
  pthread_rwlockattr_t = record
 
201
    __lockkind: cint;
 
202
    __pshared: cint;
 
203
  end;
 
204
 
 
205
  sem_t = record
 
206
     __sem_lock: _pthread_fastlock;
 
207
     __sem_value: cint;
 
208
     __sem_waiting: pointer;
 
209
  end;
 
210
 
 
211
 
 
212
 
137
213
CONST
 
214
    _PTHREAD_MUTEX_TIMED_NP      = 0;
 
215
    _PTHREAD_MUTEX_RECURSIVE_NP  = 1;
 
216
    _PTHREAD_MUTEX_ERRORCHECK_NP = 2;
 
217
    _PTHREAD_MUTEX_ADAPTIVE_NP   = 3;
 
218
 
 
219
    _PTHREAD_MUTEX_NORMAL     = _PTHREAD_MUTEX_TIMED_NP;
 
220
    _PTHREAD_MUTEX_RECURSIVE  = _PTHREAD_MUTEX_RECURSIVE_NP;
 
221
    _PTHREAD_MUTEX_ERRORCHECK = _PTHREAD_MUTEX_ERRORCHECK_NP;
 
222
    _PTHREAD_MUTEX_DEFAULT    = _PTHREAD_MUTEX_NORMAL;
 
223
    _PTHREAD_MUTEX_FAST_NP    = _PTHREAD_MUTEX_ADAPTIVE_NP;
 
224
 
 
225
 
138
226
   { System limits, POSIX value in parentheses, used for buffer and stack allocation }
139
227
   { took idefix' values}
140
228
 
148
236
   SIG_MAXSIG      = 128;       // highest signal version
149
237
{$endif}
150
238
 
 
239
 { For getting/setting priority }
 
240
  Prio_Process = 0;
 
241
  Prio_PGrp    = 1;
 
242
  Prio_User    = 2;
 
243
 
151
244
{
152
245
   $Log: ptypes.inc,v $
153
 
   Revision 1.10  2004/05/02 01:00:07  peter
154
 
     * statfs fixed
155
 
 
156
 
   Revision 1.9  2004/04/26 16:53:19  peter
157
 
     * use cpu64
158
 
 
159
 
   Revision 1.8  2004/03/04 22:15:16  marco
160
 
    * UnixType changes. Please report problems to me.
161
 
 
162
 
   Revision 1.7  2004/01/11 09:56:20  jonas
163
 
     * moved tstatfs from systypes.inc to ptypes.inc to fix make cycle with
164
 
       -dFPC_USE_LIBC (systypes.inc is now completely commented out)
165
 
 
166
 
   Revision 1.6  2003/12/30 12:46:40  marco
167
 
    * ptime_t
168
 
 
169
 
   Revision 1.5  2003/09/27 13:45:58  peter
170
 
     * fpnanosleep exported in baseunix
171
 
     * fpnanosleep has pointer arguments to be C compliant
172
 
 
173
 
   Revision 1.4  2003/09/14 20:15:01  marco
174
 
    * Unix reform stage two. Remove all calls from Unix that exist in Baseunix.
175
 
 
176
 
   Revision 1.3  2002/12/18 16:43:26  marco
177
 
    * new unix rtl, linux part.....
178
 
 
179
 
   Revision 1.2  2002/11/12 14:28:40  marco
180
 
    * some updates
181
 
 
182
 
   Revision 1.1  2002/10/29 16:47:17  marco
183
 
    * Linux versions
184
 
 
 
246
   Revision 1.14  2005/03/16 22:26:12  florian
 
247
     + ansi<->wide implemented using iconv
 
248
 
 
249
   Revision 1.13  2005/02/14 17:13:30  peter
 
250
     * truncate log
185
251
 
186
252
}
187
253