sysunixh.inc 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 Solaris}
  37. {$ifndef Darwin}
  38. var argc:longint;external name 'operatingsystem_parameter_argc';
  39. argv:PPchar;external name 'operatingsystem_parameter_argv';
  40. envp:PPchar;external name 'operatingsystem_parameter_envp';
  41. {$endif}
  42. {$endif}
  43. {
  44. $Log$
  45. Revision 1.24 2005-02-14 16:32:41 peter
  46. * solaris updates
  47. Revision 1.23 2005/02/06 11:20:52 peter
  48. * threading in system unit
  49. * removed systhrds unit
  50. Revision 1.22 2004/09/03 19:27:10 olle
  51. + added maxExitCode to all System.pp
  52. * constrained error code to be below maxExitCode in RunError et. al.
  53. Revision 1.21 2004/07/03 22:52:33 daniel
  54. * No envp,argv,argc declaration for Darwin
  55. Revision 1.20 2004/07/03 21:50:31 daniel
  56. * Modified bootstrap code so separate prt0.as/prt0_10.as files are no
  57. longer necessary
  58. Revision 1.19 2004/05/18 20:16:23 peter
  59. * unix thandle is always 32bit
  60. * textrec fixed for 64bit
  61. Revision 1.18 2003/10/17 20:49:02 olle
  62. * Changed m68k to cpum68k
  63. Revision 1.17 2003/10/16 15:43:13 peter
  64. * THandle is platform dependent
  65. Revision 1.16 2002/10/15 19:30:15 peter
  66. * remove threadh.inc include
  67. Revision 1.15 2002/09/07 16:01:28 peter
  68. * old logs removed and tabs fixed
  69. Revision 1.14 2002/07/01 16:29:05 peter
  70. * sLineBreak changed to normal constant like Kylix
  71. }