bstatvfsh.inc 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. type
  2. Pstatvfs = ^_statvfs;
  3. _statvfs = record
  4. f_bsize : dword;
  5. f_frsize : dword;
  6. f_blocks : __fsblkcnt_t;
  7. f_bfree : __fsblkcnt_t;
  8. f_bavail : __fsblkcnt_t;
  9. f_files : __fsfilcnt_t;
  10. f_ffree : __fsfilcnt_t;
  11. f_favail : __fsfilcnt_t;
  12. f_fsid : dword;
  13. __f_unused : longint;
  14. f_flag : dword;
  15. f_namemax : dword;
  16. __f_spare : array[0..5] of longint;
  17. end;
  18. P_statvfs = ^_statvfs;
  19. Pstatvfs64 = ^_statvfs64;
  20. _statvfs64 = record
  21. f_bsize : dword;
  22. f_frsize : dword;
  23. f_blocks : __fsblkcnt64_t;
  24. f_bfree : __fsblkcnt64_t;
  25. f_bavail : __fsblkcnt64_t;
  26. f_files : __fsfilcnt64_t;
  27. f_ffree : __fsfilcnt64_t;
  28. f_favail : __fsfilcnt64_t;
  29. f_fsid : dword;
  30. __f_unused : longint;
  31. f_flag : dword;
  32. f_namemax : dword;
  33. __f_spare : array[0..5] of longint;
  34. end;
  35. P_statvfs64 = ^_statvfs64;
  36. Const
  37. ST_RDONLY = 1;
  38. ST_NOSUID = 2;
  39. ST_NODEV = 4;
  40. ST_NOEXEC = 8;
  41. ST_SYNCHRONOUS = 16;
  42. ST_MANDLOCK = 64;
  43. ST_WRITE = 128;
  44. ST_APPEND = 256;
  45. ST_IMMUTABLE = 512;
  46. ST_NOATIME = 1024;
  47. ST_NODIRATIME = 1025;
  48. { ---------------------------------------------------------------------
  49. Borland compatibility types
  50. ---------------------------------------------------------------------}
  51. Type
  52. TStatVFs = _statvfs;
  53. TStatVFs64 = _statvfs64;