From e356371f09df87ebab2d7e3d816de1147768dfa9 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 2 Mar 2015 23:02:59 +0100 Subject: Change VFS interface : handles no longer visible to underlying FS. --- src/lib/libkogata/syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libkogata/syscall.c') diff --git a/src/lib/libkogata/syscall.c b/src/lib/libkogata/syscall.c index 88e9aa2..6f37c47 100644 --- a/src/lib/libkogata/syscall.c +++ b/src/lib/libkogata/syscall.c @@ -77,8 +77,8 @@ size_t read(fd_t file, size_t offset, size_t len, char *buf) { size_t write(fd_t file, size_t offset, size_t len, const char* buf) { return call(SC_WRITE, file, offset, len, (uint32_t)buf, 0); } -bool readdir(fd_t file, dirent_t *d) { - return call(SC_READDIR, file, (uint32_t)d, 0, 0, 0); +bool readdir(fd_t file, size_t ent_no, dirent_t *d) { + return call(SC_READDIR, file, ent_no, (uint32_t)d, 0, 0); } bool stat_open(fd_t file, stat_t *s) { return call(SC_STAT_OPEN, file, (uint32_t)s, 0, 0, 0); -- cgit v1.2.3