git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kernel - Update VFS API to use off_t/size_t instead of Uint64
[tpg/acess2.git]
/
KernelLand
/
Modules
/
Filesystems
/
FAT
/
fat.c
diff --git
a/KernelLand/Modules/Filesystems/FAT/fat.c
b/KernelLand/Modules/Filesystems/FAT/fat.c
index
f5d1916
..
c69a063
100644
(file)
--- a/
KernelLand/Modules/Filesystems/FAT/fat.c
+++ b/
KernelLand/Modules/Filesystems/FAT/fat.c
@@
-67,10
+67,10
@@
Uint32 FAT_int_FreeCluster(tFAT_VolInfo *Disk, Uint32 Cluster);
#endif
\r
void FAT_int_ReadCluster(tFAT_VolInfo *Disk, Uint32 Cluster, int Length, void *Buffer);
\r
// --- File IO
\r
#endif
\r
void FAT_int_ReadCluster(tFAT_VolInfo *Disk, Uint32 Cluster, int Length, void *Buffer);
\r
// --- File IO
\r
-
Uint64 FAT_Read(tVFS_Node *Node, Uint64 Offset, Uint64
Length, void *Buffer);
\r
+
size_t FAT_Read(tVFS_Node *Node, off_t Offset, size_t
Length, void *Buffer);
\r
#if SUPPORT_WRITE
\r
void FAT_int_WriteCluster(tFAT_VolInfo *Disk, Uint32 Cluster, void *Buffer);
\r
#if SUPPORT_WRITE
\r
void FAT_int_WriteCluster(tFAT_VolInfo *Disk, Uint32 Cluster, void *Buffer);
\r
-
Uint64 FAT_Write(tVFS_Node *Node, Uint64 Offset, Uint64
Length, void *Buffer);
\r
+
size_t FAT_Write(tVFS_Node *Node, off_t Offset, size_t
Length, void *Buffer);
\r
#endif
\r
// --- Directory IO
\r
char *FAT_ReadDir(tVFS_Node *Node, int ID);
\r
#endif
\r
// --- Directory IO
\r
char *FAT_ReadDir(tVFS_Node *Node, int ID);
\r
@@
-616,10
+616,9
@@
void FAT_int_ReadCluster(tFAT_VolInfo *Disk, Uint32 Cluster, int Length, void *B
* ====================
\r
*/
\r
/**
\r
* ====================
\r
*/
\r
/**
\r
- * \fn Uint64 FAT_Read(tVFS_Node *node, Uint64 offset, Uint64 length, void *buffer)
\r
* \brief Reads data from a specified file
\r
*/
\r
* \brief Reads data from a specified file
\r
*/
\r
-
Uint64 FAT_Read(tVFS_Node *Node, Uint64 Offset, Uint64
Length, void *Buffer)
\r
+
size_t FAT_Read(tVFS_Node *Node, off_t Offset, size_t
Length, void *Buffer)
\r
{
\r
int preSkip, count;
\r
Uint64 final_bytes;
\r
{
\r
int preSkip, count;
\r
Uint64 final_bytes;
\r
@@
-628,7
+627,7
@@
Uint64 FAT_Read(tVFS_Node *Node, Uint64 Offset, Uint64 Length, void *Buffer)
char tmpBuf[disk->BytesPerCluster];
\r
int bpc = disk->BytesPerCluster;
\r
\r
char tmpBuf[disk->BytesPerCluster];
\r
int bpc = disk->BytesPerCluster;
\r
\r
- ENTER("pNode Xoffset
X
length pbuffer", Node, Offset, Length, Buffer);
\r
+ ENTER("pNode Xoffset
x
length pbuffer", Node, Offset, Length, Buffer);
\r
\r
// Sanity Check offset
\r
if(Offset > Node->Size) {
\r
\r
// Sanity Check offset
\r
if(Offset > Node->Size) {
\r
@@
-754,7
+753,7
@@
void FAT_int_WriteCluster(tFAT_VolInfo *Disk, Uint32 Cluster, void *Buffer)
* \param Length Size of data to write
\r
* \param Buffer Data source
\r
*/
\r
* \param Length Size of data to write
\r
* \param Buffer Data source
\r
*/
\r
-
Uint64 FAT_Write(tVFS_Node *Node, Uint64 Offset, Uint64
Length, void *Buffer)
\r
+
size_t FAT_Write(tVFS_Node *Node, off_t Offset, size_t
Length, void *Buffer)
\r
{
\r
tFAT_VolInfo *disk = Node->ImplPtr;
\r
char tmpBuf[disk->BytesPerCluster];
\r
{
\r
tFAT_VolInfo *disk = Node->ImplPtr;
\r
char tmpBuf[disk->BytesPerCluster];
\r
UCC
git Repository :: git.ucc.asn.au