X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=Kernel%2Fsyscalls.c;h=95ad2e5fe0a03bbb699e1d6673e5d8e9168d35e7;hb=e5e272c426a28f2f9e69ed2232469575c7409af1;hp=d286d21ddad243e94ac44dd5fd0707e0b4d7c0c4;hpb=3e11c7767641614fbb3fad38fffefa0da9e66919;p=tpg%2Facess2.git diff --git a/Kernel/syscalls.c b/Kernel/syscalls.c index d286d21d..95ad2e5f 100644 --- a/Kernel/syscalls.c +++ b/Kernel/syscalls.c @@ -25,7 +25,6 @@ extern Uint Proc_SendMessage(Uint *Err, Uint Dest, Uint Length, void *Data); extern int Proc_GetMessage(Uint *Err, Uint *Source, void *Buffer); extern int Proc_Execve(char *File, char **ArgV, char **EnvP); extern Uint Binary_Load(char *file, Uint *entryPoint); -extern int Threads_SetName(char *NewName); extern int Threads_SetUID(Uint *errno, tUID ID); extern int Threads_SetGID(Uint *errno, tGID ID); extern int Threads_SetFaultHandler(Uint Handler); @@ -248,6 +247,8 @@ void SyscallHandler(tSyscallRegs *Regs) // 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; @@ -310,8 +311,10 @@ void SyscallHandler(tSyscallRegs *Regs) // -- Debug //#if DEBUG_BUILD case SYS_DEBUG: - Log((char*)Regs->Arg1, + LogF("Log: [%i] ", Threads_GetTID()); + LogF((char*)Regs->Arg1, Regs->Arg2, Regs->Arg3, Regs->Arg4, Regs->Arg5, Regs->Arg6); + LogF("\n"); break; //#endif