filerec.inc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1993,97 by the Free Pascal development team
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. const
  12. {$ifdef linux}
  13. filerecnamelength = 255;
  14. {$endif}
  15. {$ifdef Win32}
  16. filerecnamelength = 255;
  17. {$endif}
  18. {$ifdef MACOS}
  19. filerecnamelength = 255;
  20. {$endif}
  21. {$ifdef AMIGA}
  22. filerecnamelength = 255;
  23. {$endif}
  24. {$ifdef OS2}
  25. filerecnamelength = 79;
  26. {$endif}
  27. {$ifdef GO32V2}
  28. filerecnamelength = 79;
  29. {$endif GO32V2}
  30. {$ifdef GO32V1}
  31. filerecnamelength = 79;
  32. {$endif Go32v1}
  33. {$ifdef ATARI}
  34. filerecnamelength = 79;
  35. {$endif}
  36. Type
  37. {$PACKRECORDS 2}
  38. FileRec = Record
  39. {$ifdef win32}
  40. handle : longint;
  41. {$endif win32}
  42. {$ifdef amiga}
  43. handle : longint;
  44. {$endif amiga}
  45. {$ifdef macos}
  46. handle : longint;
  47. {$endif macos}
  48. {$ifdef linux}
  49. handle : word;
  50. {$endif}
  51. {$ifdef go32v1}
  52. handle : word;
  53. {$endif go32v1}
  54. {$ifdef go32v2}
  55. handle : word;
  56. {$endif go32v2}
  57. {$ifdef atari}
  58. handle : word;
  59. {$endif atari}
  60. {$ifdef os2}
  61. handle : word;
  62. {$endif os2}
  63. Mode : word;
  64. RecSize : word;
  65. _private : array[1..26] of byte;
  66. UserData : array[1..16] of byte;
  67. name : array[0..filerecnamelength] of char;
  68. End;
  69. {
  70. $Log$
  71. Revision 1.3 1998-05-21 11:55:59 carl
  72. * works with all OS
  73. Revision 1.1.1.1 1998/03/25 11:18:43 root
  74. * Restored version
  75. Revision 1.7 1998/02/05 12:08:54 pierre
  76. * added packrecords to about dword alignment
  77. for structures used in dos calls
  78. Revision 1.6 1998/01/26 12:00:21 michael
  79. + Added log at the end
  80. Working file: rtl/inc/filerec.inc
  81. description:
  82. ----------------------------
  83. revision 1.5
  84. date: 1998/01/06 00:29:32; author: michael; state: Exp; lines: +20 -19
  85. Implemented a system independent sequence of reset/rewrite/append fileopenfunc etc system \n (from Peter Vreman)
  86. ----------------------------
  87. revision 1.4
  88. date: 1997/12/01 12:08:03; author: michael; state: Exp; lines: +13 -0
  89. + added copyright reference header.
  90. ----------------------------
  91. revision 1.3
  92. date: 1997/11/28 18:56:18; author: pierre; state: Exp; lines: +2 -1
  93. bug fix in ifdef win32
  94. ----------------------------
  95. revision 1.2
  96. date: 1997/11/27 22:49:04; author: florian; state: Exp; lines: +7 -0
  97. - CPU.PP added
  98. - some bugs in DOS fixed (espsecially for go32v1)
  99. - the win32 system unit is now compilable
  100. ----------------------------
  101. revision 1.1
  102. date: 1997/11/27 08:33:46; author: michael; state: Exp;
  103. Initial revision
  104. ----------------------------
  105. revision 1.1.1.1
  106. date: 1997/11/27 08:33:46; author: michael; state: Exp; lines: +0 -0
  107. FPC RTL CVS start
  108. =============================================================================
  109. }