stat.inc 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2003 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. case byte of
  14. 0: (st_dev : word;
  15. __pad1 : word;
  16. st_ino : cardinal;
  17. st_mode : word;
  18. nlink : smallint;
  19. uid : word;
  20. gid : word;
  21. rdev : word;
  22. __pad2 : word;
  23. st_size : longint;
  24. st_atime : longint;
  25. st_atime_nsecs : cardinal;
  26. st_mtime : longint;
  27. st_mtime_nsecs : cardinal;
  28. st_ctime : longint;
  29. st_ctime_nsecs : cardinal;
  30. st_blksize : longint;
  31. st_blocks : longint;
  32. __unused1,
  33. __unused2 : cardinal;
  34. );
  35. 1: (dev : word;
  36. __pad3 : word;
  37. ino : word;
  38. mode : cardinal;
  39. nlink_dummy : smallint;
  40. uid_dummy,
  41. gid_dummy,
  42. rdev_dummy : word;
  43. __pad4 : word;
  44. size : longint;
  45. atime,
  46. __unused1_dummy,
  47. mtime,
  48. __unused2_dummy,
  49. ctime,
  50. __unused3_dummy,
  51. blksize,
  52. blocks : longint;
  53. __unused4_dummy,
  54. __unused5_dummy : cardinal;
  55. );
  56. end;
  57. {
  58. $Log$
  59. Revision 1.3 2004-05-27 23:15:14 peter
  60. * remove warnign
  61. Revision 1.2 2004/05/27 23:15:02 peter
  62. * startup argc,argv,envp fix
  63. * stat fixed
  64. Revision 1.1 2003/05/23 22:36:39 florian
  65. * fixed compilation of sparc system unit
  66. }