sysunixh.inc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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 cpum68k}
  16. { used for single computations }
  17. const
  18. BIAS4 = $7f-1;
  19. {$endif cpum68k}
  20. const
  21. LineEnding = #10;
  22. LFNSupport = true;
  23. DirectorySeparator = '/';
  24. DriveSeparator = ':';
  25. PathSeparator = ':';
  26. { FileNameCaseSensitive is defined below! }
  27. maxExitCode = 255;
  28. const
  29. UnusedHandle = -1;
  30. StdInputHandle = 0;
  31. StdOutputHandle = 1;
  32. StdErrorHandle = 2;
  33. FileNameCaseSensitive : boolean = true;
  34. sLineBreak = LineEnding;
  35. DefaultTextLineBreakStyle : TTextLineBreakStyle = tlbsLF;
  36. {$ifndef Darwin}
  37. var argc:longint;external name 'operatingsystem_parameter_argc';
  38. argv:PPchar;external name 'operatingsystem_parameter_argv';
  39. envp:PPchar;external name 'operatingsystem_parameter_envp';
  40. {$endif}
  41. {
  42. $Log$
  43. Revision 1.23 2005-02-06 11:20:52 peter
  44. * threading in system unit
  45. * removed systhrds unit
  46. Revision 1.22 2004/09/03 19:27:10 olle
  47. + added maxExitCode to all System.pp
  48. * constrained error code to be below maxExitCode in RunError et. al.
  49. Revision 1.21 2004/07/03 22:52:33 daniel
  50. * No envp,argv,argc declaration for Darwin
  51. Revision 1.20 2004/07/03 21:50:31 daniel
  52. * Modified bootstrap code so separate prt0.as/prt0_10.as files are no
  53. longer necessary
  54. Revision 1.19 2004/05/18 20:16:23 peter
  55. * unix thandle is always 32bit
  56. * textrec fixed for 64bit
  57. Revision 1.18 2003/10/17 20:49:02 olle
  58. * Changed m68k to cpum68k
  59. Revision 1.17 2003/10/16 15:43:13 peter
  60. * THandle is platform dependent
  61. Revision 1.16 2002/10/15 19:30:15 peter
  62. * remove threadh.inc include
  63. Revision 1.15 2002/09/07 16:01:28 peter
  64. * old logs removed and tabs fixed
  65. Revision 1.14 2002/07/01 16:29:05 peter
  66. * sLineBreak changed to normal constant like Kylix
  67. }