sysunixh.inc 2.4 KB

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