sysunixh.inc 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. {
  2. $Id$
  3. This file is part of the Free Pascal Run time library.
  4. Copyright (c) 2001 by the Free Pascal development team
  5. This file contains the OS independent declarations of the system unit
  6. for unix styled systems
  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. {$define newsignal}
  14. {$I systemh.inc}
  15. {$ifdef Unix}
  16. type
  17. { the fields of this record are os dependent }
  18. { and they shouldn't be used in a program }
  19. { only the type TCriticalSection is important }
  20. TRTLCriticalSection = packed record
  21. DebugInfo : pointer;
  22. LockCount : longint;
  23. RecursionCount : longint;
  24. OwningThread : DWord;
  25. LockSemaphore : DWord;
  26. Reserved : DWord;
  27. end;
  28. { include threading stuff }
  29. {$i threadh.inc}
  30. {$endif unix}
  31. {$I heaph.inc}
  32. {$ifdef m68k}
  33. { used for single computations }
  34. const
  35. BIAS4 = $7f-1;
  36. {$endif}
  37. {Platform specific information}
  38. const
  39. LineEnding = #10;
  40. LFNSupport = true;
  41. DirectorySeparator = '/';
  42. DriveSeparator = ':';
  43. PathSeparator = ':';
  44. { FileNameCaseSensitive is defined below! }
  45. const
  46. UnusedHandle = -1;
  47. StdInputHandle = 0;
  48. StdOutputHandle = 1;
  49. StdErrorHandle = 2;
  50. FileNameCaseSensitive : boolean = true;
  51. sLineBreak : string[1] = LineEnding;
  52. DefaultTextLineBreakStyle : TTextLineBreakStyle = tlbsLF;
  53. var
  54. argc : longint;
  55. argv : ppchar;
  56. envp : ppchar;
  57. {
  58. $Log$
  59. Revision 1.13 2001-11-08 13:56:35 marco
  60. * Fixed a ifdef linux to ifdef unix (related to TRTL change)
  61. Revision 1.12 2001/10/23 21:51:03 peter
  62. * criticalsection renamed to rtlcriticalsection for kylix compatibility
  63. Revision 1.11 2001/10/14 13:33:21 peter
  64. * start of thread support for linux
  65. Revision 1.10 2001/06/27 21:37:39 peter
  66. * v10 merges
  67. Revision 1.9 2001/06/18 14:26:16 jonas
  68. * move platform independent constant declarations after inclusion of
  69. systemh.inc
  70. Revision 1.8 2001/06/13 22:20:11 hajny
  71. + platform specific information
  72. Revision 1.7 2001/04/13 23:49:49 peter
  73. * fixes for the stricter compiler
  74. Revision 1.6 2001/04/13 22:30:55 peter
  75. * added filenamecasesensitive var
  76. Revision 1.5 2001/03/22 21:56:27 florian
  77. * typo fixed
  78. Revision 1.4 2001/03/21 23:32:13 florian
  79. + header and log added
  80. }