From dbfa8cae66811247e5110e2e17f1c6ae5d1b2bcd Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Wed, 24 Mar 2010 15:40:16 +0100 Subject: IPC not tested but suposedly working. --- src/library/gc/syscall.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'src/library/gc') 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); +} -- cgit v1.2.3