Commit 4cae1d16396f4a2827d5cafaaf232698588ade55

Authored by ths
1 parent 7f7f7c84

Tkill support, by Stuart Anderson.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3078 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 12 additions and 0 deletions
linux-user/syscall.c
... ... @@ -145,6 +145,7 @@ type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5,type6 arg6) \
145 145 #define __NR_sys_rt_sigqueueinfo __NR_rt_sigqueueinfo
146 146 #define __NR_sys_syslog __NR_syslog
147 147 #define __NR_sys_tgkill __NR_tgkill
  148 +#define __NR_sys_tkill __NR_tkill
148 149  
149 150 #if defined(__alpha__) || defined (__ia64__) || defined(__x86_64__)
150 151 #define __NR__llseek __NR_lseek
... ... @@ -165,7 +166,12 @@ _syscall5(int, _llseek, uint, fd, ulong, hi, ulong, lo,
165 166 loff_t *, res, uint, wh);
166 167 _syscall3(int,sys_rt_sigqueueinfo,int,pid,int,sig,siginfo_t *,uinfo)
167 168 _syscall3(int,sys_syslog,int,type,char*,bufp,int,len)
  169 +#ifdef TARGET_NR_tgkill
168 170 _syscall3(int,sys_tgkill,int,tgid,int,pid,int,sig)
  171 +#endif
  172 +#ifdef TARGET_NR_tkill
  173 +_syscall2(int,sys_tkill,int,tid,int,sig)
  174 +#endif
169 175 #ifdef __NR_exit_group
170 176 _syscall1(int,exit_group,int,error_code)
171 177 #endif
... ... @@ -4613,6 +4619,12 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
4613 4619 break;
4614 4620 #endif
4615 4621  
  4622 +#ifdef TARGET_NR_tkill
  4623 + case TARGET_NR_tkill:
  4624 + ret = get_errno(sys_tkill((int)arg1, (int)arg2));
  4625 + break;
  4626 +#endif
  4627 +
4616 4628 #ifdef TARGET_NR_tgkill
4617 4629 case TARGET_NR_tgkill:
4618 4630 ret = get_errno(sys_tgkill((int)arg1, (int)arg2, (int)arg3));
... ...