More work on x86_64 port, also cleaned up a little of the API.
[tpg/acess2.git] / Kernel / include / vfs_ext.h
index 816c4a0..c9d5110 100644 (file)
@@ -7,8 +7,8 @@
 #define _VFS_EXT_H
 
 // === CONSTANTS ===
-//! maximum size of a Memory Path generated by VFS_GetMemPath
-#define        VFS_MEMPATH_SIZE        (3 + (BITS/8)*2)
+//! Maximum size of a Memory Path generated by VFS_GetMemPath
+#define        VFS_MEMPATH_SIZE        (3 + (BITS/4)*2)
 /**
  * \name Flags for VFS_Open
  * \{
@@ -165,7 +165,7 @@ extern int  VFS_ChRoot(char *New);
  * \brief Change the location of the current file pointer
  * \param FD   File handle returned by ::VFS_Open
  * \param Offset       Offset within the file to go to
- * \param Whence       A direction from ::eVFS_SeekDirs
+ * \param Direction    A direction from ::eVFS_SeekDirs
  * \return Boolean success
  */
 extern int     VFS_Seek(int FD, Sint64 Offset, int Direction);
@@ -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