diff options
author | Alexis211 <alexis211@gmail.com> | 2010-03-24 15:40:16 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2010-03-24 15:40:16 +0100 |
commit | dbfa8cae66811247e5110e2e17f1c6ae5d1b2bcd (patch) | |
tree | 793b49a6b89c1113c74ae3ee97d197f6070cb7a7 /src/library | |
parent | cbadacbb881200b601c7b53b29aa0c1b78747692 (diff) | |
download | TCE-dbfa8cae66811247e5110e2e17f1c6ae5d1b2bcd.tar.gz TCE-dbfa8cae66811247e5110e2e17f1c6ae5d1b2bcd.zip |
IPC not tested but suposedly working.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/gc/syscall.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/library/gc/syscall.c b/src/library/gc/syscall.c index e1ef3cd..8fd1554 100644 --- a/src/library/gc/syscall.c +++ b/src/library/gc/syscall.c @@ -45,3 +45,39 @@ int shm_create(size_t offset, size_t length) { int shm_delete(size_t offset) { return call(9, offset, 0, 0, 0, 0); } + +int object_create() { + return call(10, 0, 0, 0, 0, 0); +} + +int object_owned(int descriptor) { + return call(11, descriptor, 0, 0, 0, 0); +} + +void object_close(int descriptor) { + call(12, descriptor, 0, 0, 0, 0); +} + +int request_get(int descriptor, struct user_request *rq, int wait) { + return call(13, descriptor, (size_t)rq, wait, 0, 0); +} + +int request_has(int descriptor) { + return call(14, descriptor, 0, 0, 0, 0); +} + +void request_answer(int descriptor, int answer1, int answer2) { + call(15, descriptor, answer1, answer2, 0, 0); +} + +int request_mapShm(int descriptor, size_t offset, int number) { + return call(16, descriptor, offset, number, 0, 0); +} + +int request(int descriptor, struct user_sendrequest *rq) { + return call(17, descriptor, (size_t)rq, 0, 0, 0); +} + +int send_msg(int descriptor, struct user_sendrequest *rq) { + return call(18, descriptor, (size_t)rq, 0, 0, 0); +} |