1{
2    This file is part of the Free Pascal run time library.
3    Copyright (c) 2007 by contributors of the Free Pascal Compiler
4
5    This file implements all the base types and limits required
6    for a minimal POSIX compliant subset required to port the compiler
7    to a new OS.
8
9    See the file COPYING.FPC, included in this distribution,
10    for details about the copyright.
11
12    This program is distributed in the hope that it will be useful,
13    but WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
16 **********************************************************************}
17
18{Platform specific information}
19type
20  THandle = Longint;
21  TThreadID = THandle;
22
23  { pthread_mutex_t }
24  PRTLCriticalSection = ^TRTLCriticalSection;
25  TRTLCriticalSection = record
26    __m_reserved: longint;
27    __m_count: longint;
28    __m_owner: pointer;
29    __m_kind:  longint;
30    __m_lock:  record
31       __status: sizeint;
32      __spinlock: longint;
33    end;
34  end;
35