Roland McGrath [Wed, 2 Feb 2005 20:25:17 +0000 (20:25 +0000)]
2005-02-02 Roland McGrath <roland@redhat.com>
* sock.c (iffflags): New variable, table of IFF_* values.
(print_addr): New function.
(sock_ioctl): Handle SIOCGIFADDR, SIOCGIFDSTADDR, SIOCGIFBRDADDR,
SIOCGIFNETMASK, SIOCGIFFLAGS, SIOCGIFMETRIC, SIOCGIFMTU, SIOCGIFSLAVE,
SIOCGIFHWADDR. Use print_addr for SIOCGIFCONF, SIOCGIFNAME, and
SIOCGIFINDEX, and fix their output.
From Ulrich Drepper <drepper@redhat.com>.
Fixes RH#138223.
Roland McGrath [Wed, 2 Feb 2005 04:40:11 +0000 (04:40 +0000)]
2004-12-19 Dmitry V. Levin <ldv@altlinux.org>
* syscall.c (qual_signal): Check bounds for numeric signal names.
Fix parser of symbolic signal names.
Fix return code, as required by qualify() function.
* syscall.c (qual_desc): Check bounds for descriptor number.
* syscall.c (qual_syscall): Correct return code, to be consistent
with qualify() and other qual_* functions.
Fixes RH#143362.
Roland McGrath [Wed, 2 Feb 2005 04:36:11 +0000 (04:36 +0000)]
2005-02-01 Roland McGrath <roland@redhat.com>
* system.c [LINUX] (MS_MANDLOCK, MS_NOATIME, MS_NODIRATIME, MS_BIND,
MS_MOVE, MS_REC, MS_VERBOSE, MS_POSIXACL, MS_ACTIVE, MS_NOUSER):
New macros.
[LINUX] (mount_flags): Add them.
[LINUX] (sys_mount): If any of (MS_BIND|MS_MOVE|MS_REMOUNT) bits are
set in the flags argument, don't try to fetch the filesystem string.
Fixes RH#141932.
Roland McGrath [Wed, 2 Feb 2005 04:17:00 +0000 (04:17 +0000)]
2005-02-01 Roland McGrath <roland@redhat.com>
* linux/syscallent.h: Use sys_mincore instead of printargs.
* linux/x86_64/syscallent.h: Likewise. Also use sys_getrlimit,
sys_semtimedop, sys_umount2.
Part of RH#142667.
Roland McGrath [Wed, 2 Feb 2005 04:16:58 +0000 (04:16 +0000)]
2005-02-01 Roland McGrath <roland@redhat.com>
* process.c [LINUX] [X86_64] (sys_arch_prctl): New function.
* linux/syscall.h: Declare it.
* linux/x86_64/syscallent.h: Use it.
Part of RH#142667.
* linux/syscallent.h: Use sys_mincore instead of printargs.
* linux/x86_64/syscallent.h: Likewise. Also use sys_getrlimit,
sys_semtimedop, sys_umount2.
Part of RH#142667.
Roland McGrath [Wed, 2 Feb 2005 04:16:56 +0000 (04:16 +0000)]
2005-02-01 Roland McGrath <roland@redhat.com>
* process.c [LINUX] [X86_64] (sys_arch_prctl): New function.
* linux/syscall.h: Declare it.
* linux/x86_64/syscallent.h: Use it.
Part of RH#142667.
* process.c (sys_sched_setscheduler): Use %#lx format for bad pointer.
(sys_sched_getparam, sys_sched_setparam): Likewise.
Part of RH#142667.
Roland McGrath [Wed, 2 Feb 2005 03:38:32 +0000 (03:38 +0000)]
2005-02-01 Roland McGrath <roland@redhat.com>
* file.c (print_xattr_val): Don't use auto array sized by syscall
argument. Use malloc instead, so it can fail for insane values.
Fixes Debian bug #283704.
Roland McGrath [Wed, 20 Oct 2004 02:17:41 +0000 (02:17 +0000)]
2004-10-19 Roland McGrath <roland@redhat.com>
* configure.ac: Check for sys/epoll.h.
* desc.c: Protect #include <sys/epoll.h> with [HAVE_SYS_EPOLL_H].
(epollctls, epollevents): Protect each entry with #ifdef on its macro.
Roland McGrath [Wed, 20 Oct 2004 02:17:41 +0000 (02:17 +0000)]
2004-10-19 Roland McGrath <roland@redhat.com>
* configure.ac: Check for sys/epoll.h.
* desc.c: Protect #include <sys/epoll.h> with [HAVE_SYS_EPOLL_H].
(epollctls, epollevents): Protect each entry with #ifdef on its macro.
Roland McGrath [Wed, 20 Oct 2004 02:04:15 +0000 (02:04 +0000)]
2004-10-19 Roland McGrath <roland@redhat.com>
* strace.c (handle_group_exit): Don't detach leader that wasn't
TCB_ATTACHED. Instead mark it with TCB_GROUP_EXITING.
Remove droptcb loop at end, no longer required since 2.6 reports each
thread death.
Fixes RH#135254.
Roland McGrath [Wed, 20 Oct 2004 01:00:27 +0000 (01:00 +0000)]
2004-10-19 Roland McGrath <roland@redhat.com>
* strace.c (trace): Use handle_group_exit for non-TCB_ATTACHED child
taking signal when it has nclone_threads > 0.
* strace.c (handle_group_exit): Don't detach leader that wasn't
TCB_ATTACHED.
* strace.c (handle_group_exit, trace): Mark leader with
TCB_GROUP_EXITING and don't be surprised at child deaths when their
leader has it set.
Fixes RH#132150.
Roland McGrath [Tue, 19 Oct 2004 23:23:34 +0000 (23:23 +0000)]
2004-10-19 Roland McGrath <roland@redhat.com>
* debian/rules (DEB_BUILD_GNU_TYPE, CONFIG_OPTS): New variables.
[$(DEB_HOST_GNU_TYPE) == s390-linux] (build64, HOST64, CC64): Set them.
(build/Makefile): Use $(CONFIG_OPTS).
(build64/Makefile): Pass --host as well as --build.
From Steve Langasek <vorlon@debian.org>.
Fixes Debian bug #271500.
Roland McGrath [Wed, 6 Oct 2004 22:31:38 +0000 (22:31 +0000)]
2004-09-13 Dmitry V. Levin <ldv@altlinux.org>
* linux/ioctlsort.c (main): Omit duplicate lines
(with same name and code) from output.
* linux/ioctlent.sh: Build the list of ioctls defined in
scsi/sg.h (0x22..), scsi/scsi.h and scsi/scsi_ioctl.h (0x53..),
as suggested by Peter Jones <pjones@redhat.com>
* linux/ioctlent.h: Regenerated.
Fixes RH#129808.
Roland McGrath [Sat, 11 Sep 2004 08:12:45 +0000 (08:12 +0000)]
2004-09-11 Roland McGrath <roland@redhat.com>
* time.c (sys_clock_nanosleep): Print zero flags arg correctly.
(sys_timer_settime): Likewise.
(printsigevent): Print signals by name for SIGEV_SIGNAL.
(sys_timer_create): Print clock ID symbolically.
From Ulrich Drepper <drepper@redhat.com>.
Fixes RH#131420.
Roland McGrath [Sat, 4 Sep 2004 04:20:43 +0000 (04:20 +0000)]
2004-09-03 Roland McGrath <roland@redhat.com>
* syscall.c (qual_options): Add const to defn.
Update all uses.
(call_count, error_count, tv_count): Variables removed.
(struct call_counts, counts): New type and variable.
Update all users of the old three to use the new array of structs.
(trace_syscall): Allocate counts on first use.
(sorted_count): Variable removed.
(call_summary): Allocate locally.