873 Commits

Author SHA1 Message Date
Roland McGrath
e10e62a03c 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.
2004-09-04 04:20:43 +00:00
Roland McGrath
77019f783a . 2004-09-04 03:53:18 +00:00
Roland McGrath
ee36ce19e0 2004-09-03 Roland McGrath <roland@redhat.com>
* syscall.c (sysent0, sysent1, sysent2, sysent): Add const to defn.
	(nsyscalls0, nsyscalls1, nsyscalls2): Likewise.
	(errnoent0, errnoent1, errnoent2, errnoent): Likewise.
	(nerrnos0, nerrnos1, nerrnos2): Likewise.
	* signal.c (signalent0, signalent1, signalent2): Likewise.
	(nsignals0, nsignals1, nsignals2): Likewise.
	(signame): LIkewise.
	* ioctl.c (ioctlent0, ioctlent1, ioctlent2): Likewise.
	(nioctlents0, nioctlents1, nioctlents2): Likewise.
	(ioctl_lookup, ioctl_next_match): Likewise.
	* defs.h: Update decls.
	* io.c (sys_ioctl): Update users.
2004-09-04 03:53:10 +00:00
Roland McGrath
4ee6e6970d . 2004-09-04 03:39:26 +00:00
Roland McGrath
d9f816f604 2004-09-03 Roland McGrath <roland@redhat.com>
* util.c (xlookup, printxval, addflags, printflags): Use const for
	struct xlat * argument.
	* defs.h (xlookup, printxval, addflags, printflags): Update decls.
	* bjm.c: Add const to all struct xlat defns.
	* desc.c: Likewise.
	* file.c: Likewise.
	* ipc.c: Likewise.
	* mem.c: Likewise.
	* net.c: Likewise.
	* proc.c: Likewise.
	* process.c: Likewise.
	* resource.c: Likewise.
	* signal.c: Likewise.
	* sock.c: Likewise.
	* stream.c: Likewise.
	* system.c: Likewise.
	* term.c: Likewise.
	* time.c: Likewise.
	* util.c: Likewise.
2004-09-04 03:39:20 +00:00
Roland McGrath
b036f584a0 . 2004-09-01 19:39:59 +00:00
Roland McGrath
475d203dc4 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.
2004-09-01 19:39:50 +00:00
Roland McGrath
c74c0b732b 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.
2004-09-01 19:39:46 +00:00
Roland McGrath
a9baea469b 2004-08-31 Roland McGrath <roland@redhat.com>
* configure.ac, NEWS: Version 4.5.7.
	* debian/changelog: 4.5.7-1.
	* strace.spec: 4.5.7-2.
2004-08-31 09:02:35 +00:00
Roland McGrath
61d6487f11 2004-08-31 Roland McGrath <roland@redhat.com>
* configure.ac, NEWS: Version 4.5.7.
	* debian/changelog: 4.5.7-1.
	* strace.spec: 4.5.7-2.
2004-08-31 08:58:10 +00:00
Roland McGrath
5db9032c63 2004-08-31 Roland McGrath <roland@redhat.com>
* debian/rules: Rewrite sparc64 change of 2004-07-12.
	Always do each build in a separate build directory.
	Fixes Debian bug #254728.
2004-08-31 08:54:09 +00:00
Roland McGrath
f5fcbc1fb0 . 2004-08-31 08:41:59 +00:00
Roland McGrath
b15c497495 2004-08-31 Roland McGrath <roland@redhat.com>
* configure.ac, NEWS: Version 4.5.7.
	* strace.spec, debian/changelog: 4.5.7-1.
2004-08-31 08:41:47 +00:00
Roland McGrath
c9b624f4aa 2004-08-31 Roland McGrath <roland@redhat.com>
* debian/rules: Rewrite sparc64 change of 2004-07-12.
	Always do each build in a separate build directory.
	Fixes Debian bug #254728.
2004-08-31 08:40:50 +00:00
Roland McGrath
55a00f8092 2004-08-31 Roland McGrath <roland@redhat.com>
* time.c (clocknames): Use #ifdef around CLOCK_* uses.
2004-08-31 08:26:39 +00:00
Roland McGrath
0ef93b71ea . 2004-08-31 08:17:26 +00:00
Roland McGrath
368ccc64a9 2004-08-31 Roland McGrath <roland@redhat.com>
* debian/rules: Revert sparc64 change of 2004-07-12.
	It does not build properly.
	Fixes Debian bug #254728.
2004-08-31 08:17:22 +00:00
Roland McGrath
b93f918356 2004-08-31 Roland McGrath <roland@redhat.com>
* configure.ac, NEWS: Version 4.5.7.
	* strace.spec, debian/changelog: 4.5.7-1.
2004-08-31 08:17:20 +00:00
Roland McGrath
dc025fad62 . 2004-08-31 07:48:03 +00:00
Roland McGrath
4de04aa70f 2004-08-31 Roland McGrath <roland@redhat.com>
* strace.1: Say that -c shows system CPU time, not real time.
	Fixes Debian bug #254438.
