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
doxygen fixes
[tpg/acess2.git]
/
Kernel
/
vfs
/
fs
/
devfs.c
diff --git
a/Kernel/vfs/fs/devfs.c
b/Kernel/vfs/fs/devfs.c
index
82b0387
..
d396a1f
100644
(file)
--- a/
Kernel/vfs/fs/devfs.c
+++ b/
Kernel/vfs/fs/devfs.c
@@
-3,13
+3,13
@@
* Device Filesystem (DevFS)
* - vfs/fs/devfs.c
*/
* Device Filesystem (DevFS)
* - vfs/fs/devfs.c
*/
-#include <
common
.h>
+#include <
acess
.h>
#include <vfs.h>
#include <fs_devfs.h>
// === PROTOTYPES ===
int DevFS_AddDevice(tDevFS_Driver *Dev);
#include <vfs.h>
#include <fs_devfs.h>
// === PROTOTYPES ===
int DevFS_AddDevice(tDevFS_Driver *Dev);
-tVFS_Node *DevFS_InitDevice(char *Device, char *Options);
+tVFS_Node *DevFS_InitDevice(char *Device, char *
*
Options);
char *DevFS_ReadDir(tVFS_Node *Node, int Pos);
tVFS_Node *DevFS_FindDir(tVFS_Node *Node, char *Name);
char *DevFS_ReadDir(tVFS_Node *Node, int Pos);
tVFS_Node *DevFS_FindDir(tVFS_Node *Node, char *Name);
@@
-21,7
+21,7
@@
tVFS_Node gDevFS_RootNode = {
.Size = 0,
.Flags = VFS_FFLAG_DIRECTORY,
.NumACLs = 1,
.Size = 0,
.Flags = VFS_FFLAG_DIRECTORY,
.NumACLs = 1,
- .ACLs = &gVFS_ACL_EveryoneR
W
,
+ .ACLs = &gVFS_ACL_EveryoneR
X
,
.ReadDir = DevFS_ReadDir,
.FindDir = DevFS_FindDir
};
.ReadDir = DevFS_ReadDir,
.FindDir = DevFS_FindDir
};
@@
-41,11
+41,11
@@
int DevFS_AddDevice(tDevFS_Driver *Dev)
}
/**
}
/**
- * \fn tVFS_Node *DevFS_InitDevice(char *Device, char *Options)
+ * \fn tVFS_Node *DevFS_InitDevice(char *Device, char *
*
Options)
* \brief Initialise the DevFS and detect double-mounting, or just do nothing
* \brief Initialise the DevFS and detect double-mounting, or just do nothing
- * \
stub
+ * \
note STUB
*/
*/
-tVFS_Node *DevFS_InitDevice(char *Device, char *Options)
+tVFS_Node *DevFS_InitDevice(char *Device, char *
*
Options)
{
return &gDevFS_RootNode;
}
{
return &gDevFS_RootNode;
}
@@
-64,7
+64,7
@@
char *DevFS_ReadDir(tVFS_Node *Node, int Pos)
dev = dev->Next
);
dev = dev->Next
);
- return
dev->Name
;
+ return
strdup(dev->Name)
;
}
/**
}
/**
UCC
git Repository :: git.ucc.asn.au