summaryrefslogtreecommitdiff
path: root/kernel/syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/syscalls.c')
-rw-r--r--kernel/syscalls.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/syscalls.c b/kernel/syscalls.c
index 67ae48d..a49429d 100644
--- a/kernel/syscalls.c
+++ b/kernel/syscalls.c
@@ -95,8 +95,10 @@ int syscall_read(int file, char *buf, int len)
buf++;
l++;
+ return l;
if(l==len)return l;
if(c=='\n')return l;
+
}
//TODO: replace with dirent!
@@ -375,4 +377,5 @@ uint32_t syscall_generic(uint32_t nr,uint32_t p1, uint32_t p2, uint32_t p3, uint
case SYSCALL_POLL :
return syscall_poll(p1);
}
+ return -1;
}