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/common/include/mmap.h | 1 + src/common/include/syscallproto.h | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src/common') diff --git a/src/common/include/mmap.h b/src/common/include/mmap.h index 777950f..3134403 100644 --- a/src/common/include/mmap.h +++ b/src/common/include/mmap.h @@ -4,3 +4,4 @@ #define MM_WRITE (0x02) #define MM_EXEC (0x04) +/* vim: set ts=4 sw=4 tw=0 noet :*/ diff --git a/src/common/include/syscallproto.h b/src/common/include/syscallproto.h index fd56017..6f0418e 100644 --- a/src/common/include/syscallproto.h +++ b/src/common/include/syscallproto.h @@ -17,7 +17,6 @@ #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, command, out void* data #define SC_OPEN 30 // args: file, file_strlen, mode #define SC_CLOSE 31 // args: fd @@ -25,7 +24,7 @@ #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_IOCTL_OPEN 36 // args: fd, command, out void* data +#define SC_IOCTL 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 @@ -33,8 +32,9 @@ #define SC_RM_FS 42 #define SC_NEW_PROC 50 -#define SC_BIND_FS 51 // bind FS to children process -#define SC_PROC_EXEC 52 // execute binary in process +#define SC_BIND_FS 51 // bind FS to child process +#define SC_BIND_FD 52 // copy a file descriptor to child process +#define SC_PROC_EXEC 53 // execute binary in process // much more to do -- cgit v1.2.3