4 * - Exported Symbols from the VFS
10 #define VFS_MEMPATH_SIZE (3 + (BITS/8)*2)
11 #define VFS_OPENFLAG_EXEC 0x01
12 #define VFS_OPENFLAG_READ 0x02
13 #define VFS_OPENFLAG_WRITE 0x04
14 #define VFS_OPENFLAG_NOLINK 0x40
15 #define VFS_OPENFLAG_USER 0x80
16 #define VFS_KERNEL_FLAG 0x40000000
23 extern int VFS_Init();
25 extern int VFS_Open(char *Path, Uint Flags);
26 extern void VFS_Close(int FD);
28 extern int VFS_Seek(int FD, Sint64 Offset, int Direction);
29 extern Uint64 VFS_Tell(int FD);
31 extern Uint64 VFS_Read(int FD, Uint64 Length, void *Buffer);
32 extern Uint64 VFS_Write(int FD, Uint64 Length, void *Buffer);
34 extern Uint64 VFS_ReadAt(int FD, Uint64 Offset, Uint64 Length, void *Buffer);
35 extern Uint64 VFS_WriteAt(int FD, Uint64 Offset, Uint64 Length, void *Buffer);
37 extern int VFS_IOCtl(int FD, int ID, void *Buffer);
39 extern void VFS_GetMemPath(void *Base, Uint Length, char *Dest);
40 extern char *VFS_GetTruePath(char *Path);
42 extern int VFS_Mount(char *Device, char *MountPoint, char *Filesystem, char *Options);
43 extern int VFS_MkDir(char *Path);
44 extern int VFS_Symlink(char *Link, char *Dest);