aboutsummaryrefslogtreecommitdiff
path: root/src/common/include
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-03-07 17:23:44 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-03-07 17:23:44 +0100
commitcb6cef08023bee0feeaa60a84d19bc52745bb2e4 (patch)
treed3496821926f438b1e7580234e29c57a617e270e /src/common/include
parent639ec6dd97a3d27fd249fa0509f0f8ebfd1f4c91 (diff)
downloadkogata-cb6cef08023bee0feeaa60a84d19bc52745bb2e4.tar.gz
kogata-cb6cef08023bee0feeaa60a84d19bc52745bb2e4.zip
Implement some missing syscalls.
Diffstat (limited to 'src/common/include')
-rw-r--r--src/common/include/syscallproto.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common/include/syscallproto.h b/src/common/include/syscallproto.h
index 518cdb4..4cfd9ae 100644
--- a/src/common/include/syscallproto.h
+++ b/src/common/include/syscallproto.h
@@ -37,7 +37,8 @@
#define SC_NEW_PROC 50 // args: nothing ?
#define SC_BIND_FS 51 // args: pid, new_name, new_name_strlen, fs_name, fs_name_strlen -- bind FS to child process
#define SC_BIND_SUBFS 52 // args: sc_subfs_args_t -- subfs & bind to child process
-#define SC_BIND_FD 53 // args: pid, new_fd, local_fd -- copy a file descriptor to child process
+#define SC_BIND_MAKE_FS 53 // args: sc_make_fs_args_t
+#define SC_BIND_FD 54 // args: pid, new_fd, local_fd -- copy a file descriptor to child process
#define SC_PROC_EXEC 55 // args: pid, exec_name, exec_name_strlen -- execute binary in process
#define SC_PROC_STATUS 56 // args: pid, proc_status_t*
#define SC_PROC_KILL 57 // args: pid, proc_status_t* -- inconditionnally kill child process
@@ -56,6 +57,8 @@ typedef struct {
const char* opts;
size_t opts_strlen;
+
+ int bind_to_pid; // zero = bind to current proc
} sc_make_fs_args_t;
typedef struct {
@@ -70,7 +73,7 @@ typedef struct {
int ok_modes;
- int bind_to_pid; // used only for SC_BIND_SUBFS
+ int bind_to_pid; // 0 = bind to current proc
} sc_subfs_args_t;
/* vim: set ts=4 sw=4 tw=0 noet :*/