sysunixh.inc 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. const
  33. UnusedHandle = -1;
  34. StdInputHandle = 0;
  35. StdOutputHandle = 1;
  36. StdErrorHandle = 2;
  37. FileNameCaseSensitive : boolean = true;
  38. sLineBreak = LineEnding;
  39. DefaultTextLineBreakStyle : TTextLineBreakStyle = tlbsLF;
  40. {$ifndef Darwin}
  41. var argc:longint;external name 'operatingsystem_parameter_argc';
  42. argv:PPchar;external name 'operatingsystem_parameter_argv';
  43. envp:PPchar;external name 'operatingsystem_parameter_envp';
  44. {$endif}
  45. {
  46. $Log$
  47. Revision 1.21 2004-07-03 22:52:33 daniel
  48. * No envp,argv,argc declaration for Darwin
  49. Revision 1.20 2004/07/03 21:50:31 daniel
  50. * Modified bootstrap code so separate prt0.as/prt0_10.as files are no
  51. longer necessary
  52. Revision 1.19 2004/05/18 20:16:23 peter
  53. * unix thandle is always 32bit
  54. * textrec fixed for 64bit
  55. Revision 1.18 2003/10/17 20:49:02 olle
  56. * Changed m68k to cpum68k
  57. Revision 1.17 2003/10/16 15:43:13 peter
  58. * THandle is platform dependent
  59. Revision 1.16 2002/10/15 19:30:15 peter
  60. * remove threadh.inc include
  61. Revision 1.15 2002/09/07 16:01:28 peter
  62. * old logs removed and tabs fixed
  63. Revision 1.14 2002/07/01 16:29:05 peter
  64. * sLineBreak changed to normal constant like Kylix
  65. }