sysosh.inc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 2001 by Free Pascal development team
  4. This file implements all the base types and limits required
  5. for a minimal POSIX compliant subset required to port the compiler
  6. to a new OS.
  7. See the file COPYING.FPC, included in this distribution,
  8. for details about the copyright.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. **********************************************************************}
  13. type
  14. THandle = Longint;
  15. TThreadID = Cardinal;
  16. TOSTimestamp = Int64;
  17. PRTLCriticalSection = ^TRTLCriticalSection;
  18. TRTLCriticalSection = record
  19. __pthread_mutex_flags : record
  20. __pthread_mutex_flag1 : word;
  21. __pthread_mutex_flag2 : byte;
  22. __pthread_mutex_ceiling : byte;
  23. __pthread_mutex_type : word;
  24. __pthread_mutex_magic : word;
  25. end;
  26. __pthread_mutex_lock : record
  27. case longint of
  28. 0 : ( __pthread_mutex_lock64 : record
  29. __pthread_mutex_pad : array[0..7] of byte;
  30. end );
  31. 1 : ( __pthread_mutex_lock32 : record
  32. __pthread_ownerpid : dword;
  33. __pthread_lockword : dword;
  34. end );
  35. 2 : ( __pthread_mutex_owner64 : qword );
  36. end;
  37. __pthread_mutex_data : qword;
  38. end;