[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Implement sem* syscalls
From: |
Kirill A. Shutemov |
Subject: |
[Qemu-devel] [PATCH] Implement sem* syscalls |
Date: |
Wed, 8 Oct 2008 21:54:30 +0300 |
Signed-off-by: Kirill A. Shutemov <address@hidden>
---
linux-user/syscall.c | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 54c53c2..33dc269 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -4906,7 +4906,21 @@ abi_long do_syscall(void *cpu_env, int num, abi_long
arg1,
ret = do_ipc(arg1, arg2, arg3, arg4, arg5, arg6);
break;
#endif
-
+#ifdef TARGET_NR_semget
+ case TARGET_NR_semget:
+ ret = get_errno(semget(arg1, arg2, arg3));
+ break;
+#endif
+#ifdef TARGET_NR_semop
+ case TARGET_NR_semop:
+ ret = get_errno(do_semop(arg1, arg2, arg3));
+ break;
+#endif
+#ifdef TARGET_NR_semctl
+ case TARGET_NR_semctl:
+ ret = do_semctl(arg1, arg2, arg3, (union target_semun)arg4);
+ break;
+#endif
#ifdef TARGET_NR_msgctl
case TARGET_NR_msgctl:
ret = do_msgctl(arg1, arg2, arg3);
--
1.5.6.5.GIT
- [Qemu-devel] [PATCH] Add readahead syscall, Kirill A. Shutemov, 2008/10/08
- [Qemu-devel] [PATCH] Fix getdents* syscalls, Kirill A. Shutemov, 2008/10/08
- [Qemu-devel] [PATCH] Fix and cleanup IPCOP_msg* ipc calls handling, Kirill A. Shutemov, 2008/10/08
- [Qemu-devel] [PATCH] Implement msg* syscalls, Kirill A. Shutemov, 2008/10/08
- [Qemu-devel] [PATCH] Fix and cleanup IPCOP_sem* ipc calls handling, Kirill A. Shutemov, 2008/10/08
- [Qemu-devel] [PATCH] Implement sem* syscalls,
Kirill A. Shutemov <=
- [Qemu-devel] [PATCH] Fix and cleanup IPCOP_shm* ipc calls handling, Kirill A. Shutemov, 2008/10/08
- [Qemu-devel] [PATCH] Implement shm* syscalls, Kirill A. Shutemov, 2008/10/08
- [Qemu-devel] [PATCH] Fix fstatat64()/newfstatat() syscall implementation, Kirill A. Shutemov, 2008/10/08
- [Qemu-devel] [PATCH] Introduce --enable-binfmt-misc configure option, Kirill A. Shutemov, 2008/10/08
- [Qemu-devel] [PATCH, v2] Fix fstatat64()/newfstatat() syscall implementation, Kirill A. Shutemov, 2008/10/09
- [Qemu-devel] [PATCH, v2] Implement sem* syscalls, Kirill A. Shutemov, 2008/10/09
- [Qemu-devel] [PATCH, v2] Fix and cleanup IPCOP_sem* ipc calls handling, Kirill A. Shutemov, 2008/10/09
Re: [Qemu-devel] [PATCH] Fix getdents* syscalls, Aurelien Jarno, 2008/10/13
Re: [Qemu-devel] [PATCH] Add readahead syscall, Aurelien Jarno, 2008/10/13