sysosh.inc 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  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. 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. {Platform specific information}
  14. type
  15. THandle = Longint;
  16. TThreadID = THandle;
  17. TOSTimestamp = Longint;
  18. { pthread_mutex_t }
  19. PRTLCriticalSection = ^TRTLCriticalSection;
  20. TRTLCriticalSection = record
  21. __m_reserved: longint;
  22. __m_count: longint;
  23. __m_owner: pointer;
  24. __m_kind: longint;
  25. __m_lock: record
  26. __status: sizeint;
  27. __spinlock: longint;
  28. end;
  29. end;