summaryrefslogtreecommitdiff
path: root/kernel/syscalls.c
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-10-22 14:06:04 +0200
committerMichal Idziorek <m.i@gmx.at>2014-10-22 14:06:04 +0200
commit95450710a8b8290a110686d78c2357d3920bcda5 (patch)
tree4e3ef7556289bb1c18bce0c6e73235d497364a4d /kernel/syscalls.c
parent17d28200533f6a02d08cee2bf5352036bea92762 (diff)
working on filesys and readdir syscall
Diffstat (limited to 'kernel/syscalls.c')
-rw-r--r--kernel/syscalls.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/syscalls.c b/kernel/syscalls.c
index 1eca490..5ddd4c8 100644
--- a/kernel/syscalls.c
+++ b/kernel/syscalls.c
@@ -1,6 +1,7 @@
#define FOOLOS_MODULE_NAME "syscalls"
#include "lib/logger/log.h"
#include "lib/bool/bool.h"
+#include "fs/fs.h"
//
int syscall_write(int file, char *buf, int len)
@@ -34,6 +35,11 @@ int syscall_read(int file, char *buf, int len)
}
+
+int syscall_readdir(const char *name,fs_dirent *dirs,int max)
+{
+ return fs_readdir(name,dirs,max);
+}
//
int example_syscall(int x,int y)