Commit 71455574f7e4119f21238d8018c024b81040474d

Authored by ths
1 parent 3780e197

Implement tgkill, by Alexander Graf.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2991 c046a42c-6fe2-441c-8c8c-71466251a162
linux-user/i386/syscall_nr.h
... ... @@ -271,4 +271,5 @@
271 271 #define TARGET_NR_clock_getres (TARGET_NR_timer_create+7)
272 272 #define TARGET_NR_clock_nanosleep (TARGET_NR_timer_create+8)
273 273  
  274 +#define TARGET_NR_tgkill 270
274 275 #define TARGET_NR_utimes 271
... ...
linux-user/syscall.c
... ... @@ -144,6 +144,7 @@ type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5,type6 arg6) \
144 144 #define __NR_sys_getdents64 __NR_getdents64
145 145 #define __NR_sys_rt_sigqueueinfo __NR_rt_sigqueueinfo
146 146 #define __NR_sys_syslog __NR_syslog
  147 +#define __NR_sys_tgkill __NR_tgkill
147 148  
148 149 #if defined(__alpha__) || defined (__ia64__) || defined(__x86_64__)
149 150 #define __NR__llseek __NR_lseek
... ... @@ -164,6 +165,7 @@ _syscall5(int, _llseek, uint, fd, ulong, hi, ulong, lo,
164 165 loff_t *, res, uint, wh);
165 166 _syscall3(int,sys_rt_sigqueueinfo,int,pid,int,sig,siginfo_t *,uinfo)
166 167 _syscall3(int,sys_syslog,int,type,char*,bufp,int,len)
  168 +_syscall3(int,sys_tgkill,int,tgid,int,pid,int,sig)
167 169 #ifdef __NR_exit_group
168 170 _syscall1(int,exit_group,int,error_code)
169 171 #endif
... ... @@ -4604,6 +4606,12 @@ long do_syscall(void *cpu_env, int num, long arg1, long arg2, long arg3,
4604 4606 break;
4605 4607 #endif
4606 4608  
  4609 +#ifdef TARGET_NR_tgkill
  4610 + case TARGET_NR_tgkill:
  4611 + ret = get_errno(sys_tgkill((int)arg1, (int)arg2, (int)arg3));
  4612 + break;
  4613 +#endif
  4614 +
4607 4615 default:
4608 4616 unimplemented:
4609 4617 gemu_log("qemu: Unsupported syscall: %d\n", num);
... ...