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 - Removed #include <adt.h> from acess.h, reduce global deps
[tpg/acess2.git]
/
Kernel
/
vfs
/
main.c
diff --git
a/Kernel/vfs/main.c
b/Kernel/vfs/main.c
index
f072a28
..
c0c37e1
100644
(file)
--- a/
Kernel/vfs/main.c
+++ b/
Kernel/vfs/main.c
@@
-13,11
+13,13
@@
extern tVFS_Driver gRootFS_Info;
extern tVFS_Driver gDevFS_Info;
// === PROTOTYPES ===
extern tVFS_Driver gDevFS_Info;
// === PROTOTYPES ===
+#if 0
int VFS_Init(void);
int VFS_Init(void);
-char *VFS_GetTruePath(char *Path);
+char *VFS_GetTruePath(c
onst c
har *Path);
void VFS_GetMemPath(char *Dest, void *Base, Uint Length);
void VFS_GetMemPath(char *Dest, void *Base, Uint Length);
-tVFS_Driver *VFS_GetFSByName(char *Name);
+tVFS_Driver *VFS_GetFSByName(c
onst c
har *Name);
int VFS_AddDriver(tVFS_Driver *Info);
int VFS_AddDriver(tVFS_Driver *Info);
+#endif
void VFS_UpdateDriverFile(void);
// === EXPORTS ===
void VFS_UpdateDriverFile(void);
// === EXPORTS ===
@@
-62,18
+64,20
@@
int VFS_Init(void)
}
/**
}
/**
- * \fn char *VFS_GetTruePath(char *Path)
+ * \fn char *VFS_GetTruePath(c
onst c
har *Path)
* \brief Gets the true path (non-symlink) of a file
*/
* \brief Gets the true path (non-symlink) of a file
*/
-char *VFS_GetTruePath(char *Path)
+char *VFS_GetTruePath(c
onst c
har *Path)
{
tVFS_Node *node;
char *ret, *tmp;
tmp = VFS_GetAbsPath(Path);
if(tmp == NULL) return NULL;
{
tVFS_Node *node;
char *ret, *tmp;
tmp = VFS_GetAbsPath(Path);
if(tmp == NULL) return NULL;
+ //Log(" VFS_GetTruePath: tmp = '%s'", tmp);
node = VFS_ParsePath(tmp, &ret);
free(tmp);
node = VFS_ParsePath(tmp, &ret);
free(tmp);
+ //Log(" VFS_GetTruePath: node=%p, ret='%s'", node, ret);
if(!node) return NULL;
if(node->Close) node->Close(node);
if(!node) return NULL;
if(node->Close) node->Close(node);
@@
-88,17
+92,17
@@
char *VFS_GetTruePath(char *Path)
void VFS_GetMemPath(char *Dest, void *Base, Uint Length)
{
Dest[0] = '$';
void VFS_GetMemPath(char *Dest, void *Base, Uint Length)
{
Dest[0] = '$';
- itoa( &Dest[1], (
Uint
)Base, 16, BITS/4, '0' );
+ itoa( &Dest[1], (
tVAddr
)Base, 16, BITS/4, '0' );
Dest[BITS/4+1] = ':';
itoa( &Dest[BITS/4+2], Length, 16, BITS/4, '0' );
Dest[BITS/2+2] = '\0';
}
/**
Dest[BITS/4+1] = ':';
itoa( &Dest[BITS/4+2], Length, 16, BITS/4, '0' );
Dest[BITS/2+2] = '\0';
}
/**
- * \fn tVFS_Driver *VFS_GetFSByName(char *Name)
+ * \fn tVFS_Driver *VFS_GetFSByName(c
onst c
har *Name)
* \brief Gets a filesystem structure given a name
*/
* \brief Gets a filesystem structure given a name
*/
-tVFS_Driver *VFS_GetFSByName(char *Name)
+tVFS_Driver *VFS_GetFSByName(c
onst c
har *Name)
{
tVFS_Driver *drv = gVFS_Drivers;
{
tVFS_Driver *drv = gVFS_Drivers;
UCC
git Repository :: git.ucc.asn.au