diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-19 20:18:39 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-02-19 20:18:39 +0100 |
commit | f876e66e717c4dd853da12892048262afe47ffdf (patch) | |
tree | bc7aa8ebfbb86bfa0a443fda718569a6c9e51e82 /src/lib/libkogata | |
parent | 7b27ab493b56f9e77d805c4f44a1717f3a79231e (diff) | |
download | kogata-f876e66e717c4dd853da12892048262afe47ffdf.tar.gz kogata-f876e66e717c4dd853da12892048262afe47ffdf.zip |
Add syscall for ioctl on open handle
Diffstat (limited to 'src/lib/libkogata')
-rw-r--r-- | src/lib/libkogata/syscall.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/libkogata/syscall.c b/src/lib/libkogata/syscall.c index 008a2a9..2e0ef0f 100644 --- a/src/lib/libkogata/syscall.c +++ b/src/lib/libkogata/syscall.c @@ -82,6 +82,9 @@ bool readdir(fd_t file, dirent_t *d) { bool stat_open(fd_t file, stat_t *s) { return call(SC_STAT_OPEN, file, (uint32_t)s, 0, 0, 0); } +int ioctl_open(fd_t file, int command, void* data) { + return call(SC_IOCTL_OPEN, file, command, (uint32_t)data, 0, 0); +} int get_mode(fd_t file) { return call(SC_GET_MODE, file, 0, 0, 0, 0); } |