Changeset 2514 for neercs/trunk
- Timestamp:
- Jul 1, 2008, 10:35:22 PM (13 years ago)
- Location:
- neercs/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/src/mytrace.c
r2513 r2514 60 60 #define MYCALL_SETPGID 4 61 61 #define MYCALL_SETSID 5 62 #define MYCALL_KILL 6 62 63 63 64 #if defined __x86_64__ … … 85 86 #if defined __x86_64__ 86 87 int syscalls32[] = 87 { 5, 6, 4, 63, 57, 66 }; /* from unistd_32.h on an amd64 system */88 { 5, 6, 4, 63, 57, 66, 37 }; /* from unistd_32.h on an amd64 system */ 88 89 int syscalls64[] = 89 90 #else 90 91 int syscalls32[] = 91 92 #endif 92 { SYS_open, SYS_close, SYS_write, SYS_dup2, SYS_setpgid, SYS_setsid }; 93 { SYS_open, SYS_close, SYS_write, SYS_dup2, SYS_setpgid, SYS_setsid, 94 SYS_kill }; 93 95 94 96 struct mytrace … … 243 245 #if defined USE_GRAB 244 246 return remote_syscall(t->pid, MYCALL_SETSID, 0, 0, 0); 247 #else 248 errno = ENOSYS; 249 return -1; 250 #endif 251 } 252 253 int mytrace_kill(struct mytrace *t, long pid, int sig) 254 { 255 #if defined USE_GRAB 256 return remote_syscall(t->pid, MYCALL_KILL, pid, sig, 0); 245 257 #else 246 258 errno = ENOSYS; -
neercs/trunk/src/mytrace.h
r2513 r2514 24 24 int mytrace_setpgid(struct mytrace *t, long pid, long pgid); 25 25 int mytrace_setsid(struct mytrace *t); 26 int mytrace_kill(struct mytrace *t, long pid, int sig); 26 27
Note: See TracChangeset
for help on using the changeset viewer.