* AcessMicro VFS
* - File IO Passthru's
*/
-#include <common.h>
+#include <acess.h>
#include "vfs.h"
#include "vfs_int.h"
}
/**
- * \fn int VFS_Seek(int FD, Sint64 Distance, int Whence)
+ * \fn int VFS_Seek(int FD, Sint64 Offset, int Whence)
* \brief Seek to a new location
* \param FD File descriptor
- * \param Distance Where to go
+ * \param Offset Where to go
* \param Whence From where
*/
-int VFS_Seek(int FD, Sint64 Distance, int Whence)
+int VFS_Seek(int FD, Sint64 Offset, int Whence)
{
tVFS_Handle *h;
// Set relative to current position
if(Whence == 0) {
- h->Position += Distance;
+ h->Position += Offset;
return 0;
}
// Set relative to end of file
if(Whence < 0) {
- h->Position = h->Node->Size - Distance;
+ h->Position = h->Node->Size - Offset;
return 0;
}
// Set relative to start of file
- h->Position = Distance;
+ h->Position = Offset;
return 0;
}
}
/**
- * \fn int VFS_FInfo(int FD, struct s_sysFInfo *Dest, int MaxACLs)
+ * \fn int VFS_FInfo(int FD, tFInfo *Dest, int MaxACLs)
* \brief Retrieve file information
* \return Number of ACLs stored
*/
-int VFS_FInfo(int FD, struct s_sysFInfo *Dest, int MaxACLs)
+int VFS_FInfo(int FD, tFInfo *Dest, int MaxACLs)
{
tVFS_Handle *h;
int max;
return max;
}
+
+// === EXPORTS ===
+EXPORT(VFS_Read);
+EXPORT(VFS_Write);
+EXPORT(VFS_ReadAt);
+EXPORT(VFS_WriteAt);
+EXPORT(VFS_IOCtl);
+EXPORT(VFS_Seek);
+EXPORT(VFS_Tell);