Roland McGrath [Wed, 14 Apr 2004 02:45:55 +0000 (02:45 +0000)]
2004-04-13 Roland McGrath <roland@redhat.com>
* process.c (printstatus): Mask out bits presented symbolically, and
print "| 0xnnn" if the remaining bits are not all zero.
Fixes Debian bug #240062.
* process.c (print_affinitylist): Rewritten to handle indirect values.
(sys_sched_setaffinity, sys_sched_getaffinity): Update callers.
From Ulrich Drepper <drepper@redhat.com>.
Fixes RH#118685.
Roland McGrath [Fri, 9 Apr 2004 00:25:38 +0000 (00:25 +0000)]
2004-04-08 Roland McGrath <roland@redhat.com>
* strace.c (main) [LINUX]: When attaching for -p, look in
/proc/PID/task for all threads and attach them as presumed
CLONE_THREAD children.
* NEWS: Mention the feature.
Roland McGrath [Mon, 1 Mar 2004 22:10:52 +0000 (22:10 +0000)]
2004-03-01 Roland McGrath <roland@redhat.com>
* configure.ac: Check for `struct user_desc' in <asm/ldt.h>.
* process.c [HAVE_STRUCT_USER_DESC]: Use struct user_desc in place of
struct modify_ldt_ldt_s.
* mem.c [HAVE_STRUCT_USER_DESC]: Likewise.
Roland McGrath [Mon, 1 Mar 2004 21:31:02 +0000 (21:31 +0000)]
2004-03-01 Roland McGrath <roland@redhat.com>
* configure.ac: Check for `struct pt_all_user_regs'
and `struct ia64_fpreg' in <sys/ptrace.h>.
* util.c, process.c, syscall.c, signal.c: Work around conflicts between
<sys/ptrace.h> and <linux/ptrace.h> for defining those types.
Roland McGrath [Mon, 1 Mar 2004 21:29:24 +0000 (21:29 +0000)]
2004-03-01 Roland McGrath <roland@redhat.com>
* process.c (struct_user_offsets) [LINUX && IA64]: Conditionalize
PT_AR_CSD and PT_AR_SSD uses in case of older kernel headers.
* configure.ac: Check for `struct pt_all_user_regs'
and `struct ia64_fpreg' in <sys/ptrace.h>.
* util.c, process.c, syscall.c: Work around conflicts between
<sys/ptrace.h> and <linux/ptrace.h> for defining those types.
Roland McGrath [Mon, 1 Mar 2004 21:29:22 +0000 (21:29 +0000)]
2004-03-01 Roland McGrath <roland@redhat.com>
* configure.ac: Check for `struct pt_all_user_regs'
and `struct ia64_fpreg' in <sys/ptrace.h>.
* util.c, process.c, syscall.c: Work around conflicts between
<sys/ptrace.h> and <linux/ptrace.h> for defining those types.
Roland McGrath [Mon, 1 Mar 2004 20:30:48 +0000 (20:30 +0000)]
2004-02-26 Andreas Schwab <schwab@suse.de>
* defs.h [LINUX && IA64]: Declare getrval2 also on IA64.
* net.c (sys_pipe) [LINUX && IA64]: For IA64 use the two return values.
* syscall.c (getrval2) [LINUX && IA64]: Implement for IA64.
Roland McGrath [Fri, 20 Feb 2004 22:56:43 +0000 (22:56 +0000)]
2003-12-31 David Mosberger <davidm@hpl.hp.com>
* process.c (internal_exit): For ia64, also recognize IA-32 252
as exit_group().
(change_syscall): For IA64, also support changing IA-32 syscalls.
* syscall.c (internal_syscall): For IA64, also recognize IA-32
syscall 252 (exit_group) as an internal_exit() syscall.
* util.c (SYS_fork): For IA64, define them to the IA-32 syscall
number.
(SYS_vfork): Likewise.
(arg_setup): For IA64 version, also support IA-32 syscalls.
(get_arg0): Likewise.
(get_arg1): Likewise.
(set_arg0): Likewise.
(set_arg1): Likewise.
Roland McGrath [Fri, 20 Feb 2004 02:25:18 +0000 (02:25 +0000)]
2004-02-15 Anton Blanchard <anton@samba.org>
* linux/powerpc/syscallent.h: Add rtas call.
Shift multiplexed syscalls to start at 300, we are already about
to hit 256 real syscalls.
* linux/syscall.h: SYS_socket_subcall is now 300 for [POWERPC].
Roland McGrath [Fri, 14 Nov 2003 02:54:03 +0000 (02:54 +0000)]
2003-09-06 Dmitry V. Levin <ldv@altlinux.org>
* defs.h (ioctl_lookup): Prototype change.
* ioctl.c (ioctl_next_match): New function.
* defs.h: Declare it.
* io.c (sys_ioctl): Use it, to display all possible ioctl names
when there's more than one match.
* ioctl.c (ioctl_lookup): Likewise.
* stream.c (internal_stream_ioctl): Likewise.
Patch from Solar Designer <solar@openwall.com>.
Roland McGrath [Fri, 7 Nov 2003 02:26:54 +0000 (02:26 +0000)]
2003-11-06 Roland McGrath <roland@redhat.com>
* strace.c (main): Treat piped output more like file output.
Disallow -ff with piped output. Fixes RH#105366.
Reported by Dmitry V. Levin <ldv@altlinux.org>
Roland McGrath [Wed, 1 Oct 2003 07:50:28 +0000 (07:50 +0000)]
2003-10-01 Roland McGrath <roland@redhat.com>
* signal.c [LINUX] (parse_sigset_t): Rewrite to process hex strings
from right to left so we don't have to presume the size.
Fixes RH#105995. Reported by David Woodhouse <dwmw2@redhat.com>.