X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Finclude%2Fvfs_int.h;h=c2dacd349771c5e6028c6e92caf42e644636a6f5;hb=HEAD;hp=a8eadb6de40bc67b907f11929c94c982b546b907;hpb=bfacdd3b71576cf6ceaa83352d3a7d162adb75e1;p=tpg%2Facess2.git diff --git a/Kernel/include/vfs_int.h b/Kernel/include/vfs_int.h deleted file mode 100644 index a8eadb6d..00000000 --- a/Kernel/include/vfs_int.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Acess Micro - VFS Server Ver 1 - */ -#ifndef _VFS_INT_H -#define _VFS_INT_H - -#include "vfs.h" - -// === TYPES === -typedef struct sVFS_Mount { - struct sVFS_Mount *Next; - char *MountPoint; - size_t MountPointLen; - Uint32 Identifier; - char *Device; - char *Options; - tVFS_Driver *Filesystem; - tVFS_Node *RootNode; - char StrData[]; -} tVFS_Mount; - -typedef struct sVFS_Handle { - tVFS_Node *Node; - tVFS_Mount *Mount; - Uint64 Position; - Uint Mode; -} tVFS_Handle; - -typedef struct sVFS_Proc { - struct sVFS_Proc *Next; - int ID; - int CwdLen; - Uint UID, GID; - char *Cwd; - int MaxHandles; - tVFS_Handle Handles[]; -} tVFS_Proc; - -typedef struct sVFS_MMapPage { - Uint64 FileOffset; - tPAddr PAddr; -} tVFS_MMapPage; - -// === GLOBALS === -extern tVFS_Mount *gVFS_Mounts; - -// === PROTOTYPES === -// --- open.c --- -extern char *VFS_GetAbsPath(const char *Path); -extern tVFS_Node *VFS_ParsePath(const char *Path, char **TruePath, tVFS_Mount **MountPoint); -extern tVFS_Handle *VFS_GetHandle(int FD); -// --- acls.c --- -extern int VFS_CheckACL(tVFS_Node *Node, Uint Permissions); -// --- mount.c --- -extern tVFS_Mount *VFS_GetMountByIdent(Uint32 MountID); -// --- dir.c --- -extern int VFS_MkNod(const char *Path, Uint Flags); - - -// --- VFS Helpers --- -static inline void _CloseNode(tVFS_Node *Node) -{ - if(Node && Node->Type && Node->Type->Close) - Node->Type->Close( Node ); -} - - -#endif