X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Finclude%2Fvfs_ext.h;h=cfd6949769c0b46d298023bd3a789768853870e6;hb=de2ae10743172075f2d527780bdfd890ccddb8e7;hp=e2f03447e58ce9d8f26351e9f311e18d286b503a;hpb=775bf8013abe9fe4ef3d4883ea2e43bba2a84da1;p=tpg%2Facess2.git diff --git a/Kernel/include/vfs_ext.h b/Kernel/include/vfs_ext.h index e2f03447..cfd69497 100644 --- a/Kernel/include/vfs_ext.h +++ b/Kernel/include/vfs_ext.h @@ -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