filerec.inc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by the Free Pascal development team
  5. FileRec record definition
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {
  13. This file contains the definition of the filerec record.
  14. It is put separately, so it is available outside the system
  15. unit without sacrificing TP compatibility.
  16. }
  17. const
  18. filerecnamelength = 255;
  19. type
  20. FileRec = Packed Record
  21. Handle : THandle;
  22. Mode : longint;
  23. RecSize : SizeInt;
  24. _private : array[1..3 * SizeOf(SizeInt) + 5 * SizeOf (pointer)] of byte;
  25. {$ifndef FPC_HASUSERDATA32}
  26. UserData : array[1..16] of byte;
  27. {$else FPC_HASUSERDATA32}
  28. UserData : array[1..32] of byte;
  29. {$endif FPC_HASUSERDATA32}
  30. name : array[0..filerecnamelength] of char;
  31. End;
  32. {
  33. $Log$
  34. Revision 1.8 2005-02-26 15:42:45 florian
  35. * userdata in file/textrecs now 32 bytes
  36. Revision 1.7 2005/02/14 17:13:22 peter
  37. * truncate log
  38. }