// Read Directory
case SYS_READDIR:
+ // TODO: What if the filename is longer?
+ // Maybe force it to be a 256 byte buffer
if( !Syscall_Valid(8, Regs->Arg2) ) {
err = -EINVAL;
ret = -1;
* Acess2 VFS
* - Open, Close and ChDir
*/
-#define DEBUG 1
+#define DEBUG 0
#include <acess.h>
#include <mm_virt.h>
#include "vfs.h"
* \todo Implement changing of the parent directory when a file is written to\r
* \todo Implement file creation / deletion\r
*/\r
-#define DEBUG 1\r
+#define DEBUG 0\r
#define VERBOSE 1\r
\r
#define CACHE_FAT 0 //!< Caches the FAT in memory\r
tFAT_VolInfo *disk = Parent->ImplPtr;\r
\r
ENTER("pParent pFT", Parent, Entry);\r
- LOG("disk = %p\n", disk);\r
+ LOG("disk = %p", disk);\r
\r
memset(&node, 0, sizeof(tVFS_Node));\r
\r
\r
DEBUGS("ElfRelocate: (Base=0x%x)\n", Base);\r
\r
+ // Check magic header\r
+ \r
+ \r
// Parse Program Header to get Dynamic Table\r
phtab = Base + hdr->phoff;\r
iSegmentCount = hdr->phentcount;\r
}
\r
if(dynsymtab == NULL) {\r
- SysDebug("WARNING: No Dynamic Symbol table, returning\n");\r
+ SysDebug("ld-acess.so - WARNING: No Dynamic Symbol table, returning\n");\r
return hdr->entrypoint;\r
}\r
\r