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
Fixes to Vesa video driver and VTerm's mode setting
[tpg/acess2.git]
/
Kernel
/
vfs
/
io.c
diff --git
a/Kernel/vfs/io.c
b/Kernel/vfs/io.c
index
4a44b40
..
8ff15f5
100644
(file)
--- a/
Kernel/vfs/io.c
+++ b/
Kernel/vfs/io.c
@@
-2,7
+2,7
@@
* AcessMicro VFS
* - File IO Passthru's
*/
* AcessMicro VFS
* - File IO Passthru's
*/
-#include <
common
.h>
+#include <
acess
.h>
#include "vfs.h"
#include "vfs_int.h"
#include "vfs.h"
#include "vfs_int.h"
@@
-137,13
+137,13
@@
Uint64 VFS_Tell(int FD)
}
/**
}
/**
- * \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
* \brief Seek to a new location
* \param FD File descriptor
- * \param
Distance
Where to go
+ * \param
Offset
Where to go
* \param Whence From where
*/
* \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;
{
tVFS_Handle *h;
@@
-152,18
+152,18
@@
int VFS_Seek(int FD, Sint64 Distance, int Whence)
// Set relative to current position
if(Whence == 0) {
// 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) {
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
return 0;
}
// Set relative to start of file
- h->Position =
Distance
;
+ h->Position =
Offset
;
return 0;
}
return 0;
}
@@
-182,24
+182,12
@@
int VFS_IOCtl(int FD, int ID, void *Buffer)
return h->Node->IOCtl(h->Node, ID, Buffer);
}
return h->Node->IOCtl(h->Node, ID, Buffer);
}
-// -- System Call Structures ---
-struct s_sysFInfo {
- Uint uid, gid;
- Uint flags;
- Uint64 size;
- Sint64 atime;
- Sint64 mtime;
- Sint64 ctime;
- int numacls;
- tVFS_ACL acls[];
-};
-
/**
/**
- * \fn int VFS_FInfo(int FD,
struct s_sys
FInfo *Dest, int MaxACLs)
+ * \fn int VFS_FInfo(int FD,
t
FInfo *Dest, int MaxACLs)
* \brief Retrieve file information
* \return Number of ACLs stored
*/
* \brief Retrieve file information
* \return Number of ACLs stored
*/
-int VFS_FInfo(int FD,
struct s_sys
FInfo *Dest, int MaxACLs)
+int VFS_FInfo(int FD,
t
FInfo *Dest, int MaxACLs)
{
tVFS_Handle *h;
int max;
{
tVFS_Handle *h;
int max;
@@
-224,3
+212,12
@@
int VFS_FInfo(int FD, struct s_sysFInfo *Dest, int MaxACLs)
return 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);
UCC
git Repository :: git.ucc.asn.au