2004-08-31 07:47:47 +00:00
Roland McGrath
aa510629c7 2004-08-31 Roland McGrath <roland@redhat.com>
* syscall.c (dumpio): Match pread and pwrite system calls too.
	Fixes Debian bug #239947.
2004-08-31 07:47:45 +00:00
Roland McGrath
1651c1c531 . 2004-08-31 07:16:21 +00:00
Roland McGrath
1bf4373ab6 2004-08-31 Roland McGrath <roland@redhat.com>
* net.c (sockoptions): Add all SO_* macros known in Linux 2.6.9.
	Fixes Debian bug #171653.
2004-08-31 07:16:14 +00:00
Roland McGrath
8e593d23d1 . 2004-08-31 07:03:43 +00:00
Roland McGrath
92f1d6d4e4 2004-07-12 Dmitry V. Levin <ldv@altlinux.org>
* signal.c [LINUX] (parse_sigset_t): Fix hex strings parser.
	Fixes RH#128091.
2004-08-31 07:03:20 +00:00
Roland McGrath
0a053256ee . 2004-08-31 07:02:00 +00:00
Roland McGrath
08f0ae30fd 2004-08-30 Roland McGrath <roland@redhat.com>
* strace.c (main): Don't call fake_execve under -c.
	From Ulrich Drepper <drepper@redhat.com>.
	Fixes RH#129166.
2004-08-31 07:01:56 +00:00
Roland McGrath
4f6ba69d99 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.
2004-08-31 07:01:26 +00:00
Roland McGrath
7fbbf020f7 . 2004-08-31 06:52:49 +00:00
Roland McGrath
54a4edd69a 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.
2004-08-31 06:52:45 +00:00
Roland McGrath
3a71f1938b . 2004-08-31 06:49:09 +00:00
Roland McGrath
ced50da46b 2004-08-30 Roland McGrath <roland@redhat.com>
* system.c (personality_options): Hard-code values here.
	Don't #include <linux/personality.h> at all.
	Fixes RH#130965.
2004-08-31 06:48:46 +00:00
Roland McGrath
a0b9ef14b0 . 2004-08-31 06:30:51 +00:00
Roland McGrath
3292e229b9 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.
2004-08-31 06:30:48 +00:00
Roland McGrath
d51619ab5d . 2004-07-12 07:56:00 +00:00
Roland McGrath
785a0260ff 2004-07-12 Roland McGrath <roland@redhat.com>
* configure.ac, NEWS: Version 4.5.6.
	* strace.spec, debian/changelog: 4.5.6-1.
2004-07-12 07:55:48 +00:00
Roland McGrath
05cf2951a6 . 2004-07-12 07:54:09 +00:00
Roland McGrath
b46cd51d58 2004-07-12 Roland McGrath <roland@redhat.com>
* debian/rules: On sparc-linux, build strace64 as well.
	From Ben Collins <bcollins@debian.org>.
	Fixes Debian bug #254728.
2004-07-12 07:54:02 +00:00
Roland McGrath
0165e7790d 2004-07-12 Roland McGrath <roland@redhat.com>
* Makefile.am (EXTRA_DIST): Add linux/sparc64 files.
2004-07-12 07:53:59 +00:00
Roland McGrath
6d1a65c759 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.
2004-07-12 07:44:08 +00:00
Roland McGrath
fdb097f637 2004-06-28 Andreas Schwab <schwab@suse.de>
* process.c (internal_exec): Move TCB_WAITEXECVE handling here.
	(sys_execve): Remove it here.
2004-07-12 07:38:55 +00:00
Roland McGrath
6b3b1fcee1 2004-07-12 Roland McGrath <roland@redhat.com>
* debian/control (Section): Move to utils, matching Debian override.
2004-07-12 07:27:25 +00:00
Roland McGrath
6617729a7a 2004-07-12 Roland McGrath <roland@redhat.com>
* Makefile.am (EXTRA_DIST): Add linux/sh64/syscallent.h.
2004-07-12 07:27:23 +00:00
Roland McGrath
23e86d6763 . 2004-07-12 07:13:12 +00:00
Roland McGrath
5687ff1ca7 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.
2004-07-12 07:13:06 +00:00
Roland McGrath
90a5a949d8 . 2004-07-12 07:04:55 +00:00
Roland McGrath
bd10245b09 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.
2004-07-12 07:04:39 +00:00
Roland McGrath
61e0bebb44 2004-07-11 Roland McGrath <roland@redhat.com>
* linux/ioctlent.sh: Replace asm with $asm in all places.
2004-07-12 06:11:16 +00:00
Roland McGrath
adc2b308a1 Tweak maintainer rules. 2004-07-12 06:11:03 +00:00
Roland McGrath
16110b23a0 . 2004-07-12 05:45:26 +00:00