X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Finclude%2Fvfs_ext.h;h=cfd6949769c0b46d298023bd3a789768853870e6;hb=b2934fe046a55291ae03035a6270db3b32950c8f;hp=2fd7fd372ad115591df75c4e807a8e9147edfb8a;hpb=bf7d1cd5635d41bd7c58bf99c61cdc670291c543;p=tpg%2Facess2.git diff --git a/Kernel/include/vfs_ext.h b/Kernel/include/vfs_ext.h index 2fd7fd37..cfd69497 100644 --- a/Kernel/include/vfs_ext.h +++ b/Kernel/include/vfs_ext.h @@ -8,7 +8,7 @@ // === CONSTANTS === //! Maximum size of a Memory Path generated by VFS_GetMemPath -#define VFS_MEMPATH_SIZE (3 + (BITS/8)*2) +#define VFS_MEMPATH_SIZE (3 + (BITS/4)*2) /** * \name Flags for VFS_Open * \{ @@ -109,7 +109,7 @@ typedef struct sFInfo * \brief Initialise the VFS (called by system.c) * \return Boolean Success */ -extern int VFS_Init(); +extern int VFS_Init(void); /** * \brief Open a file @@ -266,5 +266,15 @@ extern int VFS_Symlink(char *Name, char *Link); * \return Boolean Success */ extern int VFS_ReadDir(int FD, char *Dest); +/** + * \brief Opens a file via an open directory + * \note The file to open must be a direct child of the parent + * \param Errno Error number + * \param FD Parent Directory + * \param Name Child name + * \param Mode Open mode + * \return File handle (same as returned from VFS_Open) + */ +extern int VFS_OpenChild(Uint *Errno, int FD, char *Name, Uint Mode); #endif