Fixed Proc_ReturnToUser's dependence on the structure of tThread
[tpg/acess2.git] / Kernel / include / vfs_ext.h
index e2f0344..cfd6949 100644 (file)
@@ -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

UCC git Repository :: git.ucc.asn.au