stat.inc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2004 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. {$ifndef FPC_USE_LIBC} // kernel record
  13. stat = packed record
  14. st_dev : qword;
  15. st_ino : qword;
  16. st_nlink : qword;
  17. st_mode : dword;
  18. st_uid : dword;
  19. st_gid : dword;
  20. __pad0 : dword;
  21. st_rdev : qword;
  22. st_size : int64;
  23. st_blksize : int64;
  24. st_blocks : int64; { Number 512-byte blocks allocated. }
  25. st_atime : qword;
  26. __reserved0 : qword; { reserved for atime.nanoseconds }
  27. st_mtime : qword;
  28. __reserved1 : qword; { reserved for atime.nanoseconds }
  29. st_ctime : qword;
  30. __reserved2 : qword; { reserved for atime.nanoseconds }
  31. __unused : array[0..2] of int64;
  32. end;
  33. {$else}
  34. (* get it from glibc/sysdeps/unix/sysv/linux/x86_64/bits/stat.h and check defines with gcc *)
  35. {$endif}
  36. {
  37. $Log$
  38. Revision 1.1 2004-02-05 01:16:12 florian
  39. + completed x86-64/linux system unit
  40. }