1{
2    This file is part of the Free Pascal run time library.
3    Copyright (c) 2001 by Free Pascal development team
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  { fd are int in C also for 64bit targets (x86_64) }
21  THandle = Longint;
22  TThreadID = THandle;
23
24  { pthread_mutex_t }
25  PRTLCriticalSection = ^TRTLCriticalSection;
26  TRTLCriticalSection = record
27    __m_reserved: longint;
28    __m_count: longint;
29    __m_owner: pointer;
30    __m_kind:  longint;
31    __m_lock:  record
32       __status: sizeint;
33      __spinlock: longint;
34    end;
35  end;
36