aboutsummaryrefslogtreecommitdiff
path: root/linux-user/syscall.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-07-12 11:06:53 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-07-12 11:06:53 +0000
commit4cae1d16396f4a2827d5cafaaf232698588ade55 (patch)
tree3230ac4bb8cdb94c6bc5ebaee40636924503d845 /linux-user/syscall.c
parent7f7f7c846345550634e1d4b91c9c5f475edfd9ed (diff)
Tkill support, by Stuart Anderson.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3078 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r--linux-user/syscall.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index d61838eda7..1d010f7454 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -145,6 +145,7 @@ type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5,type6 arg6) \
#define __NR_sys_rt_sigqueueinfo __NR_rt_sigqueueinfo
#define __NR_sys_syslog __NR_syslog
#define __NR_sys_tgkill __NR_tgkill
+#define __NR_sys_tkill __NR_tkill
#if defined(__alpha__) || defined (__ia64__) || defined(__x86_64__)
#define __NR__llseek __NR_lseek
@@ -165,7 +166,12 @@ _syscall5(int, _llseek, uint, fd, ulong, hi, ulong, lo,
loff_t *, res, uint, wh);
_syscall3(int,sys_rt_sigqueueinfo,int,pid,int,sig,siginfo_t *,uinfo)
_syscall3(int,sys_syslog,int,type,char*,bufp,int,len)
+#ifdef TARGET_NR_tgkill
_syscall3(int,sys_tgkill,int,tgid,int,pid,int,sig)
+#endif
+#ifdef TARGET_NR_tkill
+_syscall2(int,sys_tkill,int,tid,int,sig)
+#endif
#ifdef __NR_exit_group
_syscall1(int,exit_group,int,error_code)
#endif
@@ -4613,6 +4619,12 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
break;
#endif
+#ifdef TARGET_NR_tkill
+ case TARGET_NR_tkill:
+ ret = get_errno(sys_tkill((int)arg1, (int)arg2));
+ break;
+#endif
+
#ifdef TARGET_NR_tgkill
case TARGET_NR_tgkill:
ret = get_errno(sys_tgkill((int)arg1, (int)arg2, (int)arg3));