diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-03-02 23:02:59 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-03-02 23:02:59 +0100 |
commit | e356371f09df87ebab2d7e3d816de1147768dfa9 (patch) | |
tree | 4932209fc8799bb63006c3ebb11b9a438ae34342 /src/lib | |
parent | 969c8cacc50e8c39ddbc19e05f3f5b98c34bde01 (diff) | |
download | kogata-e356371f09df87ebab2d7e3d816de1147768dfa9.tar.gz kogata-e356371f09df87ebab2d7e3d816de1147768dfa9.zip |
Change VFS interface : handles no longer visible to underlying FS.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/include/syscall.h | 2 | ||||
-rw-r--r-- | src/lib/libkogata/syscall.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/include/syscall.h b/src/lib/include/syscall.h index 246c84c..c26a805 100644 --- a/src/lib/include/syscall.h +++ b/src/lib/include/syscall.h @@ -32,7 +32,7 @@ fd_t open(const char* name, int mode); void close(fd_t file); 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); -bool readdir(fd_t file, dirent_t *d); +bool readdir(fd_t file, size_t ent_no, dirent_t *d); bool stat_open(fd_t file, stat_t *s); int ioctl(fd_t file, int command, void* data); int get_mode(fd_t file); 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); |