sysunixh.inc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. This file is part of the Free Pascal Run time library.
  3. Copyright (c) 2001 by the Free Pascal development team
  4. This file contains the OS independent declarations of the system unit
  5. for unix styled systems
  6. See the File COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {$define newsignal}
  13. {$I systemh.inc}
  14. {$ifdef cpum68k}
  15. { used for single computations }
  16. const
  17. BIAS4 = $7f-1;
  18. {$endif cpum68k}
  19. const
  20. LineEnding = #10;
  21. LFNSupport = true;
  22. DirectorySeparator = '/';
  23. DriveSeparator = ':';
  24. PathSeparator = ':';
  25. { FileNameCaseSensitive is defined below! }
  26. maxExitCode = 255;
  27. {$ifdef LINUX}
  28. MaxPathLen = 4096; // linux has always got to be BIGGER
  29. {$else}
  30. MaxPathLen = 1024; // BSDs since 1993, Solaris 10, Darwin
  31. {$endif}
  32. const
  33. UnusedHandle = -1;
  34. StdInputHandle = 0;
  35. StdOutputHandle = 1;
  36. StdErrorHandle = 2;
  37. FileNameCaseSensitive : boolean = true;
  38. CtrlZMarksEOF: boolean = false; (* #26 not considered as end of file *)
  39. sLineBreak = LineEnding;
  40. DefaultTextLineBreakStyle : TTextLineBreakStyle = tlbsLF;
  41. {$ifndef Solaris}
  42. {$ifndef Darwin}
  43. var argc:longint;external name 'operatingsystem_parameter_argc';
  44. argv:PPchar;external name 'operatingsystem_parameter_argv';
  45. envp:PPchar;external name 'operatingsystem_parameter_envp';
  46. {$endif}
  47. {$endif}