aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-19 20:18:39 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-19 20:18:39 +0100
commitf876e66e717c4dd853da12892048262afe47ffdf (patch)
treebc7aa8ebfbb86bfa0a443fda718569a6c9e51e82 /src/common
parent7b27ab493b56f9e77d805c4f44a1717f3a79231e (diff)
downloadkogata-f876e66e717c4dd853da12892048262afe47ffdf.tar.gz
kogata-f876e66e717c4dd853da12892048262afe47ffdf.zip
Add syscall for ioctl on open handle
Diffstat (limited to 'src/common')
-rw-r--r--src/common/include/fs.h1
-rw-r--r--src/common/include/syscallproto.h5
2 files changed, 4 insertions, 2 deletions
diff --git a/src/common/include/fs.h b/src/common/include/fs.h
index 1ee3d5e..b3a618b 100644
--- a/src/common/include/fs.h
+++ b/src/common/include/fs.h
@@ -20,6 +20,7 @@
#define FM_CREATE (0x10)
#define FM_TRUNC (0x20)
#define FM_APPEND (0x40)
+#define FM_IOCTL (0x80)
#define FM_DCREATE (0x100) // create file in directory
#define FM_DMOVE (0x200) // move file from directory
#define FM_DUNLINK (0x400) // delete file from directory
diff --git a/src/common/include/syscallproto.h b/src/common/include/syscallproto.h
index 8c86762..ede8cb1 100644
--- a/src/common/include/syscallproto.h
+++ b/src/common/include/syscallproto.h
@@ -16,7 +16,7 @@
#define SC_DELETE 21 // args: file, file_strlen
#define SC_MOVE 22 // args: old_file, old_file_strlen, new_file, new_file_strlen
#define SC_STAT 23 // args: file, file_strlen, out stat_t* data
-#define SC_IOCTL 24 // args: file, file_strlen, code, out void* data
+#define SC_IOCTL 24 // args: file, file_strlen, command, out void* data
#define SC_OPEN 30 // args: file, file_strlen, mode
#define SC_CLOSE 31 // args: fd
@@ -24,7 +24,8 @@
#define SC_WRITE 33 // args: fd, offset, size, data
#define SC_READDIR 34 // args: fd, out dirent_t *data
#define SC_STAT_OPEN 35 // args: fd, out stat_t *data -- stat on open file handle
-#define SC_GET_MODE 36 // args: fd -- get mode for open file handle
+#define SC_IOCTL_OPEN 36 // args: fd, command, out void* data
+#define SC_GET_MODE 37 // args: fd -- get mode for open file handle
#define SC_MAKE_FS 40
#define SC_FS_ADD_SRC 41