From 2d4d64189501c253ed6a5b5ff5e27da1cb34407a Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 20 Feb 2015 15:00:51 +0100 Subject: Think a bit ; ioctls only on open file descriptors. --- src/lib/include/syscall.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/lib/include') diff --git a/src/lib/include/syscall.h b/src/lib/include/syscall.h index fb82c33..991b081 100644 --- a/src/lib/include/syscall.h +++ b/src/lib/include/syscall.h @@ -26,7 +26,6 @@ bool create(const char* name, int type); bool delete(const char* name); bool move(const char* oldname, const char* newname); bool stat(const char* name, stat_t *s); -int ioctl(const char* filename, int command, void* data); fd_t open(const char* name, int mode); void close(fd_t file); @@ -34,7 +33,7 @@ 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 stat_open(fd_t file, stat_t *s); -int ioctl_open(fd_t file, int command, void* data); +int ioctl(fd_t file, int command, void* data); int get_mode(fd_t file); // more todo -- cgit v1.2.3