From 95450710a8b8290a110686d78c2357d3920bcda5 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Wed, 22 Oct 2014 14:06:04 +0200 Subject: working on filesys and readdir syscall --- kernel/syscalls.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'kernel/syscalls.c') 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) -- cgit v1.2.3