stat.inc 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. case byte of
  15. 0: (
  16. st_dev : qword;
  17. st_ino : qword;
  18. st_nlink : qword;
  19. st_mode : dword;
  20. st_uid : dword;
  21. st_gid : dword;
  22. __pad0 : dword;
  23. st_rdev : qword;
  24. st_size : int64;
  25. st_blksize : int64;
  26. st_blocks : int64; { Number 512-byte blocks allocated. }
  27. st_atime : qword;
  28. __reserved0 : qword; { reserved for atime.nanoseconds }
  29. st_mtime : qword;
  30. __reserved1 : qword; { reserved for atime.nanoseconds }
  31. st_ctime : qword;
  32. __reserved2 : qword; { reserved for atime.nanoseconds }
  33. __unused : array[0..2] of int64;
  34. );
  35. 1: (
  36. dev,
  37. ino,
  38. nlink : qword;
  39. mode,
  40. uid,
  41. gid : dword;
  42. pad1_dummy : dword;
  43. rdev : qword;
  44. size,
  45. blksze,
  46. blocks : int64;
  47. atime,
  48. unused1_dummy,
  49. mtime,
  50. unused2_dummy,
  51. ctime,
  52. unused3_dummy,
  53. unused4_dummy,
  54. unused5_dummy : qword;)
  55. end;
  56. {$else}
  57. (* get it from glibc/sysdeps/unix/sysv/linux/x86_64/bits/stat.h and check defines with gcc *)
  58. {$endif}
  59. {
  60. $Log$
  61. Revision 1.2 2004-05-09 15:42:50 peter
  62. * added aliases
  63. Revision 1.1 2004/02/05 01:16:12 florian
  64. + completed x86-64/linux system unit
  65. }