]>
granicus.if.org Git - strace/log
Roland McGrath [Tue, 5 Jul 2005 03:22:12 +0000 (03:22 +0000)]
2005-06-08 Dmitry V. Levin <ldv@altlinux.org>
Remove TF flag from those syscalls which have no filename argument.
* freebsd/i386/syscallent.h: Remove TF flag from fstat, pread,
pwrite, fstat, sendfile.
* linux/alpha/syscallent.h: Remove TF flag from read, write,
pread, pwrite, sendfile.
* linux/hppa/syscallent.h: Remove TF flag from read, write,
pread, pwrite, fstat64, sendfile, ftruncate64.
* linux/ia64/syscallent.h: Remove TF flag from read, write,
sendfile, fstat, fadvise64.
* linux/mips/syscallent.h: Remove TF flag from read, write,
fstatfs, fstat, pread, pwrite, sendfile, ftruncate64, fstat64,
sendfile64, fadvise64, fstatfs64.
* linux/powerpc/syscallent.h: Remove TF flag from read, write,
fstat, pread, pwrite, sendfile, ftruncate64, fstat64, sendfile64,
fadvise64, fstatfs64, fadvise64_64.
* linux/s390/syscallent.h: Remove TF flag from pread, pwrite,
sendfile, ftruncate64, fstat64, sendfile64.
* linux/s390x/syscallent.h: Remove TF flag from pread, pwrite,
sendfile, sendfile64.
* linux/sh/syscallent.h: Remove TF flag from pread, pwrite,
sendfile, fstat64.
* linux/sh64/syscallent.h: Remove TF flag from pread, pwrite,
sendfile, ftruncate64, fstat64.
* linux/sparc/syscallent.h: Remove TF flag from sendfile, fstat64,
pread, pwrite, sendfile64.
* linux/sparc64/syscallent2.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/syscallent.h: Remove TF flag from pread, pwrite, sendfile,
ftruncate64, fstat64, sendfile64, fadvise64, fadvise64, fstatfs64,
fadvise64_64.
* linux/x86_64/syscallent.h: Remove TF flag from pread, pwrite,
sendfile, fadvise64_64.
* svr4/syscallent.h: Remove TF flag from pread, pwrite, ftruncate,
fstatvfs64, ftruncate64.
Fixes RH#159340.
Roland McGrath [Mon, 4 Jul 2005 23:33:42 +0000 (23:33 +0000)]
.
Roland McGrath [Mon, 4 Jul 2005 23:33:38 +0000 (23:33 +0000)]
2005-07-04 Roland McGrath <roland@redhat.com>
* net.c (sockipv6options): Add IPV6_ADD_MEMBERSHIP,
IPV6_DROP_MEMBERSHIP, IPV6_ROUTER_ALERT.
From Ulrich Drepper <drepper@redhat.com>.
Fixes RH#162450.
Roland McGrath [Mon, 4 Jul 2005 23:30:30 +0000 (23:30 +0000)]
.
Roland McGrath [Mon, 4 Jul 2005 23:30:27 +0000 (23:30 +0000)]
2005-07-04 Roland McGrath <roland@redhat.com>
* net.c (sockipoptions): Fix typos.
From Ulrich Drepper <drepper@redhat.com>.
Fixes RH#161578.
Roland McGrath [Mon, 4 Jul 2005 23:28:10 +0000 (23:28 +0000)]
2005-07-04 Roland McGrath <roland@redhat.com>
* util.c (printnum_int): New function, printnum with s/long/int/.
* defs.h: Declare it.
* net.c (printsockopt): Use it for int-sized option.
Fixes RH#162449.
Roland McGrath [Fri, 10 Jun 2005 03:56:19 +0000 (03:56 +0000)]
.
Roland McGrath [Fri, 10 Jun 2005 03:56:16 +0000 (03:56 +0000)]
2005-06-09 Roland McGrath <roland@redhat.com>
* configure.ac, NEWS: Version 4.5.12.
* debian/changelog, strace.spec: 4.5.12-1.
Roland McGrath [Wed, 8 Jun 2005 20:45:52 +0000 (20:45 +0000)]
.
Roland McGrath [Wed, 8 Jun 2005 20:45:28 +0000 (20:45 +0000)]
2005-06-08 Dmitry V. Levin <ldv@altlinux.org>
Minor namespace cleanup.
* defs.h (string_quote): Remove declaration.
* file.c (openmodessol) [LINUXSPARC]: Make static.
(fileflags): Likewise.
(aclcmds, aclipc) [HAVE_SYS_ACL_H]: Likewise.
(direnttypes) [FREEBSD || LINUX]: Likewise.
(xattrflags): Likewise.
* process.c (unalignctl_string): Make static.
(setarg): Disable.
* syscall.c (subcalls_table): Make static.
(socket_map) [!(LINUX && (ALPHA || MIPS))]: Likewise.
(sparc_socket_decode): Make static, define for [SPARC || SPARC64] only.
(decode_subcall): Make static.
(syscall_fixup): Likewise.
(get_error): Likewise.
(syscall_enter): Likewise.
* util.c (tv_tv): Disable.
(getpc): Likewise.
(string_quote): Make static.
Fixes RH#159688.
Roland McGrath [Wed, 8 Jun 2005 18:06:27 +0000 (18:06 +0000)]
.
Roland McGrath [Wed, 8 Jun 2005 18:06:22 +0000 (18:06 +0000)]
2005-05-12 Philippe De Muyter <phdm@macqel.be>
* util.c (getpc, printcall): Check #if defined(M68K), not M68k.
Enables `-i' on m68k machines.
Roland McGrath [Wed, 8 Jun 2005 18:03:12 +0000 (18:03 +0000)]
typo
Roland McGrath [Tue, 7 Jun 2005 23:22:26 +0000 (23:22 +0000)]
.
Roland McGrath [Tue, 7 Jun 2005 23:22:08 +0000 (23:22 +0000)]
revert debugging code
Roland McGrath [Tue, 7 Jun 2005 23:21:31 +0000 (23:21 +0000)]
2005-06-06 Roland McGrath <roland@redhat.com>
* defs.h (struct sysent): New member `native_scno'.
(known_scno): Declare new function.
* linux/syscallent.h: Add new final field to interesting syscalls.
* syscall.c (known_scno): New function.
(dumpio, internal_syscall, syscall_fixup, trace_syscall): Use it.
* process.c (internal_fork, internal_exit): Likewise.
[IA64] (ARG_STACKSIZE, ARG_PTID, ARG_CTID, ARG_TLS): Likewise.
* strace.c (proc_open): Likewise.
* util.c [LINUX] (setbpt): Likewise.
* linux/syscall.h: Remove [!defined(X86_64)] from conditional
for defining SYS_socket_subcall et al.
* linux/syscallent.h: Likewise for #error check.
* syscall.c (trace_syscall): Likewise for SYS_{socketcall,ipc} cases.
Fixes RH#158934.
Roland McGrath [Tue, 7 Jun 2005 23:21:28 +0000 (23:21 +0000)]
2005-06-06 Roland McGrath <roland@redhat.com>
* linux/syscall.h (SYS_socket, SYS_bind, SYS_connect, SYS_listen)
(SYS_accept, SYS_getsockname, SYS_getpeername, SYS_socketpair)
(SYS_send, SYS_recv, SYS_sendto, SYS_recvfrom, SYS_shutdown)
(SYS_setsockopt, SYS_getsockopt, SYS_sendmsg, SYS_recvmsg)
(SYS_getsockname, SYS_semop, SYS_semgsub_et, SYS_semget, SYS_semctl)
(SYS_semtimedop, SYS_msgsnd, SYS_msgrcv, SYS_msgget)
(SYS_msgctl, SYS_shmat, SYS_shmdt, SYS_shmget)
(SYS_shmctl): Macros renamed to SYS_sub_*.
* syscall.c (dumpio): Match SYS_sub_* if defined instead of SYS_*.
* linux/syscall.h (SYS_waitid): Define if not defined.
* defs.h (struct sysent): New member `native_scno'.
(known_scno): Declare new function.
* linux/syscallent.h: Add new final field to interesting syscalls.
* syscall.c (known_scno): New function.
(dumpio, internal_syscall, syscall_fixup, trace_syscall): Use it.
* process.c (internal_fork, internal_exit): Likewise.
[IA64] (ARG_STACKSIZE, ARG_PTID, ARG_CTID, ARG_TLS): Likewise.
* strace.c (proc_open): Likewise.
* util.c [LINUX] (setbpt): Likewise.
* linux/syscall.h: Remove [!defined(X86_64)] from conditional
for defining SYS_socket_subcall et al.
* linux/syscallent.h: Likewise for #error check.
* syscall.c (trace_syscall): Likewise for SYS_{socketcall,ipc} cases.
Fixes RH#158934.
Roland McGrath [Tue, 7 Jun 2005 23:21:26 +0000 (23:21 +0000)]
2005-06-06 Roland McGrath <roland@redhat.com>
* linux/syscall.h (SYS_socket, SYS_bind, SYS_connect, SYS_listen)
(SYS_accept, SYS_getsockname, SYS_getpeername, SYS_socketpair)
(SYS_send, SYS_recv, SYS_sendto, SYS_recvfrom, SYS_shutdown)
(SYS_setsockopt, SYS_getsockopt, SYS_sendmsg, SYS_recvmsg)
(SYS_getsockname, SYS_semop, SYS_semgsub_et, SYS_semget, SYS_semctl)
(SYS_semtimedop, SYS_msgsnd, SYS_msgrcv, SYS_msgget)
(SYS_msgctl, SYS_shmat, SYS_shmdt, SYS_shmget)
(SYS_shmctl): Macros renamed to SYS_sub_*.
* syscall.c (dumpio): Match SYS_sub_* if defined instead of SYS_*.
* defs.h (struct sysent): New member `native_scno'.
(known_scno): Declare new function.
* linux/syscallent.h: Add new final field to interesting syscalls.
* syscall.c (known_scno): New function.
(dumpio, internal_syscall, syscall_fixup, trace_syscall): Use it.
* process.c (internal_fork, internal_exit): Likewise.
[IA64] (ARG_STACKSIZE, ARG_PTID, ARG_CTID, ARG_TLS): Likewise.
* strace.c (proc_open): Likewise.
* util.c [LINUX] (setbpt): Likewise.
* linux/syscall.h: Remove [!defined(X86_64)] from conditional
for defining SYS_socket_subcall et al.
* linux/syscallent.h: Likewise for #error check.
* syscall.c (trace_syscall): Likewise for SYS_{socketcall,ipc} cases.
Fixes RH#158934.
Roland McGrath [Tue, 7 Jun 2005 23:21:24 +0000 (23:21 +0000)]
2005-06-06 Roland McGrath <roland@redhat.com>
* linux/syscallent.h: Fix pread/pwrite names to pread64/pwrite64.
* defs.h (struct sysent): New member `native_scno'.
(known_scno): Declare new function.
* linux/syscallent.h: Add new final field to interesting syscalls.
* syscall.c (known_scno): New function.
(dumpio, internal_syscall, syscall_fixup, trace_syscall): Use it.
* process.c (internal_fork, internal_exit): Likewise.
[IA64] (ARG_STACKSIZE, ARG_PTID, ARG_CTID, ARG_TLS): Likewise.
* strace.c (proc_open): Likewise.
* util.c [LINUX] (setbpt): Likewise.
* linux/syscall.h: Remove [!defined(X86_64)] from conditional
for defining SYS_socket_subcall et al.
* linux/syscallent.h: Likewise for #error check.
* syscall.c (trace_syscall): Likewise for SYS_{socketcall,ipc} cases.
Fixes RH#158934.
Roland McGrath [Tue, 7 Jun 2005 23:21:20 +0000 (23:21 +0000)]
2005-06-06 Roland McGrath <roland@redhat.com>
* process.c (struct_user_offsets) [X86_64]: Reorder elements so
matching works right.
Fixes RH#159787.
* defs.h (struct sysent): New member `native_scno'.
(known_scno): Declare new function.
* linux/syscallent.h: Add new final field to interesting syscalls.
* syscall.c (known_scno): New function.
(dumpio, internal_syscall, syscall_fixup, trace_syscall): Use it.
* process.c (internal_fork, internal_exit): Likewise.
[IA64] (ARG_STACKSIZE, ARG_PTID, ARG_CTID, ARG_TLS): Likewise.
* strace.c (proc_open): Likewise.
* util.c [LINUX] (setbpt): Likewise.
* linux/syscall.h: Remove [!defined(X86_64)] from conditional
for defining SYS_socket_subcall et al.
* linux/syscallent.h: Likewise for #error check.
* syscall.c (trace_syscall): Likewise for SYS_{socketcall,ipc} cases.
Fixes RH#158934.
Roland McGrath [Fri, 3 Jun 2005 02:40:43 +0000 (02:40 +0000)]
.
Roland McGrath [Fri, 3 Jun 2005 02:40:39 +0000 (02:40 +0000)]
2005-06-02 Roland McGrath <roland@redhat.com>
* file.c (printstatfs64): Cast values to unsigned long long and use
%llu formats.
Fixes RH#158243.
Roland McGrath [Wed, 1 Jun 2005 19:22:30 +0000 (19:22 +0000)]
.
Roland McGrath [Wed, 1 Jun 2005 19:22:06 +0000 (19:22 +0000)]
2005-05-31 Dmitry V. Levin <ldv@altlinux.org>
Deal with memory management issues.
* defs.h (tprint_iov): Update prototype.
* desc.c (sys_epoll_wait) [HAVE_SYS_EPOLL_H]: Do not allocate
epoll_event array of arbitrary size on the stack, to avoid
stack overflow.
* file.c (print_xattr_val): Check for integer overflow during
malloc size calculation, to avoid heap corruption.
* io.c (tprint_iov) [HAVE_SYS_UIO_H]: Check for integer overflow
during malloc size calculation, to avoid heap corruption.
Change iovec array handling to avoid heap memory allocation.
* mem.c (get_nodes) [LINUX]: Check for integer overflow during
size calculation and do not allocate array of arbitrary size on
the stack, to avoid stack overflow.
* net.c (printcmsghdr) [HAVE_SENDMSG]: Do not allocate array of
arbitrary size on the stack, to avoid stack overflow. Do not
trust cmsg.cmsg_len to avoid read beyond the end of allocated
object.
(printmsghdr) [HAVE_SENDMSG]: Update tprint_iov() usage.
* process.c (sys_setgroups): Check for integer overflow during
malloc size calculation, to avoid heap corruption. Change gid_t
array handling to avoid heap memory allocation.
(sys_getgroups): Likewise.
(sys_setgroups32) [LINUX]: Likewise.
(sys_getgroups32) [LINUX]: Likewise.
* stream.c (sys_poll) [HAVE_SYS_POLL_H]: Check for integer
overflow during malloc size calculation, to avoid heap corruption.
Change pollfd array handling to avoid heap memory allocation.
* system.c (sys_sysctl) [LINUX]: Check for integer overflow
during malloc size calculation, to avoid heap corruption.
* util.c (dumpiov) [HAVE_SYS_UIO_H]: Check for integer overflow
during malloc size calculation, to avoid heap corruption.
Fixes RH#159196.
Roland McGrath [Wed, 1 Jun 2005 19:03:30 +0000 (19:03 +0000)]
.
Roland McGrath [Wed, 1 Jun 2005 19:02:36 +0000 (19:02 +0000)]
2005-05-31 Dmitry V. Levin <ldv@altlinux.org>
* util.c (printxval): Change third argument from "char *" to
"const char *".
(printflags): Add third argument, "const char *", with similar
meaning to the third argument of printxval().
* defs.h (printxval): Change third argument from "char *" to
"const char *".
(printflags): Add third argument.
* bjm.c (sys_query_module) [LINUX]: Pass third argument to
printflags().
* desc.c (sys_fcntl): Likewise.
(sys_flock) [LOCK_SH]: Likewise.
(print_epoll_event) [HAVE_SYS_EPOLL_H]: Likewise.
* file.c (sys_open): Likewise.
(solaris_open) [LINUXSPARC]: Likewise.
(sys_access): Likewise.
(sys_chflags, sys_fchflags) [FREEBSD]: Likewise.
(realprintstat) [HAVE_LONG_LONG_OFF_T &&
HAVE_STRUCT_STAT_ST_FLAGS]: Likewise.
(printstat64) [HAVE_STAT64 &&
HAVE_STRUCT_STAT_ST_FLAGS]: Likewise.
(sys_setxattr, sys_fsetxattr): Likewise.
* ipc.c (sys_msgget, sys_msgsnd, sys_msgrcv, sys_semget,
sys_shmget, sys_shmat) [LINUX || SUNOS4 || FREEBSD]: Likewise.
(sys_mq_open) [LINUX]: Likewise.
(printmqattr) [HAVE_MQUEUE_H]: Likewise.
* mem.c (print_mmap) [!HAVE_LONG_LONG_OFF_T]: Likewise.
(sys_mmap64) [_LFS64_LARGEFILE || HAVE_LONG_LONG_OFF_T]: Likewise.
(sys_mprotect): Likewise.
(sys_mremap, sys_madvise, sys_mlockall) [LINUX]: Likewise.
(sys_msync) [MS_ASYNC]: Likewise.
(sys_mctl) [MC_SYNC]: Likewise.
(sys_remap_file_pages, sys_mbind, sys_get_mempolicy) [LINUX]:
Likewise.
* net.c (printmsghdr) [HAVE_STRUCT_MSGHDR_MSG_CONTROL]: Likewise.
(sys_send, sys_sendto): Likewise.
(sys_sendmsg) [HAVE_SENDMSG]: Likewise.
(sys_recv, sys_recvfrom): Likewise.
(sys_recvmsg) [HAVE_SENDMSG]: Likewise.
(printicmpfilter) [ICMP_FILTER]: Likewise.
* proc.c (proc_ioctl) [SVR4 && !HAVE_MP_PROCFS || FREEBSD]: Likewise.
* process.c (sys_clone) [LINUX]: Likewise.
(printwaitn): Likewise.
(sys_waitid) [SVR4 || LINUX]: Likewise.
* signal.c (sys_sigvec) [SUNOS4 || FREEBSD]: Likewise.
(sys_sigaction): Likewise.
(printcontext) [SVR4]: Likewise.
(print_stack_t) [LINUX) || FREEBSD]: Likewise.
(sys_rt_sigaction) [LINUX]: Likewise.
* sock.c (sock_ioctl) [LINUX]: Likewise.
* stream.c (sys_putmsg, sys_getmsg): Likewise.
(sys_putpmsg) [SYS_putpmsg]: Likewise.
(sys_getpmsg) [SYS_getpmsg]: Likewise.
(sys_poll): Likewise.
(print_transport_message) [TI_BIND]: Likewise.
(stream_ioctl): Likewise.
* system.c (sys_mount, sys_reboot): Likewise.
(sys_cacheflush) [LINUX && M68K]: Likewise.
(sys_capget, sys_capset) [SYS_capget]: Likewise.
* term.c (term_ioctl) [TIOCMGET]: Likewise.
* time.c (sys_clock_nanosleep, sys_timer_settime) [LINUX]:
Likewise.
Fixes RH#159310.
Roland McGrath [Wed, 1 Jun 2005 18:57:27 +0000 (18:57 +0000)]
.
Roland McGrath [Wed, 1 Jun 2005 18:56:56 +0000 (18:56 +0000)]
2005-05-22 Dmitry V. Levin <ldv@altlinux.org>
* bjm.c [LINUX]: Do not include <linux/linkage.h>. It is not
safe to include kernel headers, and this one is not used anyway.
Fixes RH#158488.
Roland McGrath [Wed, 1 Jun 2005 18:56:03 +0000 (18:56 +0000)]
.
Roland McGrath [Wed, 1 Jun 2005 18:55:42 +0000 (18:55 +0000)]
2005-05-31 Dmitry V. Levin <ldv@altlinux.org>
* bjm.c (sys_query_module) [LINUX]: Unitize "out of memory"
errors reporting style.
* strace.c (rebuild_pollv) [USE_PROCFS]: Likewise.
* system.c (sys_capget, sys_capset) [SYS_capget]: Likewise.
* util.c (printstr): Likewise.
(dumpiov) [HAVE_SYS_UIO_H]: Likewise.
(fixvfork) [SUNOS4]: Likewise.
* desc.c (decode_select): Continue to decode syscall arguments
in case of OOM condition.
* file.c (sys_getdents): Likewise.
(sys_getdents64) [_LFS64_LARGEFILE]: Likewise.
(sys_getdirentries) [FREEBSD]: Likewise.
* mem.c (sys_mincore): Changed type of variables which deal with
malloc size from int to unsigned long.
Fixes RH#159308.
Roland McGrath [Thu, 26 May 2005 23:21:13 +0000 (23:21 +0000)]
.
Roland McGrath [Thu, 26 May 2005 23:21:09 +0000 (23:21 +0000)]
2005-05-26 Roland McGrath <roland@redhat.com>
* system.c (sys_sysctl): Check for errors accessing user pointers.
Use malloc instead of alloca in case size is insane.
Roland McGrath [Mon, 9 May 2005 08:03:06 +0000 (08:03 +0000)]
.
Roland McGrath [Mon, 9 May 2005 08:02:31 +0000 (08:02 +0000)]
2005-05-09 Roland McGrath <roland@redhat.com>
* configure.ac: Check for libaio.h.
* desc.c (sys_io_setup, sys_io_submit, sys_io_cancel,
sys_io_getevents, sys_io_destroy): New functions.
* linux/syscall.h: Declare them.
* linux/syscallent.h: Use those for io_* syscalls.
* linux/alpha/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
From Zach Brown <zach.brown@oracle.com>.
Fixes RH#155065.
Roland McGrath [Mon, 9 May 2005 08:02:00 +0000 (08:02 +0000)]
2005-05-09 Roland McGrath <roland@redhat.com>
* desc.c (sys_io_setup, sys_io_submit, sys_io_cancel,
sys_io_getevents, sys_io_destroy): New functions.
* linux/syscall.h: Declare them.
* linux/syscallent.h: Use those for io_* syscalls.
* linux/alpha/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
From Zach Brown <zach.brown@oracle.com>.
Fixes RH#155065.
Roland McGrath [Mon, 9 May 2005 08:01:36 +0000 (08:01 +0000)]
2005-05-09 Roland McGrath <roland@redhat.com>
* debian/control (Architecture): Add ppc64.
Fixes Debian bug #301089.
Roland McGrath [Mon, 9 May 2005 07:46:07 +0000 (07:46 +0000)]
.
Roland McGrath [Mon, 9 May 2005 07:45:47 +0000 (07:45 +0000)]
2005-05-09 Roland McGrath <roland@redhat.com>
* strace.c (main): Refuse negative -s argument value.
Fixes Debian bug #303256.
Roland McGrath [Mon, 9 May 2005 07:45:33 +0000 (07:45 +0000)]
2005-05-05 Anton Blanchard <anton@samba.org>
* process.c (ptrace_cmds): Add PTRACE_GETVRREGS and PTRACE_SETVRREGS
if defined.
Roland McGrath [Mon, 9 May 2005 07:40:41 +0000 (07:40 +0000)]
.
Roland McGrath [Mon, 9 May 2005 07:40:35 +0000 (07:40 +0000)]
2005-04-25 Anton Blanchard <anton@samba.org>
* file.c (openmodes): Add O_NOATIME flag if defined.
Roland McGrath [Mon, 9 May 2005 07:40:33 +0000 (07:40 +0000)]
2005-04-05 Anton Blanchard <anton@samba.org>
* ipc.c (shm_resource_flags): New variable, table has SHM_HUGETLB
but not IPC_NOWAIT, which have the same value.
(sys_shmget): Use that instead of resource_flags.
Roland McGrath [Mon, 9 May 2005 07:40:30 +0000 (07:40 +0000)]
2005-04-05 Anton Blanchard <anton@samba.org>
* signal.c (signame): Don't try and dereference negative index.
Roland McGrath [Mon, 9 May 2005 07:40:27 +0000 (07:40 +0000)]
2005-04-05 Anton Blanchard <anton@samba.org>
* linux/powerpc/syscallent.h: Add debug_setcontext, vserver,
mbind, *_mempolicy, mq_*, sys_kexec_load, add_key, request_key,
keyctl, waitid, sys_semtimedop. Fix various other syscalls.
Roland McGrath [Mon, 9 May 2005 07:40:25 +0000 (07:40 +0000)]
2005-04-05 Anton Blanchard <anton@samba.org>
* linux/powerpc/ioctlent.h: Regenerated.
Roland McGrath [Wed, 23 Mar 2005 03:19:02 +0000 (03:19 +0000)]
.
Roland McGrath [Wed, 23 Mar 2005 03:18:59 +0000 (03:18 +0000)]
2005-03-22 Roland McGrath <roland@redhat.com>
* desc.c (decode_select): Increase local buffer size.
Fixes RH#151570.
Roland McGrath [Tue, 22 Mar 2005 23:13:24 +0000 (23:13 +0000)]
.
Roland McGrath [Tue, 22 Mar 2005 23:12:41 +0000 (23:12 +0000)]
2005-03-22 Roland McGrath <roland@redhat.com>
* linux/arm/syscallent.h: Fix 113 entry (syscall, not vm86old).
Roland McGrath [Tue, 22 Mar 2005 23:12:39 +0000 (23:12 +0000)]
2005-03-22 Roland McGrath <roland@redhat.com>
* configure.ac, NEWS: Version 4.5.11.
* debian/changelog, strace.spec: 4.5.11-1.
Roland McGrath [Tue, 15 Mar 2005 02:40:23 +0000 (02:40 +0000)]
.
Roland McGrath [Tue, 15 Mar 2005 02:40:12 +0000 (02:40 +0000)]
2005-03-14 Roland McGrath <roland@redhat.com>
* configure.ac, NEWS: Version 4.5.10.
* debian/changelog, strace.spec: 4.5.10-1.
Roland McGrath [Tue, 15 Mar 2005 02:17:23 +0000 (02:17 +0000)]
.
Roland McGrath [Tue, 15 Mar 2005 02:17:10 +0000 (02:17 +0000)]
2005-02-26 GOTO Masanori <gotom@debian.or.jp>
* linux/alpha/syscallent.h: Fix the reversed order of lstat64 and
fstat64. Clean up osf_nrecvmsg and osf_ngetsockname.
Roland McGrath [Tue, 15 Mar 2005 02:16:21 +0000 (02:16 +0000)]
.
Roland McGrath [Tue, 15 Mar 2005 02:16:05 +0000 (02:16 +0000)]
2005-03-14 Roland McGrath <roland@redhat.com>
* linux/mips/syscallent.h: Update various calls.
From Thiemo Seufer <ths@networkno.de>.
Fixes Debian bug #256684.
Roland McGrath [Tue, 15 Mar 2005 02:15:54 +0000 (02:15 +0000)]
2005-03-14 Roland McGrath <roland@redhat.com>
* debian/control (Architecture): Add s390.
Fixes Debian bug #294172.
Roland McGrath [Tue, 15 Mar 2005 02:15:20 +0000 (02:15 +0000)]
2005-02-28 Andreas Schwab <schwab@suse.de>
* syscall.c (getrval2): Move #ifdef IA64 inside #ifdef LINUX.
Roland McGrath [Sun, 6 Mar 2005 22:24:52 +0000 (22:24 +0000)]
.
Roland McGrath [Sun, 6 Mar 2005 22:24:29 +0000 (22:24 +0000)]
2005-03-06 Roland McGrath <roland@redhat.com>
* strace.c (trace) [PTRACE_GETSIGINFO]: Fetch siginfo_t for SIGSEGV
and SIGBUS signals, use si_addr in output.
Roland McGrath [Tue, 1 Mar 2005 23:03:11 +0000 (23:03 +0000)]
.
Roland McGrath [Tue, 1 Mar 2005 23:02:32 +0000 (23:02 +0000)]
2005-03-01 Roland McGrath <roland@redhat.com>
* file.c (print_xattr_val): Add a cast.
Roland McGrath [Sun, 6 Feb 2005 01:55:16 +0000 (01:55 +0000)]
.
Roland McGrath [Sun, 6 Feb 2005 01:55:12 +0000 (01:55 +0000)]
2005-02-05 Roland McGrath <roland@redhat.com>
* desc.c (decode_select): Calculate size of passed fd_set vectors and
copy in the user's size rather than the standard sizeof(fd_set).
Fixes Debian bug #65654.
Roland McGrath [Sun, 6 Feb 2005 01:55:07 +0000 (01:55 +0000)]
2005-02-05 Roland McGrath <roland@redhat.com>
* util.c (printpath, printpathn): Print NULL and don't try any fetch
when ADDR is zero.
Fixes Debian bug #63093.
Roland McGrath [Sun, 6 Feb 2005 01:16:47 +0000 (01:16 +0000)]
.
Roland McGrath [Sun, 6 Feb 2005 01:16:32 +0000 (01:16 +0000)]
2004-12-19 Dmitry V. Levin <ldv@altlinux.org>
* strace.c (main) [!USE_PROCFS]: In child process, raise SIGSTOP
right before execv() call. Remove fake_execve() call.
* defs.h (fake_execve): Remove unused declaration.
* process.c (fake_execve): Remove unused function.
Fixes RH#143365.
Roland McGrath [Sun, 6 Feb 2005 01:16:22 +0000 (01:16 +0000)]
2005-02-05 Roland McGrath <roland@redhat.com>
* debian/control (Build-Depends): Fix for s390 and sparc.
From Bastian Blank <waldi@debian.org>.
Fixes Debian bug #293564.
Roland McGrath [Fri, 4 Feb 2005 10:13:15 +0000 (10:13 +0000)]
nit
Roland McGrath [Fri, 4 Feb 2005 09:54:16 +0000 (09:54 +0000)]
.
Roland McGrath [Fri, 4 Feb 2005 09:54:04 +0000 (09:54 +0000)]
2005-02-04 Roland McGrath <roland@redhat.com>
* configure.ac, NEWS: Version 4.5.9.
* debian/changelog, strace.spec: 4.5.9-2.
Roland McGrath [Fri, 4 Feb 2005 09:50:24 +0000 (09:50 +0000)]
.
Roland McGrath [Fri, 4 Feb 2005 09:49:56 +0000 (09:49 +0000)]
2005-02-04 Roland McGrath <roland@redhat.com>
* file.c (O_LARGEFILE): Omit when #undef'd because it was zero.
Roland McGrath [Fri, 4 Feb 2005 09:29:11 +0000 (09:29 +0000)]
.
Roland McGrath [Fri, 4 Feb 2005 09:29:04 +0000 (09:29 +0000)]
2005-02-04 Roland McGrath <roland@redhat.com>
* configure.ac, NEWS: Version 4.5.9.
* debian/changelog, strace.spec: 4.5.9-1.
Roland McGrath [Thu, 3 Feb 2005 03:19:43 +0000 (03:19 +0000)]
.
Roland McGrath [Thu, 3 Feb 2005 03:19:34 +0000 (03:19 +0000)]
2005-02-02 Roland McGrath <roland@redhat.com>
* debian/control: Add strace-udeb package for installer debugging.
* debian/rules (binary-arch): Build it.
From Joshua Kwan <joshk@triplehelix.org>.
Fixes Debian bug #268294.
Roland McGrath [Wed, 2 Feb 2005 22:11:37 +0000 (22:11 +0000)]
.
Roland McGrath [Wed, 2 Feb 2005 22:11:32 +0000 (22:11 +0000)]
2005-02-02 Roland McGrath <roland@redhat.com>
* file.c (openmodes) [O_LARGEFILE] [O_LARGEFILE == 0]: Redefine to
known values for Linux.
Roland McGrath [Wed, 2 Feb 2005 20:55:27 +0000 (20:55 +0000)]
.
Roland McGrath [Wed, 2 Feb 2005 20:55:23 +0000 (20:55 +0000)]
2005-02-02 Roland McGrath <roland@redhat.com>
* util.c (printcall): Print 16 ?s when long is 8 bytes.
Fixes RH#146932.
Roland McGrath [Wed, 2 Feb 2005 20:45:37 +0000 (20:45 +0000)]
.
Roland McGrath [Wed, 2 Feb 2005 20:32:37 +0000 (20:32 +0000)]
.
Roland McGrath [Wed, 2 Feb 2005 20:32:13 +0000 (20:32 +0000)]
2005-02-02 Roland McGrath <roland@redhat.com>
* linux/sparc/syscall.h: Declare sys_epoll_create, sys_epoll_ctl,
sys_epoll_wait.
* linux/sparc64/syscall.h: Just #include "../sparc/syscall.h" here.
* ioctl.c (nioctlents2): Add const to type.
Fixes Debian bug #278449.
Roland McGrath [Wed, 2 Feb 2005 20:25:36 +0000 (20:25 +0000)]
.
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:45:09 +0000 (04:45 +0000)]
.
Roland McGrath [Wed, 2 Feb 2005 04:44:57 +0000 (04:44 +0000)]
2004-12-20 Dmitry V. Levin <ldv@altlinux.org>
* configure.ac: Use AC_GNU_SOURCE macro instead of changing CFLAGS.
* defs.h [HAVE_CONFIG_H]: Include config.h first.
* strace.c: Include "defs.h" first.
Fixes RH#143370.
Roland McGrath [Wed, 2 Feb 2005 04:42:56 +0000 (04:42 +0000)]
.
Roland McGrath [Wed, 2 Feb 2005 04:42:25 +0000 (04:42 +0000)]
2004-12-20 Dmitry V. Levin <ldv@altlinux.org>
* syscall.c (call_summary): Fix potential NULL dereference.
Fixes RH#143369.
Roland McGrath [Wed, 2 Feb 2005 04:40:36 +0000 (04:40 +0000)]
.
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:38 +0000 (04:36 +0000)]
.
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:19:19 +0000 (04:19 +0000)]
.
Roland McGrath [Wed, 2 Feb 2005 04:19:06 +0000 (04:19 +0000)]
2005-02-01 Roland McGrath <roland@redhat.com>
* config.guess: Update from canonical version, timestamp 2004-11-12.
* config.sub: Likewise, timestamp 2004-11-30.
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:58 +0000 (04:16 +0000)]
.
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.