diff options
Diffstat (limited to 'packages/libc/src/smounth.inc')
-rw-r--r-- | packages/libc/src/smounth.inc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/packages/libc/src/smounth.inc b/packages/libc/src/smounth.inc new file mode 100644 index 0000000000..fbd5b1f8bd --- /dev/null +++ b/packages/libc/src/smounth.inc @@ -0,0 +1,30 @@ + + +const + BLOCK_SIZE = 1024; + BLOCK_SIZE_BITS = 10; + + MS_RDONLY = 1; + MS_NOSUID = 2; + MS_NODEV = 4; + MS_NOEXEC = 8; + MS_SYNCHRONOUS = 16; + MS_REMOUNT = 32; + MS_MANDLOCK = 64; + S_WRITE = 128; + S_APPEND = 256; + S_IMMUTABLE = 512; + MS_NOATIME = 1024; + MS_NODIRATIME = 2048; + MS_BIND = 4096; + + MS_RMT_MASK = MS_RDONLY or MS_MANDLOCK; + MS_MGC_VAL = $c0ed0000; + MS_MGC_MSK = $ffff0000; + + MNT_FORCE = 1; + +function mount(__special_file:Pchar; __dir:Pchar; __fstype:Pchar; __rwflag:dword; __data:pointer):longint;cdecl;external clib name 'mount'; +function umount(__special_file:Pchar):longint;cdecl;external clib name 'umount'; +function umount2(__special_file:Pchar; __flags:longint):longint;cdecl;external clib name 'umount2'; + |