smounth.inc 738 B

123456789101112131415161718192021222324252627282930
  1. const
  2. BLOCK_SIZE = 1024;
  3. BLOCK_SIZE_BITS = 10;
  4. MS_RDONLY = 1;
  5. MS_NOSUID = 2;
  6. MS_NODEV = 4;
  7. MS_NOEXEC = 8;
  8. MS_SYNCHRONOUS = 16;
  9. MS_REMOUNT = 32;
  10. MS_MANDLOCK = 64;
  11. S_WRITE = 128;
  12. S_APPEND = 256;
  13. S_IMMUTABLE = 512;
  14. MS_NOATIME = 1024;
  15. MS_NODIRATIME = 2048;
  16. MS_BIND = 4096;
  17. MS_RMT_MASK = MS_RDONLY or MS_MANDLOCK;
  18. MS_MGC_VAL = $c0ed0000;
  19. MS_MGC_MSK = $ffff0000;
  20. MNT_FORCE = 1;
  21. function mount(__special_file:Pchar; __dir:Pchar; __fstype:Pchar; __rwflag:dword; __data:pointer):longint;cdecl;external clib name 'mount';
  22. function umount(__special_file:Pchar):longint;cdecl;external clib name 'umount';
  23. function umount2(__special_file:Pchar; __flags:longint):longint;cdecl;external clib name 'umount2';