*/
#define DEBUG 0
#include <acess.h>
+#include <mm_virt.h>
#include "vfs.h"
#include "vfs_int.h"
#include "vfs_ext.h"
return;
}
+ #if VALIDATE_VFS_FUNCTIPONS
+ if(h->Node->Close && !MM_GetPhysAddr(h->Node->Close)) {
+ Log_Warning("VFS", "Node %p's ->Close method is invalid (%p)",
+ h->Node, h->Node->Close);
+ return ;
+ }
+ #endif
+
if(h->Node->Close)
h->Node->Close( h->Node );
{
tVFS_Handle *h;
+ //Log_Debug("VFS", "VFS_GetHandle: (FD=0x%x)", FD);
+
if(FD < 0) return NULL;
if(FD & VFS_KERNEL_FLAG) {
}
if(h->Node == NULL) return NULL;
+ //Log_Debug("VFS", "VFS_GetHandle: RETURN %p", h);
return h;
}