stat.inc 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by Jonas Maebe,
  5. member of the Free Pascal development team.
  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. Stat = Packed Record // No unix typing because of differences
  13. // kernel <->libc
  14. case byte of
  15. 0: (st_dev : word;
  16. pad1 : word;
  17. st_ino : longint;
  18. st_mode,
  19. nlink,
  20. uid,
  21. gid : word;
  22. rdev : word;
  23. pad2 : word;
  24. st_size,
  25. st_blksze,
  26. st_blocks,
  27. st_atime,
  28. unused1,
  29. st_mtime,
  30. unused2,
  31. st_ctime,
  32. unused3,
  33. unused4,
  34. unused5 : longint;);
  35. 1: (
  36. dev : word;
  37. pad1_dummy : word;
  38. ino : longint;
  39. mode,
  40. nlink_dummy,
  41. uid_dummy,
  42. gid_dummy : word;
  43. rdev_dummy : word;
  44. pad2_dummy : word;
  45. size,
  46. blksze,
  47. blocks,
  48. atime,
  49. unused1_dummy,
  50. mtime,
  51. unused2_dummy,
  52. ctime,
  53. unused3_dummy,
  54. unused4_dummy,
  55. unused5_dummy : longint;
  56. );
  57. end;
  58. {
  59. $Log$
  60. Revision 1.1 2003-05-15 22:50:50 jonas
  61. * the stat type is processor-dependent
  62. * the dev_t tpye is processor dependent. Don't use it in the stat type
  63. however, as that one is also used at a time where dev_t is already
  64. defined as qword
  65. }