filerec.inc 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. {$else}
  15. {$ifdef Win32}
  16. filerecnamelength = 255;
  17. {$else}
  18. filerecnamelength = 79;
  19. {$endif}
  20. {$endif}
  21. Type
  22. {$PACKRECORDS 2}
  23. FileRec = Record
  24. {$ifdef win32}
  25. Handle : longint;
  26. {$else win32}
  27. Handle : word;
  28. {$endif win32}
  29. Mode : word;
  30. RecSize : word;
  31. _private : array[1..26] of byte;
  32. UserData : array[1..16] of byte;
  33. name : array[0..filerecnamelength] of char;
  34. End;
  35. {
  36. $Log$
  37. Revision 1.1 1998-03-25 11:18:43 root
  38. Initial revision
  39. Revision 1.7 1998/02/05 12:08:54 pierre
  40. * added packrecords to about dword alignment
  41. for structures used in dos calls
  42. Revision 1.6 1998/01/26 12:00:21 michael
  43. + Added log at the end
  44. Working file: rtl/inc/filerec.inc
  45. description:
  46. ----------------------------
  47. revision 1.5
  48. date: 1998/01/06 00:29:32; author: michael; state: Exp; lines: +20 -19
  49. Implemented a system independent sequence of reset/rewrite/append fileopenfunc etc system \n (from Peter Vreman)
  50. ----------------------------
  51. revision 1.4
  52. date: 1997/12/01 12:08:03; author: michael; state: Exp; lines: +13 -0
  53. + added copyright reference header.
  54. ----------------------------
  55. revision 1.3
  56. date: 1997/11/28 18:56:18; author: pierre; state: Exp; lines: +2 -1
  57. bug fix in ifdef win32
  58. ----------------------------
  59. revision 1.2
  60. date: 1997/11/27 22:49:04; author: florian; state: Exp; lines: +7 -0
  61. - CPU.PP added
  62. - some bugs in DOS fixed (espsecially for go32v1)
  63. - the win32 system unit is now compilable
  64. ----------------------------
  65. revision 1.1
  66. date: 1997/11/27 08:33:46; author: michael; state: Exp;
  67. Initial revision
  68. ----------------------------
  69. revision 1.1.1.1
  70. date: 1997/11/27 08:33:46; author: michael; state: Exp; lines: +0 -0
  71. FPC RTL CVS start
  72. =============================================================================
  73. }