fpc/packages/libc/src/smounth.inc
Michaël Van Canneyt 6535a72a08 * PChar -> PAnsiChar
2023-07-15 18:22:36 +02:00

31 lines
758 B
PHP

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:PAnsiChar; __dir:PAnsiChar; __fstype:PAnsiChar; __rwflag:dword; __data:pointer):longint;cdecl;external clib name 'mount';
function umount(__special_file:PAnsiChar):longint;cdecl;external clib name 'umount';
function umount2(__special_file:PAnsiChar; __flags:longint):longint;cdecl;external clib name 'umount2';