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.
Roland McGrath [Wed, 1 Sep 2004 19:39:50 +0000 (19:39 +0000)]
2004-09-01 Roland McGrath <roland@redhat.com>
* linux/x86_64/syscallent.h: Add new entries for timer_*, clock_*, and
mq_* syscalls, and names only for new calls up to 252.
* linux/syscallent.h: Add waitid.
* linux/x86_64/syscallent.h: Likewise.
* linux/syscall.h: Declare sys_waitid.
Roland McGrath [Wed, 1 Sep 2004 19:39:46 +0000 (19:39 +0000)]
2004-09-01 Roland McGrath <roland@redhat.com>
* process.c (internal_wait): Take second arg giving index of flags
argument.
* defs.h: Update prototype.
* syscall.c (internal_syscall): Update caller.
Also use internal_wait for SYS_waitid.
* process.c (sys_waitid): Define for [LINUX] as well.
Don't tweak TCB_SUSPENDED--internal_wait does that.
(waitid_types): Conditionalize use of nonstandard P_* macros.
Roland McGrath [Tue, 31 Aug 2004 07:01:26 +0000 (07:01 +0000)]
2004-08-30 Roland McGrath <roland@redhat.com>
* net.c (sockipoptions): Add some options.
[SOL_IPV6] (sockipv6options): New variable.
(sys_getsockopt, printsockopt): Use it for SOL_IPV6 level.
From Ulrich Drepper <drepper@redhat.com>.
Fixes RH#128391.
Roland McGrath [Tue, 31 Aug 2004 06:52:45 +0000 (06:52 +0000)]
2004-08-30 Roland McGrath <roland@redhat.com>
* time.c (clocknames): New variable, symbolic names for clock_t.
(sys_clock_settime, sys_clock_gettime, sys_clock_nanosleep): Use it.
From Ulrich Drepper <drepper@redhat.com>.
Fixes RH#129378.
Roland McGrath [Tue, 31 Aug 2004 06:30:48 +0000 (06:30 +0000)]
2004-08-30 Roland McGrath <roland@redhat.com>
* file.c (print_xattr_val): New function to show attribute values.
(sys_setxattr, sys_fsetxattr, sys_getxattr, sys_fgetxattr): Use it.
From Ulrich Drepper <drepper@redhat.com>.
Fixes RH#131177.
Roland McGrath [Mon, 12 Jul 2004 07:44:08 +0000 (07:44 +0000)]
2004-07-07 David S. Miller <davem@nuts.davemloft.net>
* linux/sparc/syscallent.h: Sync with reality.
* linux/sparc/syscall.h (sys_sendfile64, sys_futex, sys_gettid,
sys_sched_setaffinity, sys_sched_getaffinity, sys_setxattr,
sys_lsetxattr, sys_fsetxattr, sys_getxattr, sys_lgetxattr,
sys_fgetxattr, sys_listxattr, sys_llistxattr, sys_flistxattr,
sys_removexattr, sys_lremovexattr, sys_fremovexattr,
sys_remap_file_pages, sys_readahead, sys_tgkill, sys_statfs64,
sys_fstatfs64, sys_clock_settime, sys_clock_gettime,
sys_clock_getres, sys_clock_nanosleep, sys_timer_create,
sys_timer_settime, sys_timer_gettime): New declarations.
* linux/sparc64/dummy2.h, linux/sparc64/syscallent2.h,
linux/sparc64/syscall.h, linux/sparc64/errnoent.h,
linux/sparc64/errnoent1.h, linux/sparc64/errnoent2.h,
linux/sparc64/ioctlent.h, linux/sparc64/ioctlent1.h,
linux/sparc64/ioctlent2.h, linux/sparc64/signalent.h,
linux/sparc64/signalent.h, linux/sparc64/signalent.h,
linux/sparc64/signalent1.h, linux/sparc64/signalent2.h,
linux/sparc64/syscall1.h, linux/sparc64/syscallent.h,
linux/sparc64/syscallent1.h: New files.
* defs.h (LINUXSPARC): Define also when SPARC64.
(LINUX && SPARC64): Set SUPPORTED_PERSONALITIES to 3.
Ignore SIGTRAP after execve by defining TCB_WAITEXECVE.
Define possibly missing __NR_exit_group. Declare getrval2.
* configure.ac (sparc64): New architecture case.
* config.h.in (SPARC64): New define.
* file.c (stat_sparc64): New structure.
(printstat_sparc64): New output routine for that.
(printstat): Call it, if personality is 2.
(printstat64): Likewise.
* util.c: Conditionalize ptrace defines on LINUXSPARC
not LINUX && SPARC.
(SPARC64 && LINUX): Define r_pc to r_tpc, and PTRACE_FOOREGS
to PTRACE_FOOREGS64 so that more sparc code can be shared
between 64-bit and 32-bit.
(_hack_syscall5): Correct trap number when SPARC64.
(PTRACE_WRITE{TEXT,DATA}): Add SPARC64 to ifdef guard.
(getpc): Handle SPARC64 && LINUX.
(printcall): Likewise.
(arg fetching/setting): Use same code for SPARC64 LINUX
as for SPARC.
(setbpt): Handle SPARC64 && LINUX.
(clearbpt): Likewise.
* signal.c: Conditionalize ptrace defines on SPARC and
SPARC64.
(SPARC64 && LINUX): Define r_pc to r_tpc, and PTRACE_FOOREGS
to PTRACE_FOOREGS64 so that more sparc code can be shared
between 64-bit and 32-bit.
(m_siginfo): Use same definition on SPARC64 as SPARC.
(sys_sigreturn): Handle LINUX && SPARC64.
* syscall.c: Conditionalize ptrace defines on SPARC and
SPARC64.
(SPARC64 && LINUX): Define r_pc to r_tpc, and PTRACE_FOOREGS
to PTRACE_FOOREGS64 so that more sparc code can be shared
between 64-bit and 32-bit.
(getscno): Use same static state on SPARC64 as SPARC,
and add SPARC64 handling.
(get_error): Handle LINUX && SPARC64.
(force_result): Likewise.
(syscall_enter): Likewise.
(trace_syscall): Handle sys_socketcall and sys_ipc on SPARC64
just like SPARC.
(getrval2): Handle LINUX && SPARC64.
* process.c: Conditionalize ptrace defines on SPARC and
SPARC64.
(SPARC64 && LINUX): Define r_pc to r_tpc, and PTRACE_FOOREGS
to PTRACE_FOOREGS64 so that more sparc code can be shared
between 64-bit and 32-bit.
(change_syscall): Handle LINUX && SPARC64.
(struct_user_offsets): Ifdef out those which do not exist
on SPARC64.
* net.c (sys_pipe): Handle LINUX && SPARC64.
* ioctl.c: Fix initializer typo for nioctlents2, was
nioctlents1 by accident.
Roland McGrath [Mon, 12 Jul 2004 07:13:06 +0000 (07:13 +0000)]
2004-07-12 Roland McGrath <roland@redhat.com>
* net.c (addrfams): Make variable global.
* sock.c (sock_ioctl): Decode the arguments for SIOCGIFNAME,
SIOCGIFINDEX, and SIOCGIFCONF.
From Ulrich Drepper <drepper@redhat.com>.
Fixes RH#126917.
Roland McGrath [Mon, 12 Jul 2004 07:04:39 +0000 (07:04 +0000)]
2004-07-12 Roland McGrath <roland@redhat.com>
* linux/ioctlsort.c: Add some #includes.
[POWERPC]: Kludge out high bits.
* linux/ia64/ioctlent.h: Regenerated using RHEL3 headers.
* linux/powerpc/ioctlent.h: Likewise.