1cad25dd44
2006-12-10 Dmitry V. Levin <ldv@altlinux.org>
...
Add biarch support for "struct itimerval".
* time.c (printitv): Rename to printitv_bitness().
Add printitv() macro wrapper around printitv_bitness().
(printitv_bitness): Handle 32-bit personality.
[ALPHA] (sys_osf_getitimer, sys_osf_setitimer):
Use printitv_bitness().
(tprint_timeval, tprint_timeval32): New functions.
(printtv_bitness, printitv_bitness, sys_adjtimex): Use them.
(printitv32): Remove.
2006-12-13 17:14:36 +00:00
a7945a3d4e
2006-12-10 Dmitry V. Levin <ldv@altlinux.org>
...
Add biarch support for "struct timeval".
* defs.h (bitness_t): New enum type.
(printtv_bitness, sprinttv): New function prototypes.
(printtv): Convert to macro wrapper around printtv_bitness().
(printtv32): Remove.
* desc.c (decode_select): Use printtv_bitness() and sprinttv().
(sys_oldselect, sys_osf_select, sys_select, sys_pselect6):
Update decode_select() use.
* file.c [ALPHA] (sys_osf_utimes): Use printtv_bitness().
* time.c (printtv_bitness, sprinttv): New functions.
(printtv, printtv32): Remove.
[ALPHA] (sys_osf_settimeofday, sys_osf_settimeofday):
Use printtv_bitness().
Fixes RH#171626, RH#173050.
2006-12-13 17:10:11 +00:00
4ebb4e3d31
2006-12-10 Dmitry V. Levin <ldv@altlinux.org>
...
Add biarch support for "struct iovec".
* defs.h (personality_wordsize): Add.
* io.c [HAVE_SYS_UIO_H] (tprint_iov): [LINUX &&
SUPPORTED_PERSONALITIES > 1] Handle 32-bit personality.
* util.c [HAVE_SYS_UIO_H] (dumpiov): [LINUX &&
SUPPORTED_PERSONALITIES > 1] Likewise.
Patch from Jakub Jelinek.
Fixes RH#218433.
2006-12-13 17:08:08 +00:00
ac518d1077
2006-12-10 Dmitry V. Levin <ldv@altlinux.org>
...
* time.c (sys_timer_create): Check umove() return code.
2006-12-13 17:03:02 +00:00
b9fe011cdf
2006-12-10 Dmitry V. Levin <ldv@altlinux.org>
...
Make several global variables static.
#ifdef definitions of rarely unused functions.
* defs.h (rflag, tflag, outfname): Remove.
* strace.c (iflag, interactive, pflag_seen, rflag, tflag,
outfname, username): Make static.
* desc.c (sys_getdtablesize): Define only for
ALPHA || FREEBSD || SUNOS4.
* file.c (sys_fchroot): Define only for SUNOS4 || SVR4.
(sys_mkfifo): Define only for FREEBSD.
* mem.c (sys_sbrk): Define only for FREEBSD || SUNOS4.
(sys_getpagesize): Define only for
ALPHA || FREEBSD || IA64 || SUNOS4 || SVR4.
* net.c (sys_so_socket): Define only for SVR4.
* process.c (sys_gethostid): Define only for
FREEBSD || SUNOS4 || SVR4.
(sys_gethostname): Define only for
ALPHA || FREEBSD || SUNOS4 || SVR4.
(sys_setpgrp): Define only for ALPHA || SUNOS4 || SVR4.
(sys_execv): Define only for SPARC || SPARC64 || SUNOS4.
* signal.c (sys_sigblock): Define only for FREEBSD || SUNOS4.
(sys_sighold, sys_sigwait): Define only for SVR4.
(sys_killpg): Define only for FREEBSD || SUNOS4.
* stream.c (sys_getmsg): Define only for
SPARC || SPARC64 || SUNOS4 || SVR4.
* syscall.c (sys_indir): Define only for SUNOS4.
2006-12-13 16:59:44 +00:00
35a55785ea
2006-11-27 Dmitry V. Levin <ldv@altlinux.org>
...
* system.c [LINUX]: Define CTL_PROC, since Linux 2.6.18+ headers
removed CTL_PROC enum. Patch from Jakub Jelinek.
[LINUX] (sysctl_root): Add CTL_BUS, CTL_ABI and CTL_CPU.
2006-12-04 13:48:10 +00:00
a694666207
2006-11-20 Jakub Jelinek <jakub@redhat.com>
...
* linux/ia64/syscallent.h: Add #if check to make sure that
SYS_socket_subcall adjustment isn't forgotten again.
2006-12-04 13:46:28 +00:00
ef5c3d657d
2006-10-16 Dmitry V. Levin <ldv@altlinux.org>
...
Implement comprehensive quotactl(2) parser for Linux.
* Makefile.am (strace_SOURCES): Add quota.c.
* quota.c: New file.
* resource.c: Remove old quotactl(2) parser.
Fixes RH#118696.
2006-10-16 00:26:47 +00:00
1f336e59aa
2006-10-14 Dmitry V. Levin <ldv@altlinux.org>
...
* configure.ac(AC_CHECK_HEADERS): Add inttypes.h.
* file.c [_LFS64_LARGEFILE && (LINUX || SVR4)]:
Include <inttypes.h>.
(sys_getdents64): Use PRIu64/PRId64 to avoid gcc warnings on
64-bit platforms.
2006-10-14 20:20:46 +00:00
cbd470fc9d
2006-10-14 Dmitry V. Levin <ldv@altlinux.org>
...
* strace.c (main): Check getcwd() return code.
2006-10-14 14:23:57 +00:00
95ebf5abfc
2006-10-13 Ulrich Drepper <drepper@redhat.com>
...
Bernhard Kaindl <bk@suse.de>
Dmitry V. Levin <ldv@altlinux.org>
Michael Holzheu <holzheu@de.ibm.com>
Add hooks for new syscalls. Add decoders for *at, inotify*,
pselect6, ppoll and unshare syscalls.
* defs.h: Declare print_sigset.
* desc.c (sys_pselect6): New function.
* file.c (decode_open, decode_access, decode_mkdir,
decode_readlink, decode_chmod, decode_utimes, decode_mknod):
New functions.
(sys_open, sys_access, sys_mkdir, sys_readlink, sys_chmod,
sys_utimes, sys_mknod): Use them.
[LINUX] (fstatatflags, unlinkatflags, inotify_modes): New
variables.
[LINUX] (print_dirfd, sys_openat, sys_faccessat,
sys_newfstatat, sys_mkdirat, sys_linkat, sys_unlinkat,
sys_symlinkat, sys_readlinkat, sys_renameat, sys_fchownat,
sys_fchmodat, sys_futimesat, sys_mknodat, sys_inotify_add_watch,
sys_inotify_rm_watch): New functions.
* process.c [LINUX] (sys_unshare): New function.
* signal.c (print_sigset): New function.
(sys_sigprocmask): Use it.
* stream.c (decode_poll): New function.
(sys_poll): Use it.
[LINUX] (sys_ppoll): New function.
* linux/syscall.h: Delcare new syscall handlers.
* linux/syscallent.h: Hook up new 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/sparc/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
Fixes RH#178633.
2006-10-13 20:25:12 +00:00
9633942c07
2006-10-06 Dmitry V. Levin <ldv@altlinux.org>
...
* strace.c [!USE_PROCFS] (trace): Presence of PT_GETSIGINFO
macro does not mean that PT_CR_IPSR and PT_CR_IIP macros are
also defined, so check them along with PT_GETSIGINFO.
Fixes RH#209856.
2006-10-11 23:11:43 +00:00
504eb0b9c6
2006-09-01 Dmitry V. Levin <ldv@altlinux.org>
...
* file.c (print_xattr_val): Fix memory corruption bug reported
by James Antill.
Fixes RH#200621.
2006-10-11 22:58:31 +00:00
aca9a74264
2006-04-21 Dmitry V. Levin <ldv@altlinux.org>
...
* defs.h [LINUX && X86_64 && !__NR_exit_group]: Define
__NR_exit_group.
2006-10-11 22:56:49 +00:00
76860f60d7
2006-03-29 Dmitry V. Levin <ldv@altlinux.org>
...
Fix race conditions in tcb allocation.
* process.c (fork_tcb): Return error code as documented. Do not
print "tcb table full" error message.
[USE_PROCFS] (internal_fork): Do not print "tcb table full"
error message.
[SYS_clone || SYS_clone2] (internal_clone, internal_fork): Call
fork_tcb() before alloctcb(). Do not print "tcb table full"
error message.
* strace.c (main): Do not print "tcb table full" error message.
(expand_tcbtab): Print error message in case of memory allocation
failure.
(alloctcb): Print error message when tcb table is full.
(trace): Expand tcb table if necessary prior to allocating
entry there. Do not print "tcb table full" error message.
Fixes RH#180293.
2006-10-11 22:55:25 +00:00
Roland McGrath
fd52f8d9af
fix bz tag
2006-10-10 00:57:30 +00:00
Roland McGrath
ff87ae2ef1
.
2006-08-22 07:37:00 +00:00
Roland McGrath
9f130d5114
2006-08-22 Roland McGrath <roland@redhat.com>
...
* ipc.c (sys_msgget, sys_semget, sys_shmget): Show key values in hex.
Fixes RH#198179.
2006-08-22 07:36:55 +00:00
Roland McGrath
7103001b35
.
2006-08-22 06:33:45 +00:00
Roland McGrath
1eecc38560
2006-08-21 Roland McGrath <roland@redhat.com>
...
* linux/syscall.h (SYS_socket_subcall): Bump to 400.
* linux/syscallent.h: Update table.
* linux/arm/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
Fixes RH#202620.
2006-08-22 06:17:33 +00:00
Roland McGrath
6ef291b9eb
.
2006-08-22 06:06:24 +00:00
Roland McGrath
feb8381390
2006-08-21 Roland McGrath <roland@redhat.com>
...
* linux/syscall.h (SYS_socket_subcall): Bump to 400.
* linux/syscallent.h: Update table.
* linux/arm/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
Fixes RH#202620.
2006-08-22 06:06:12 +00:00
Roland McGrath
de1701007f
.
2006-04-25 07:48:06 +00:00
Roland McGrath
cb9def6975
2006-04-25 Roland McGrath <roland@redhat.com>
...
* strace.c (main): Fail when -c is given with -ff.
* strace.1: Note their incompatibility.
Fixes RH#187847.
2006-04-25 07:48:03 +00:00
Roland McGrath
5b97ae3122
.
2006-04-25 07:39:48 +00:00
Roland McGrath
d0c4c0cb88
2006-04-25 Roland McGrath <roland@redhat.com>
...
* strace.c (main): Fail when nonoption args follow -p switches.
Fixes Debian#361302.
2006-04-25 07:39:40 +00:00
Roland McGrath
4582127fea
2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
...
* linux/arm/syscallent.h: Correct the name of exit. Remove
M68K conditionals and sys_security. Correct syscalls 243-282.
Fixes Debian#360154.
2006-04-25 07:39:34 +00:00
Roland McGrath
9216ba7a74
.
2006-04-25 07:34:44 +00:00
Roland McGrath
f691bd2a4f
2006-03-30 Daniel Jacobowitz <dan@codesourcery.com>
...
* process.c (change_syscall): Add ARM support.
* syscall.c (get_scno): Handle ARM EABI.
Fixes Debian#360152.
2006-04-25 07:34:41 +00:00
Roland McGrath
9d19e163f0
.
2006-04-25 07:33:26 +00:00
Roland McGrath
5a862ff6b9
2006-04-25 Roland McGrath <roland@redhat.com>
...
* Makefile.am (EXTRA_DIST): Add xlate.el.
2006-04-25 07:33:20 +00:00
Roland McGrath
6827f0c223
2006-04-25 Roland McGrath <roland@redhat.com>
...
* linux/mips/Makefile.in: File removed, unused cruft.
* linux/sparc/Makefile.in: Likewise.
2006-04-25 07:33:19 +00:00
Roland McGrath
2377706eb5
.
2006-04-25 07:22:04 +00:00
Roland McGrath
4aa15561f9
2006-04-25 Roland McGrath <roland@redhat.com>
...
* strace.spec (Source0): Use http://dl.sourceforge.net URL.
2006-04-25 07:22:02 +00:00
Roland McGrath
a079d9f95a
2006-04-25 Roland McGrath <roland@redhat.com>
...
* ipc.c (sys_semtimedop): Fixed inverted indirect_ipccall test.
* linux/hppa/syscallent.h: Fixed semtimedop entry.
From Mike Stroyan <mike.stroyan@hp.com>.
Fixes Debian#340239.
2006-04-25 07:22:01 +00:00
Roland McGrath
074a8e1619
.
2006-01-17 06:23:01 +00:00
Roland McGrath
f4d9b49453
2006-01-16 Roland McGrath <roland@redhat.com>
...
* configure.ac, NEWS: Version 4.5.14.
* debian/changelog, strace.spec: 4.5.14-1.
2006-01-17 06:22:57 +00:00
Roland McGrath
ef6b8bf61b
.
2006-01-14 00:20:26 +00:00
Roland McGrath
e1f27c5aed
2006-01-13 Roland McGrath <roland@redhat.com>
...
* debian/control (Build-Depends): Add debhelper.
2006-01-14 00:20:20 +00:00
Roland McGrath
402c9d1ed5
.
2006-01-12 22:35:02 +00:00
Roland McGrath
79dcd7aa9c
2006-01-12 Roland McGrath <roland@redhat.com>
...
* signal.c [LINUX] (sys_restart_syscall): New function.
* linux/syscall.h: Declare sys_restart_syscall.
* linux/sparc/syscall.h: Likewise.
* linux/syscallent.h: Call 0 is restart_syscall.
* linux/arm/syscallent.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/sparc64/syscallent.h: Likewise.
* linux/alpha/syscallent.h: Use sys_restart_syscall.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
2006-01-12 22:34:50 +00:00
Roland McGrath
6af374811b
2005-08-08 Dmitry V. Levin <ldv@altlinux.org>
...
* system.c [LINUX] (MS_MGC_VAL): New macro.
[LINUX] (mount_flags): Add it.
[LINUX] (sys_mount): If neither MS_BIND nor MS_MOVE bits are
set in the flags argument, try to fetch data string.
Fixes RH#165377.
2006-01-12 21:21:06 +00:00
Roland McGrath
e8e43207bd
.
2006-01-12 11:07:40 +00:00
Roland McGrath
839a9da963
2006-01-12 Roland McGrath <roland@redhat.com>
...
* debian/control (Standards-Version): Update to 3.6.2.
2006-01-12 11:03:49 +00:00
Roland McGrath
9ee476f7d4
.
2006-01-12 11:03:48 +00:00
Roland McGrath
8e4a3e61ef
2006-01-12 Roland McGrath <roland@redhat.com>
...
* system.c (sys_sysctl): Don't read off end of NAME when max_strlen
exceeds INFO.nlen.
From Timo Lindfors <timo.lindfors@iki.fi>.
Fixes Debian#339117.
2006-01-12 11:03:46 +00:00
Roland McGrath
0662b590ab
2006-01-12 Roland McGrath <roland@redhat.com>
...
* debian/rules (binary-arch): Don't pass -s to install. Use dh_strip.
Fixes Debian#325132.
2006-01-12 11:03:44 +00:00
Roland McGrath
97a932bc72
.
2006-01-12 10:19:01 +00:00
Roland McGrath
4b2dccaf94
2006-01-12 Roland McGrath <roland@redhat.com>
...
* defs.h [LINUXSPARC] (PERSONALITY0_WORDSIZE, PERSONALITY1_WORDSIZE):
New macros.
[SPARC64] (PERSONALITY2_WORDSIZE): New macro.
[X86_64] (PERSONALITY0_WORDSIZE, PERSONALITY1_WORDSIZE): New macros.
* syscall.c (PERSONALITY0_WORDSIZE): New macro if undefined.
(personality_wordsize): New variable.
(decode_subcall): Use it for size of argument words.
Fixes RH#174354.
2006-01-12 10:18:53 +00:00
Roland McGrath
4935530a8a
.
2006-01-12 09:51:03 +00:00