X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Finclude%2Fvfs_ext.h;h=c9d51100dad8ec40c4291149c53a22ce2df9e440;hb=33bcf4b3feb0e5e4548548bf3d2a50c52ffb6115;hp=2fd7fd372ad115591df75c4e807a8e9147edfb8a;hpb=bf7d1cd5635d41bd7c58bf99c61cdc670291c543;p=tpg%2Facess2.git diff --git a/Kernel/include/vfs_ext.h b/Kernel/include/vfs_ext.h index 2fd7fd37..c9d51100 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 * \{ @@ -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