Kernel - Working on SYS_COPYFD
[tpg/acess2.git] / KernelLand / Kernel / include / vfs_ext.h
index 2cd4101..1bae964 100644 (file)
@@ -226,6 +226,13 @@ extern int VFS_OpenInode(Uint32 Mount, Uint64 Inode, int Mode);
  */
 extern void    VFS_Close(int FD);
 
+/**
+ * \brief Copy one FD to another
+ * \param SrcFD        Source file descriptor
+ * \param DstFD        Destination file descriptor (-1 means allocate new)
+ */
+extern int     VFS_DuplicateFD(int SrcFD, int DstFD);
+
 /**
  * \brief Get file information from an open file
  * \param FD   File handle returned by ::VFS_Open

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