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
Update to tVFS_Node to support hard links
[tpg/acess2.git]
/
Kernel
/
vfs
/
open.c
diff --git
a/Kernel/vfs/open.c
b/Kernel/vfs/open.c
index
d203571
..
04facc7
100644
(file)
--- a/
Kernel/vfs/open.c
+++ b/
Kernel/vfs/open.c
@@
-4,6
+4,7
@@
*/
#define DEBUG 0
#include <acess.h>
*/
#define DEBUG 0
#include <acess.h>
+#include <mm_virt.h>
#include "vfs.h"
#include "vfs_int.h"
#include "vfs_ext.h"
#include "vfs.h"
#include "vfs_int.h"
#include "vfs_ext.h"
@@
-759,6
+760,8
@@
tVFS_Handle *VFS_GetHandle(int FD)
{
tVFS_Handle *h;
{
tVFS_Handle *h;
+ //Log_Debug("VFS", "VFS_GetHandle: (FD=0x%x)", FD);
+
if(FD < 0) return NULL;
if(FD & VFS_KERNEL_FLAG) {
if(FD < 0) return NULL;
if(FD & VFS_KERNEL_FLAG) {
@@
-771,6
+774,7
@@
tVFS_Handle *VFS_GetHandle(int FD)
}
if(h->Node == NULL) return NULL;
}
if(h->Node == NULL) return NULL;
+ //Log_Debug("VFS", "VFS_GetHandle: RETURN %p", h);
return h;
}
return h;
}
UCC
git Repository :: git.ucc.asn.au