blob: d88c81e1778a7981f8c3de633a44a0c8d70909e5 [file] [log] [blame]
Michal Ludvig10a88d02002-10-07 14:31:00 +000012002-10-07 Michal Ludvig <mludvig@suse.cz>
2
3 Merged s390x port by Heiko Carstens <Heiko.Carstens@de.ibm.com>
4 and bugfixes to s390 by D.J. Barrow.
5
Michal Ludvig53b320f2002-09-23 13:30:09 +000062002-09-23 Michal Ludvig <mludvig@suse.cz>
7
Michal Ludvig0e035502002-09-23 15:41:01 +00008 Merged x86-64 port by Andi Kleen <ak@suse.de>
9 and Michal Ludvig <mludvig@suse.cz>
10 * Makefile.in: New target 'headers'. Failure ignored.
11 * acconfig.h: New defines for x86-64.
12 * configure.in: Ditto.
13 * defs.h: Ditto.
14 * file.c: Ditto.
15 * signal.c: Ditto.
16 * process.c: Added support for x86-64.
17 * util.c: Ditto.
18 * syscall.c: Ditto + added automatic personality switching.
19 * linux/syscall.h: Ditto.
20 * linux/x86_64: New directory.
21 * linux/x86_64/Makefile.in: New file.
22 * linux/x86_64/gentab.pl: Ditto.
23 * linux/x86_64/i386-headers.diff: Ditto.
24 * linux/x86_64/makeheaders.sh: Ditto.
25 * linux/x86_64/syscallent.h: Ditto.
26 * mem.c (print_mmap): Always print arg[4] as int.
27
282002-09-23 Michal Ludvig <mludvig@suse.cz>
29
Michal Ludvig53b320f2002-09-23 13:30:09 +000030 * configure.in: Fix regular expressions.
31 * linux/syscall.h: Added missing braces in prototype of
32 sys_getdents64().
33 * file.c: Use '#ifdef LINUX' instead of '#ifdef linux'.
34 (struct fileflags): Made extern to inhibit compiation warnings.
35 (sys_getdents64): Merged LINUX and SVR4 part.
Michal Ludvig0e035502002-09-23 15:41:01 +000036 * syscall.c (get_scno): Split multiline string into two distinct
Michal Ludvig53b320f2002-09-23 13:30:09 +000037 strings.
38
John Hughes2c4e3a82002-05-24 10:19:44 +0000392002-05-24 John Hughes <john@calva.com>
40
41 * stream.h, net.h: Avoid possible infinite loop caused by
42 unsigned arithmetic in preceeding change.
43
John Hughesb6643082002-05-23 11:02:22 +0000442002-05-23 John Hughes <john@calva.com>
45
John Hughes38ae88d2002-05-23 11:48:58 +000046 * acconfig.h: Add HAVE_OPTHDR and HAVE_T_OPTHDR defines.
47
48 * aclocal.m4: Add tests for struct opthdr in sys/socket.h and
49 struct t_opthdr in sys/tiuser.h, define HAVE_OPTHDR and HAVE_T_OPTHDR
50 if found.
51
52 * configure.in: use tests for struct opthdr and struct t_opthdr.
53
54 * defs.h: add new function print_sock_optmgmt.
55
56 * io.c: add hack that lets ioctl decode functions set auxilliary
57 string return.
58
59 * stream.c: better decoding for timod ioctls.
60
61 * net.c: add function print_sock_optmgmt, used by timod ioctl
62 decoding functions in stream.c.
63
642002-05-23 John Hughes <john@calva.com>
65
John Hughescde80ab2002-05-23 11:19:05 +000066 * acconfig.h: Make autoheader happy about Linux/SuperH
67
682002-05-23 John Hughes <john@calva.com>
69
John Hughesb6643082002-05-23 11:02:22 +000070 * strace.c: Get rid of warning if not using POLL_HACK
71
John Hughes93f7fcc2002-05-22 15:46:49 +0000722002-05-22 John Hughes <john@calva.com>
73
74 * net.c: Simplify {get,set}sockopt, decode SO_LINGER, cope with
75 options that are not just ints, cope with systems that don't
76 #define SOL_TCP and so on.
77
John Hughesd870b3c2002-05-21 11:24:18 +0000782002-05-21 John Hughes <john@calva.com>
79
80 * strace.c: Fix warning if POLL_HACK is used.
81
John Hughesc61eb3d2002-05-17 11:37:50 +0000822002-05-17 John Hughes <john@calva.com>
83
John Hughes5eb78d52002-05-17 14:04:24 +000084 * svr4/ioctlent.sh: Some defines on UW come with too many spaces.
85
862002-05-17 John Hughes <john@calva.com>
87
John Hughese9224782002-05-17 13:58:24 +000088 * svr4/ioctlent.sh: Cope with #defines wrapped in #ifdefs.
89
902002-05-17 John Hughes <john@calva.com>
91
John Hughesfd15cb32002-05-17 11:41:35 +000092 * stream.c: tidy up output a little.
93
942002-05-17 John Hughes <john@calva.com>
95
John Hughesc61eb3d2002-05-17 11:37:50 +000096 * process.c, svr4/dummy.h, svr4/syscall.h: decode arguments
97 to procpriv syscall.
98
Wichert Akkermanccef6372002-05-01 16:39:22 +0000992002-05-01 Wichert Akkerman <wichert@deephackmode.org>
100
101 * configure.in, defs.h, process.c, sock.c, syscall.c, util.c: merge
102 patch from Greg Banks <gbanks@pocketpenguins.com> for Linux/SuperH
103 support
104
Wichert Akkermanb0c598f2002-04-01 12:48:06 +00001052002-04-01 Wichert Akkerman <wichert@deephackmode.org>
106
Wichert Akkermaneb8ebda2002-04-01 17:48:02 +0000107 * strace.c: close tcp->outf in droptcb()
108
1092002-04-01 Wichert Akkerman <wichert@deephackmode.org>
110
Wichert Akkermanb0c598f2002-04-01 12:48:06 +0000111 * net.c: decode packet options
112
Wichert Akkermand321ff92002-03-31 18:45:45 +00001132002-03-31 Wichert Akkerman <wichert@deephackmode.org>
114
Wichert Akkermaned2c74d2002-03-31 20:16:02 +0000115 * linux/{alpha,hppa,ia64,mips,powerpc,sparc}/syscallent.h: regenerated
116
1172002-03-31 Wichert Akkerman <wichert@deephackmode.org>
118
Wichert Akkermand321ff92002-03-31 18:45:45 +0000119 * debian/*: added
Wichert Akkerman7ab47b62002-03-31 19:00:02 +0000120 * linux/syscallent.h: fix typo and add the reserved stream syscalls
121 * defs.h, file.c, io.c: fix signed/unsigned issues
Wichert Akkerman4527dae2002-03-31 19:03:29 +0000122 * syscall.c: check for negative u_errors
Wichert Akkerman235b0ff2002-03-31 19:08:04 +0000123 * cvsbuild: renamed to autogen.sh
Wichert Akkermand321ff92002-03-31 18:45:45 +0000124
Wichert Akkerman8b8ff7c2001-12-27 22:27:30 +00001252001-12-17 Wichert Akkerman <wakkerma@debian.org>
126
127 * net.c: add new TCP socket options
128
John Hughesfa519572001-10-26 08:05:49 +00001292001-10-26 John Hughes <john@calva.com>
130
131 * svr4/ioctlent.sh: Cope with #define lines containing
132 comments that terminate on subsequent lines. Used to
133 comment out subsequent ioctls!
134
Wichert Akkerman9fbd0dd2001-10-26 05:20:37 +00001352001-10-25 Wichert Akkerman <wakkerma@debian.org>
136
137 * linux/ioctlent.h: regenerated using current scripts so
138 term ioctls are included
139
John Hughes19e49982001-10-19 08:59:12 +00001402001-10-19 John Hughes <john@Calva.COM>
141
142 * strace.c(proc_open): On SVR4 only trace the syscalls,
143 signals and faults we care about.
144
John Hughes42162082001-10-18 14:48:26 +00001452001-10-18 John Hughes <john@Calva.COM>
146
John Hughesc0c5ac82001-10-19 07:32:14 +0000147 * acconfig.h: Add HAS_SIGINFO_T.
148 * aclocal.m4: add check for siginfo_t in signal.h.
149 * configure.in: use check for siginfo_t.
150 * defs.h: if HAVE_SIGINFO_T the declare printsiginfo. On SVR4
151 allow access to siginfo when signal recieved.
152 * process.c: Remove SVR4 only version of printsiginfo.
153 * signal.c: merge SVR4 and LINUX versions of printsiginfo.
154 * strace.c: on SVR4 print siginfo when signal recieved.
155
1562001-10-18 John Hughes <john@Calva.COM>
157
John Hughes2d8b2c52001-10-18 14:52:24 +0000158 * system.c(sys_ssisys): handle return values for ssisys
159
1602001-10-18 John Hughes <john@Calva.COM>
161
John Hughes42162082001-10-18 14:48:26 +0000162 * signal.c: handle sigwait
163 * svr4/dummy.c: Move sigwait to done
164 * svr4/syscall.h: handle sigwait
165
John Hughes9cecf7f2001-10-16 10:20:22 +00001662001-10-16 John Hughes <john@Calva.COM>
167
John Hughes0aadba42001-10-16 18:19:52 +0000168 * system.c(sys_ssisys): decode some args for ssisys.
169
1702001-10-16 John Hughes <john@Calva.COM>
171
John Hughesaca07f32001-10-16 18:12:27 +0000172 * mem.c: MS_SYNC is zero, so must be first in xlat list.
173
174 * svr4/dummy.h: memcntl is much like mctl.
175
1762001-10-16 John Hughes <john@Calva.COM>
177
John Hughes9cecf7f2001-10-16 10:20:22 +0000178 * util.c (umovestr): UnixWare (svr4?) returns 0 when trying
179 to read unmapped page. Make it possible to strace ksh.
180
Wichert Akkerman7b3346b2001-10-09 23:47:38 +00001812001-10-03 David Mosberger <davidm@hpl.hp.com>
182
183 * process.c (internal_clone): Avoid race condition by clearing
184 breakpoint after attaching to child.
185
1862001-10-02 David Mosberger <davidm@hpl.hp.com>
187
188 * linux/ia64/syscallent.h: Define ia32 syscall numbers (originally
189 by Don Dugger, with my refinements).
190
191 * linux/ia64/ioctlent.h: Regenerate and manually merge conflicting
192 ioctls (TCGETS & SNDCTL_TMR_TIMEBASE, etc.).
193
194 * linux/ia64/Makefile.in (ioctldefs.h ioctls.h): Update for
195 new ioctlent.h generation scheme.
196
197 * linux/syscall.h (sys_clone2): Declare.
198 [IA64] Define ia32 socket, ipc, and extra syscall numbers.
199
200 * linux/ioctlent.sh (regexp): Also handle <asm/ioctls.h> so we
201 don't miss the tty ioctls (unfortunately, some of the sound timer
202 ioctls are in conflict with them!).
203
204 * util.c (setbpt) [IA64]: Add ia32 support (by Don Dugger).
205 (clrbpt) [IA64]: Ditto.
206
207 * syscall.c (internal_syscall): Handle SYS_clone2, SYS32_wait4,
208 and SYS32_exit.
209 (get_scno): Get ia32 syscall number from r1 (orig eax) instead of
210 r8 (eax). Handle TCB_WAITEXECVE.
211 (syscall_fixup): Handle ia64.
212 (syscall_enter): Fix argument fetching for ia64.
213
214 * strace.c [IA64 && LINUX]: Include <asm/ptrace_offsets.h>.
215 (trace) [PT_GETSIGINFO]: Print signal address and pc if possible.
216
217 * process.c (tcp): New function.
218 (change_syscall): Add support for ia64 linux.
219 (sys_execve): Turn on TCB_WAITEXECVE for ia64 linux.
220
221 * desc.c (getlk): Cast l_len to "long long" to avoid warnings when
222 type is narrower.
223 * resource.c (sprintrlim64): Ditto.
224
225 * defs.h (TCB_WAITEXECVE) [IA64]: Define.
226 [IA64]: Declare "ia32" variable.
227
228 * bjm.c: Do not include <linux/module.h>. It's not safe to include
229 kernel headers. Declare the necessary constants and structures
230 directly instead.
231
2322001-10-01 David Mosberger <davidm@hpl.hp.com>
233
234 * signal.c (parse_sigset_t): New function.
235 (sigishandled): Fix off-by-one bug by using parse_sigset_t() and
236 avoiding relying on internal layout of sigset_t datastructure.
237
2382001-04-26 David Mosberger <davidm@hpl.hp.com>
239
240 * linux/ia64/syscallent.h: Add getunwind().
241
2422001-04-11 David Mosberger <davidm@hpl.hp.com>
243
244 * syscall.c (syscall_enter): Use PT_RBS_END instead of deprecated
245 PT_AR_BSP. Pick up arguments starting with out0, which is not
246 always the same as r32 (e.g., consider inlined syscalls).
247
John Hughesa2278142001-09-28 16:21:30 +00002482001-09-28 John Hughes <john@Calva.COM>
249
250 * process.c: FreeBSD-CURRENT no longer has PT_READ_U, and anyway we
251 were showing it as PT_WRITE_U! Fix from Maxime Henrion.
252
John Hughes1fcb1d62001-09-18 15:56:53 +00002532001-09-18 John Hughes <john@Calva.COM>
254
255 * net.c: fix display of sockaddr structures, sometimes too many "}",
256 sometimes too few. Fix suggested by Richard Kettlewell.
257
Wichert Akkerman67e3e632001-08-19 11:43:17 +00002582001-08-19 Wichert Akkerman <wakkerma@debian.org>
259
260 * signal.c: do not include asm/sigcontext.h on IA64 since it gets
261 the struct from bits/sigcontext.h already which signal.h includes.
262
Wichert Akkerman7b96b572001-08-03 11:37:07 +00002632001-08-03 Wichert Akkerman <wakkerma@debian.org>
264
Wichert Akkerman7c707a72001-08-03 21:54:08 +0000265 * linux/ioctlent.sh: change regexps so we catch sound ioctls as well in
266 Linux
267 * linux/Makefile.in: fix a few things so the ioctl list is generated
268 properly
269 * ioctl.c: remember to shift ioctl masks as well
270
2712001-08-03 Wichert Akkerman <wakkerma@debian.org>
272
Wichert Akkermancd6aefc2001-08-03 12:27:54 +0000273 * Linux/**/syscallent.h: synchronize section for fcntl and use sys_fcntl
274 for sys_fcntl as well
275
2762001-08-03 Wichert Akkerman <wakkerma@debian.org>
277
Wichert Akkerman0b1120a2001-08-03 12:20:38 +0000278 * linux/hppa/syscallent.h: updated from Matthew Wilcox
279
2802001-08-03 Wichert Akkerman <wakkerma@debian.org>
281
Wichert Akkerman82b162e2001-08-03 11:51:28 +0000282 * process.c: seems Linux/IA64 changed register names on us, switch to
283 using new names.
284
2852001-08-03 Wichert Akkerman <wakkerma@debian.org>
286
Wichert Akkerman54b4f792001-08-03 11:43:35 +0000287 * strace.c: set CLOEXEC flag for outputfile
288
2892001-08-03 Wichert Akkerman <wakkerma@debian.org>
290
Wichert Akkerman7b96b572001-08-03 11:37:07 +0000291 * linux/sparc/syscall.h, linux/sparc/syscallent.h: add some LFS calls
292
Wichert Akkerman4f1bbbe2001-07-23 14:43:07 +00002932001-07-23 Wichert Akkerman <wakkerma@debian.org>
294
295 * configure.in: Support cross-compiling between architectures
296
Wichert Akkerman0dc4fc92001-07-13 22:09:05 +00002972001-07-13 Wichert Akkerman <wakkerma@debian.org>
298
299 * configure.in: add S390 to architecture list
300
John Hughes1d08dcf2001-07-10 13:48:44 +00003012001-07-10 John Hughes <john@Calva.COM>
302
303 * TODO, defs.h, io.h, net.c, strace.c, syscall.c, util.c: Merge fixes
304 from Richard Kettlewell <rkettlewell@zeus.com> which add I/O dumping
305 of args to readv/writev. Also gets rid of redundant printiovec
306 routine from net.c (duplicate of tprint_iov in util.c).
307
Wichert Akkerman688c7fc2001-07-02 16:53:25 +00003082001-07-02 Wichert Akkerman <wakkerma@debian.org>
309
310 * config.{guess,sub}: updated
311
John Hughesaa09c6b2001-05-15 14:53:43 +00003122001-05-15 John Hughes <john@Calva.COM>
313
John Hughes70c5e7a2001-05-15 15:09:14 +0000314 * signal.c: pass a pointer to sigmask to printsigmask from printcontext,
315 it was just passing the sigmask (ucp->uc_sigmask).
316
3172001-05-15 John Hughes <john@Calva.COM>
318
John Hughesaa09c6b2001-05-15 14:53:43 +0000319 * util.c: Don't run off the end of valid memory in umovestr when
320 USE_PROCFS. Important for FREEBSD systems (which seem to have an
321 unmapped page just after the args/env area).
322
John Hughes4e36a812001-04-18 15:11:51 +00003232001-04-18 John Hughes <john@Calva.COM>
324
325 * configure.in: test for sys/nscsys.h, the non-stop clusters includes.
326 * process.c: handle rfork{1,all} and rexecve calls on non-stop clusters.
327 * syscall.c: treat rfork{1,all} and fork{1,all} as fork like calls.
328 Treat rexecve as an exec.
329 * system.c: decode arguments to ssisys call on nsc systems.
330 * svr4/dummy.h, svr4/syscall.h: now we handle rfork{1,all}, ssisys and
331 rexecve calls.
332
Wichert Akkerman35254402001-04-12 09:11:04 +00003332001-04-12 Wichert Akkerman <wakkerma@debian.org>
334
335 * process.c: fix cast for powerpc code
336 * linux/powerpc/syscallent.h: update syscall list
337 * README: fix address for the strace mailinglist
338 * signal.c: switch to using /proc/<pid>/status on Linux so we can get
339 the realtime signals as well
340
Wichert Akkerman4ca31092001-04-10 10:28:43 +00003412001-04-10 Wichert Akkerman <wakkerma@debian.org>
342
343 * Merge patches from Maciej W. Rozycki:
344 + util.c: add code to print PC for MIPS
345 + linux/mips/syscallent.h: updated
346 + system.c: formating fixes for sys_sysmips
Wichert Akkerman42080d82001-04-10 10:32:26 +0000347 + configure.in: test for yet more headers
348 + stream.c: use configure-headertests instead of relying on OS hints
Wichert Akkerman4ca31092001-04-10 10:28:43 +0000349
Wichert Akkermand6b92492001-04-07 21:37:12 +00003502001-04-07 Wichert Akkerman <wakkerma@debian.org>
351
Wichert Akkermane70bbe52001-04-07 21:47:30 +0000352 * NEWS: start 4.3.1 items
353 * version.c: updated to say 4.3.1 (was still 4.2, oops!)
354
3552001-04-07 Wichert Akkerman <wakkerma@debian.org>
356
Wichert Akkermand6b92492001-04-07 21:37:12 +0000357 * configure.in: test for asm/sysmips.h and linux/utsname.h
358 * linux/syscall.h: fix a typo for sys_sysmips
359 * system.c: include asm/sysmips.h and linux/utsname.h if they exist,
360 fix typo
361
Wichert Akkerman4f043ec2001-03-31 16:25:58 +00003622001-03-31 Wichert Akkerman <wakkerma@debian.org>
363
364 * linux/mips/ioctlent.h: updated using new Linux ioctl setup
365
3662001-03-31 Wichert Akkerman <wakkerma@debian.org>
Wichert Akkerman8aada672001-03-31 16:20:33 +0000367
368 * linux/ia64/ioctlent.h: regenerated
369
Wichert Akkerman29f0d052001-03-31 16:14:55 +00003702001-03-31 Wichert Akkerman <wakkerma@debian.org>
371
Wichert Akkermancf715672001-03-31 16:16:57 +0000372 * linux/{alpha,ia64,powerpc}/ioctlent.sh: removed, all archs use the
373 general Linux ioctlent.sh
374
3752001-03-31 Wichert Akkerman <wakkerma@debian.org>
376
Wichert Akkerman29f0d052001-03-31 16:14:55 +0000377 * linux/ioctlent.sh: add dir variable for location of kernel headers
378
Wichert Akkermanbbf59e92001-03-29 17:43:19 +00003792001-03-29 Wichert Akkerman <wakkerma@debian.org>
380
Wichert Akkerman00cd74c2001-03-30 16:20:27 +0000381 * linux/ia64/ioctlent.h: updated using new Linux ioctl setup
382
3832001-03-29 Wichert Akkerman <wakkerma@debian.org>
384
Wichert Akkerman10767782001-03-29 19:04:25 +0000385 * linux/powerpc/ioctlent.h: updated using new Linux ioctl setup
386
3872001-03-29 Wichert Akkerman <wakkerma@debian.org>
388
Wichert Akkermand7fb2062001-03-29 18:16:07 +0000389 * linux/hppa/ioctlent.h: updated using new Linux ioctl setup
390
3912001-03-29 Wichert Akkerman <wakkerma@debian.org>
392
Wichert Akkermanbbf59e92001-03-29 17:43:19 +0000393 * linux/alpha/ioctlent.h: updated using new Linux ioctl setup
394
Wichert Akkerman2f1d87e2001-03-28 14:40:14 +00003952001-03-28 Wichert Akkerman <wakkerma@debian.org>
396
Wichert Akkerman00a82ee2001-03-28 20:29:17 +0000397 * configure.in: use sparc* so we can compile on sparc64 as well
398 * process.c, syscall.c: work around double define of fpq, fq and fpu
399 structs on Linux/sparc, and use regs instead of pt_regs
400 * don't use asm/sigcontext.h on Linux/sparc
401
4022001-03-28 Wichert Akkerman <wakkerma@debian.org>
403
Wichert Akkermanfe8f65d2001-03-28 15:10:49 +0000404 * linux/sparc/ioctlent.h: updated using new Linux ioctl setup
405
4062001-03-28 Wichert Akkerman <wakkerma@debian.org>
407
Wichert Akkerman2f1d87e2001-03-28 14:40:14 +0000408 * strace.c: use __WALL as wait4 flag if it exists so we can properly
409 trace threaded programs
410
John Hughes8e075fb2001-03-27 13:57:48 +00004112001-03-27 John Hughes <john@Calva.COM>
412
John Hughesb8a85a42001-03-28 08:05:27 +0000413 * aclocal.m4: add check for endianness of long long.
414 * acconfig.h: add #define for LITTLE_ENDIAN_LONG_LONG.
415 * configure.in: check for endianness of long long.
Wichert Akkerman8ab1a3c2001-03-28 14:27:23 +0000416 * defs.h: change LONG_LONG macro to work with either endianness of
John Hughesb8a85a42001-03-28 08:05:27 +0000417 long long.
418
4192001-03-27 John Hughes <john@Calva.COM>
420
John Hughes61563572001-03-27 16:47:36 +0000421 * net.c: Make compilable by SCO UDK compiler (doesn't like empty
422 initialisation list for array).
423
4242001-03-27 John Hughes <john@Calva.COM>
425
John Hughes8e075fb2001-03-27 13:57:48 +0000426 * svr4/syscallent.h: ntp_adjtime entry was duplicated on Solaris
427 systems - bad merge of Harald Boehme's patch by me.
428
Wichert Akkerman072ea8a2001-03-27 14:46:05 +00004292001-03-27 Wichert Akkerman <wakkerma@debian.org>
430
431 * lots of files: add Linux/hppa support
432
Wichert Akkerman407be9a2001-03-19 10:56:49 +00004332001-03-19 Wichert Akkerman <wakkerma@debian.org>
434
435 * linux/mips/syscallent.h: we can't have -1 nargs, change to 0
Wichert Akkermane3bf56a2001-03-19 11:05:17 +0000436 * linux/syscallent.h: not that syscalls 220 and 221 are used now
Wichert Akkerman6f2bbe22001-03-19 11:00:29 +0000437 * config.guess: updated
Wichert Akkerman407be9a2001-03-19 10:56:49 +0000438
Wichert Akkermana9667852001-03-17 17:26:34 +00004392001-03-17 Wichert Akkerman <wakkerma@debian.org>
440
441 * linux/ioclsort.c: new file
442 * linux/ioctlent.sh: complete rewrite to use a more sane approach to get
443 the ioctl list that doesn't involve attempting to #include all kernel
444 headers
445 * linux/.cvsignore: added ioctdefs.h and ioctls.h which are generated
446 by the new ioctlent.sh
447 * ioctl.c: only look at the number and type bits for linux, since
448 ioctlent.sh no longer supplies the others
449
John Hughes70623be2001-03-08 13:59:00 +00004502001-03-08 John Hughes <john@Calva.COM>
451
John Hughescf1de752001-03-08 17:27:20 +0000452 * freebsd/syscalls.pl: On FreeBSD we must cope with COMPATibility syscalls,
453 pretend they have names ending with "?" so that -e trace=stat (for
454 example) will work.
455 * freebsd/i386/syscallent.h: add ? to compatability syscalls.
456 * freebsd/i386/syscall.h: consistency.
457
4582001-03-08 John Hughes <john@Calva.COM>
459
John Hughesc0fc3fd2001-03-08 16:10:40 +0000460 * acconfig.h: add new ST_xxx defines.
461 * aclocal.m4: macros to check for more fields in struct stat.
462 * configure.in: use new macros to check for fields in struct stat.
463 * file.c: use new defines to replace #ifdef FREEBSD by #if HAVE_ST_xxx.
464
4652001-03-08 John Hughes <john@Calva.COM>
466
John Hughes0c79e012001-03-08 14:40:06 +0000467 * defs.h: rename wimpy get64 as powerful new LONG_LONG
468 * file.c: use LONG_LONG
469 * io.c: use LONG_LONG
470 * mem.c use LONG_LONG
471
4722001-03-08 John Hughes <john@Calva.COM>
473
John Hughes70623be2001-03-08 13:59:00 +0000474 * acconfig.h: new #defines HAVE_LONG_LONG_OFF_T and HAVE_LONG_LONG_RLIM_T.
475 * aclocal.m4: routines to check for long long off_t and rlim_t.
476 * configure.in: check for long long off_t and rlim_t.
477 * desc.c: if HAVE_LONG_LONG_OFF_T treat flock as flock64
478 * file.c: if HAVE_LONG_LONG_OFF_T treat stat,lstat,fstat and lseek as 64
479 bit versions.
480 * io.c: if HAVE_LONG_LONG_OFF_T use 64 bit versions of pread and pwrite.
481 * mem.c: if HAVE_LONG_LONG_OFF_T use 64 bit version of mmap
482 * resource.c: if HAVE_LONG_LONG_OFF_T use 64 bit versions of getrlimit
483 and setrlimit.
484 * freebsd/syscalls.print: don't explicitly use 64 bit versions of calls,
485 now done automaticaly for us.
486 * freebsd/i386/syscall.h: ditto.
487 * freebsd/i386/syscallent.h ditto.
488
John Hughes5a826b82001-03-07 13:21:24 +00004892001-03-07 John Hughes <john@Calva.COM>
490
John Hughesb8c9f772001-03-07 16:53:07 +0000491 * desc.c: On FreeBSD flock structure uses 64 bit offsets.
492 * file.c: On FreeBSD use stat64 and pals instead of stat.
493 * freebsd/syscalls.print: use stat64, lstat64 and fstat64.
494 * freebsd/i386/syscall.h: ditto.
495 * freebsd/i386/syscallent.h: ditto.
496
4972001-03-07 John Hughes <john@Calva.COM>
498
John Hughese2f6d872001-03-07 16:03:20 +0000499 * file.c: merge missing part of Harald Böhme's solaris patches,
500 was only declaring sys_{stat64,lstat64,fstat64} on linux!
501
5022001-03-07 John Hughes <john@Calva.COM>
503
John Hughes9dec06c2001-03-07 14:47:19 +0000504 * svr4/dummy.h: fix multiple define warning on non LFS64 systems.
505 * svr4/syscallent.h: pread/pwrite are TF calls.
506
5072001-03-07 John Hughes <john@Calva.COM>
508
John Hughes5a826b82001-03-07 13:21:24 +0000509 * defs.h: add ALIGN64 macro to cope with FreeBSD's strange insistence
510 on alignment for off_t (64 bit) arguments. Also simplify get64 so
511 we don't need to know endianness of long long.
512 * file.c: FreeBSD now uses 64 bit versions of lseek, truncate,
513 ftruncate, allows reduction in numvber of horrid #if's
514 * io.c: FreeBSD now uses 64 bit versions of pread, pwrite.
515 * mem.c: FreeBSD now uses 64 bit version of mmap.
516 * freebsd/syscalls.print: use 64 bit versions of various syscalls.
517 * freebsd/i386/syscall.h: use 64 bit versions of various syscalls.
518 * freebsd/i386/syscallent.h: use 64 bit versions of various syscalls.
519
John Hughes95ea9c02001-03-07 10:11:02 +00005202001-03-06 John Hughes <john@Calva.COM>
521
John Hughes7737c8a2001-03-07 10:41:58 +0000522 * file.c: Implement truncate64 and ftruncate64
523 * svr4/dummy.h: add dummies for truncate64 and ftruncate64 for non
524 LFS64 systems.
525 * svr4/syscall.h: add declarations for truncate64 and ftruncate64.
526
5272001-03-06 John Hughes <john@Calva.COM>
528
John Hughesc5249902001-03-07 10:39:06 +0000529 * freebsd/syscalls.pl: fix for FreeBSD 4.1 (new optional field in
530 syscall master file).
531
5322001-03-06 John Hughes <john@Calva.COM>
533
John Hughesbb557232001-03-07 10:37:38 +0000534 * syscall.c: fix for FreeBSD 4.1 (SYS_semconfig has disappeared). Also
535 zap incorrect syscall subarg range check.
536
5372001-03-06 John Hughes <john@Calva.COM>
538
John Hughescb8b69d2001-03-07 10:34:27 +0000539 * configure.in, defs.h, desc.c, file.c, io.c, mem.c, net.c, resource.c,
540 signal.c, syscall.c, svr4/dummy.h, svr4/syscall.h, svr4/syscallent.h:
541 merge Harald Böhme's solaris patches (_LFS64_LARGEFILE and kernel aio
542 mostly).
543
5442001-03-06 John Hughes <john@Calva.COM>
545
John Hughesbc4935a2001-03-07 10:28:50 +0000546 * dummy.h: add unimplemented UW sycalls
547 * syscall.h: we can do settimeofday for UW, whopee!
548 * syscallent.h: fix unimplemented UW syscalls
549
5502001-03-06 John Hughes <john@Calva.COM>
551
John Hughesc8f2e8a2001-03-07 10:26:17 +0000552 * aclocal.m4: look for pr_syscall in pr_lwp if we HAVE_MP_PROCFS
553 * defs.h: add PR_SYSCALL to allow use of pr_lwp.pr_syscall if it exists.
554 * syscall.c: use PR_SYSCALL instead of pr_syscall, fix up UnixWare code
555 so it doesn't try to use pr_sysarg.
556
5572001-03-06 John Hughes <john@Calva.COM>
558
John Hughes091fe832001-03-07 10:15:39 +0000559 * aclocal.m4: on systems other than linux look for stat64 in sys/stat.h
560 * file.c: handle xstat version _STAT64_VER, aka stat64.
561
5622001-03-06 John Hughes <john@Calva.COM>
563
John Hughes95ea9c02001-03-07 10:11:02 +0000564 * net.c: make sure SOL_ options are defined before using.
565 * signal.c: declare sigset variable, only used on linux, inside #ifdef.
566
Wichert Akkermanfa306182001-02-21 16:42:26 +00005672001-02-21 Wichert Akkerman <wakkerma@debian.org>
568
569 * net.c: fix format for printing Unix domain sockets
570
Wichert Akkerman0cbfb322001-02-19 13:35:53 +00005712001-02-19 Wichert Akkerman <wakkerma@debian.org>
572
573 * linux/mips/syscallent.h: use new sys_sysmips
574 * system.c: add sys_sysmips decoding
575
Wichert Akkerman8c7122c2001-02-16 19:59:55 +00005762001-02-16 Wichert Akkerman <wakkerma@debian.org>
577
Wichert Akkermanf1850652001-02-16 20:29:03 +0000578 * CREDITS: add Arkadiusz Miskiewicz <misiek@pld.org.pl> who
579 submitted the IP6 scope ID updates
580 * acconfig.h: add HAVE_SIN6_SCOPE_ID and HAVE_SIN6_SCOPE_ID_LINUX
581 * aclocal.m4: add AC_SIN6_SCOPE_ID to check if sin6_scope_id is
582 available
583 * configure.in: check for if_indextoname function and sin6_scope_id
584 * net.c: teach printsock about IP6 scope ids
585
5862001-02-16 Wichert Akkerman <wakkerma@debian.org>
587
Wichert Akkerman8c7122c2001-02-16 19:59:55 +0000588 * configure.in: test for netinet/tcp.h and netinet/udp.h existance
589 * net.c: include netinet/tcp.h and netinet/udp.h if they exist
Wichert Akkermanedf2dcc2001-02-16 20:14:40 +0000590 * Makefile.in: use @mandir@ and @bindir@
Wichert Akkerman8c7122c2001-02-16 19:59:55 +0000591
Wichert Akkermanefdecac2000-11-26 03:59:21 +00005922000-11-26 Wichert Akkerman <wakkerma@debian.org>
593
594 * net.c: fix formating error in sys_setsockopt
595 * net.c: add list of socketlayers and use that for [gs]etsockopt
596
Wichert Akkermand856b992000-10-13 12:47:12 +00005972000-10-12 Wichert Akkerman <wakkerma@debian.org>
598
599 * time.c: use sys/timex.h so things compile with 2.2 kernels
600 * stream.c: test if MSG_* constants are #defined
601
Wichert Akkerman9b0c31d2000-09-03 21:56:29 +00006022000-09-03 Wichert Akkerman <wakkerma@debian.org>
603
Wichert Akkermanefdecac2000-11-26 03:59:21 +0000604 * process.c: perform bpt trick for clone as well so we can get the
605 pid of the child before it starts doing something
606 * file.c: rename dirent64 struct to kernel_dirent64 so things compile
607 again with newer libcs
608 * test/clone.c: improve our testcase a bit
609 * Merge another patch from Gäel Roualland with FreeBSD updates
Wichert Akkerman9b0c31d2000-09-03 21:56:29 +0000610
Wichert Akkermanbf79f2e2000-09-01 21:03:06 +00006112000-09-01 Wichert Akkerman <wakkerma@debian.org>
612
Wichert Akkermanefdecac2000-11-26 03:59:21 +0000613 * lots of files: merge patch from Gaël Roualland to add
614 support for FreeBSD.
Wichert Akkermanbf79f2e2000-09-01 21:03:06 +0000615
Wichert Akkerman16a03d22000-08-10 02:14:04 +00006162000-08-09 Wichert Akkerman <wakkerma@debian.org>
617
Wichert Akkermand077c452000-08-10 18:16:15 +0000618 * file.c: update to reflect that st_ino suddenly became a long long
619 in the in Linux 2.4.0-test6
620
6212000-08-09 Wichert Akkerman <wakkerma@debian.org>
622
Wichert Akkerman16a03d22000-08-10 02:14:04 +0000623 * test/clone.c: minor fixup
624 * Another bunch of patches from John Hughes merged:
625 * signal.c:
626 + SVR4 printcontext(): sigset_t != sigset_t*
627 + getcontext returns a value, so print on exit of syscall
628 + add UC_FP to ucontext_flags for OS writers that can't spell
629 + sys_signal(): special case SIG_{ERR,DFL,IGN}
630 + decode_subcall(): only do subcall range checking when needed
631 * bunch of UnixWare updates
632 * aclocal.m4, acconfig.h, configure.in: add test for long long type
633
Wichert Akkerman7987cdf2000-07-05 16:05:39 +00006342000-07-04 Wichert Akkerman <wakkerma@debian.org>
635
636 * net.c: add SOL_PACKET and SOL_RAW socket options, update
637 SOL_IP and SOL_TCP
638
Wichert Akkermanbd4125c2000-06-27 17:28:06 +00006392000-06-23 Wichert Akkerman <wakkerma@debian.org>
640
641 * strace.c: close outf before we exec a child process
642
Wichert Akkerman43a74822000-06-27 17:33:32 +00006432000-06-09 Ulrich Drepper <drepper@redhat.com>
644
645 * configure.in: Don't link against libnsl on Linux, it's unnecessary.
646 * defs.h (struct tcb): Make auxstr member const.
647 * file.c (fsmagic): And many more magic numbers.
648 * util.c: Don't include <linux/ptrace.h> for glibc 2.1 and up.
649
Wichert Akkerman5ae21ea2000-05-01 01:53:59 +00006502000-04-26 Wichert Akkerman <wakkerma@debian.org>
651
652 * defs.h: balance #if/#endif again
653 * system.c: fix return statements in sys_capget()
654 * Merge updates from Topi Miettinen <Topi.Miettinen@nic.fi>:
655 + file.c: add F_[SG]ETSIG to fcntl flags
656 + strace.c: don't setre[gu]id if not needed
657 + system.c: handle sys_reboot for Linux
658 + term.c: add baudrate constants up to B4000000
659 + linux/**/syscallent.h: note that munlockall has no arguments
660
6612000-04-25 David Mosberger <davidm@hpl.hp.com>
662
663 * CREDITS: fix email address
664 * process.c: handle PR_[GS]ET_UNALIGN and PR_[GS]ET_KEEPCAPS
665 * signal.c: honour offset of sigconfig in sigframe structure for
666 Linux/ia64
667 * linux/ia64/syscallent.h: Add perfmonctl, pivotroot, mincore, and
668 madvise syscalls.
669 * syscall.c (syscall_enter): With Kevin's latest ptrace patches,
670 AR_BSP points to the _end_ of the active register frame, so we need
671 to adjust bsp by moving it back by the size of the active frame
672 before using it.
673
6742000-04-24 Wichert Akkerman <wakkerma@debian.org>
675
676 * process.c: add sparc support to change_syscall
677
Wichert Akkerman10dfa562000-04-22 18:26:56 +00006782000-04-22 Wichert Akkerman <wakkerma@debian.org>
679
680 * linux/mips/syscallent.h: fix some typos
681
Wichert Akkerman481e45b2000-04-17 07:42:31 +00006822000-04-14 Wichert Akkerman <wakkerma@debian.org>
683
684 * linux/mips/syscallent.h: added names for SVR4, SYSV, BSD4.3 and POSIX
685 syscalls
686
Wichert Akkermanfd89ced2000-04-13 17:06:09 +00006872000-04-13 Wichert Akkerman <wakkerma@debian.org>
688
689 * defs.h: Linux/MIPS uses syscalls up to >4k, so set MAX_QUALS to
690 4999
691
Wichert Akkermanc7926982000-04-10 22:22:31 +00006922000-04-09 Wichert Akkerman <wakkerma@debian.org>
693
694 * README-linux: updated to note that strace might not compile
695 with development kernels
696 * bjm.c: sys_query_module: check if malloc succeeds
697 * system.c: sys_cap[gs]et(): check if malloc succeeds, only malloc once
698 * linux/syscallent.h: updated for 2.3.99pre3
699 * linux/alpha/syscallent.h: updated for 2.3.99pre3, add all osf syscalls
700 even though Linux doesn't implement them
701 * syscall.c: add global variables for MIPS registers as well
702 * syscall.c: move global variables to before get_scno since that uses them
703 * util.c: oops, misspelled defined
704 * process.c: fix ptrace calls in change_syscall
705 * mem.c: decode sys_madvise
706 * Merge patch from Topi Miettinen <Topi.Miettinen@nic.fi>
707 + add support for quotactl, fdatasync, mlock, mlockall, munlockall & acct
708 + small fix for RLIMIT_* and RUSAGE_BOTH
709 + enhace support for capget and capset
710
Wichert Akkermanfaf72222000-02-19 23:59:03 +00007112000-02-19 Wichert Akkerman <wakkerma@debian.org>
712
713 * test/vfork.c: new file to test vfork traces
714 * test/.cvsignore: new file
715 * defs.h: Up maximum number of traced processed to 64
716 * strace.c: Disable some debugging code from davidm
717 * implement setarg for more architectures
718 * implement change_syscall
719
Wichert Akkerman2ee6e452000-02-18 15:36:12 +00007201999-12-27 Morten Welinder <terra@diku.dk>
721
722 * syscall.c (lookup_signal, lookup_desc): isdigit requires an
723 _unsigned_ char parameter.
724
Wichert Akkerman12f75d12000-02-14 16:23:40 +00007252000-02-14 Wichert Akkerman <wakkerma@debian.org>
726
727 * S390 updates
728
Wichert Akkerman8b1b40c2000-02-03 21:58:30 +00007292000-02-03 Wichert Akkerman <wakkerma@debian.org>
730
Wichert Akkerman5ae21ea2000-05-01 01:53:59 +0000731 * Merge Linux/ia64 patches
Wichert Akkerman8b1b40c2000-02-03 21:58:30 +0000732
Pavel Machek4dc3b142000-02-01 17:58:41 +00007332000-01-02 Pavel Machek <pavel@ucw.cz>
734
735 * probe if sys/poll.h exists in configure + minor cleanups
736
737 * syscall.c: split trace_syscall into few pieces to make code readable
738
Wichert Akkerman30160182000-01-21 20:31:34 +00007392000-01-21 Wichert Akkerman <wakkerma@debian.org>
740
741 * Release version 4.2 to get the current updates out and so
742 we can concentrate in finishing the clone support.
743
Wichert Akkerman3ed6dc22000-01-11 14:41:09 +00007442000-01-11 Wichert Akkerman <wakkerma@debian.org>
745
746 * Add 1900 to tm_year in sprinttime
747
Wichert Akkerman0396bdc1999-12-24 23:11:57 +00007481999-12-24 Wichert Akkerman <wakkerma@debian.org>
749
750 * file.c: protect printstat64 with STAT64 instead of linux so we can
751 compile on Linux architectures that don't have it
Wichert Akkerman9148a3b1999-12-24 23:13:55 +0000752 * util.c: fix LOOP for ARM
Wichert Akkerman0396bdc1999-12-24 23:11:57 +0000753
754Fri Dec 24 18:05:00 EST 1999
755
Ulrich Drepperc921cb21999-12-24 08:03:35 +00007561999-12-23 Ulrich Drepper <drepper@cygnus.com>
757
758 * file.c: Use ugly libc_stat trick also for stat64.
759 Implement sys_stat64, sys_fstat64, sys_lstat64, and printstat64.
760 * process.c (internal_clone): Fix a few typos and add definitions to make
761 it at least compile.
762 * linux/syscall.h: Declare sys_stat64, sys_lstat64, and sys_fstat64.
763 * linux/syscallent.h: Define table entries for sys_stat64, sys_lstat64,
764 and sys_fstat64.
765 * aclocal.m4: Define AC_STAT64.
766 * acconfig.h: Define HAVE_STAT64.
767 * configure.in: Add AC_STAT64.
768
Wichert Akkerman4dc8a2a1999-12-23 14:20:14 +0000769Thu Dec 23 15:01:37 CET 1999 Wichert Akkerman <wakkerma@debian.org>
770
771 * Merge patch from ftp://oss.software.ibm.com/linux390/ to add
772 support for Linux on the IBM S/390 architecture
Wichert Akkerman7a0b6491999-12-23 15:08:17 +0000773 * process.c: add internal_clone(), currently only shows the options
774 * syscall.c: use internal_clone to handle SYS_clone
Wichert Akkerman4dc8a2a1999-12-23 14:20:14 +0000775
776Mon Dec 20 00:27:50 CET 1999 Wichert Akkerman <wakkerma@debian.org>
777
778 * Rewrite mmap-handling to support mmap2 on Linux
779
Wichert Akkermane5be0de1999-12-14 10:46:18 +0000780Tue Dec 14 11:35:16 CET 1999 Wichert Akkerman <wakkerma@debian.org>
781
782 * Note that Linux can handle sys_semop() as well
783
Wichert Akkerman4dc8a2a1999-12-23 14:20:14 +0000784Tue Nov 30 11:05:26 CET 1999 Wichert Akkerman <wakkerma@debian.org>
785
786 * Include linux/in6.h for glibc2.0 and older
787
Wichert Akkermanea78f0f1999-11-29 15:34:02 +0000788Mon Nov 29 16:33:04 CET 1999 Wichert Akkerman <wakkerma@debian.org>
789
790 * Merge patches from John Hughes to make configure support UnixWare
791
Wichert Akkerman9123ac81999-11-27 21:58:20 +0000792Sat Nov 27 21:38:17 CET 1999 Wichert Akkerman <wakkerma@debian.org>
793
794 * Enhance sys_query_module
795
Wichert Akkermane4aafd41999-11-26 09:54:08 +0000796Fri Nov 26 10:51:55 CET 1999 Wichert Akkerman <wakkerma@debian.org>
797
798 * Patches from John Hughes:
799 + cosmectic fix in sys_getpmsg
Wichert Akkerman48214be1999-11-26 09:55:42 +0000800 + allow net.c to compile on systems without AF_INET6
801 + Only use long_to_sigset on Linux systems
Wichert Akkerman46956571999-11-26 10:12:59 +0000802 + UnixWare treats sigmask_t and sigmask_t* as the same thing
Wichert Akkerman9dbf1541999-11-26 13:11:29 +0000803 + Add pollhack
Wichert Akkerman3377df71999-11-26 13:14:41 +0000804 + Parse mount arguments for UnixWare
805 + ACL fixes for UnixWare
Wichert Akkermane4aafd41999-11-26 09:54:08 +0000806
Wichert Akkerman2a64b431999-11-26 00:29:05 +0000807Fri Nov 26 01:28:09 CET 1999 Wichert Akkerman <wakkerma@debian.org>
808
809 * Release 4.1 to get all the changes made out there
810
Wichert Akkermanf5eeabb1999-11-18 17:09:47 +0000811Thu Nov 18 18:04:04 CET 1999 Wichert Akkerman <wakkerma@debian.org>
812
813 * Merge stracefork from Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
814 + Socket calls parsed better
815 + bunch of alpha OSF syscalls added
816 + Fix alpha 32/64 bit issues
817
Wichert Akkerman2f473da1999-11-01 19:53:31 +0000818Mon Nov 1 20:52:08 CET 1999 Wichert Akkerman <wakkerma@debian.org>
819
820 * Move Linux kernelmodule-functions from system.c to bjm.c and
821 remove duplicate for sys_create_module
Wichert Akkerman60456d71999-11-01 19:59:33 +0000822 * Linux MIPS updates:
823 + Play with #ifdef's in net.c to get IPv6 right
824 + Use printargs for vm86-syscall
Wichert Akkerman2f473da1999-11-01 19:53:31 +0000825
Wichert Akkermanf90da011999-10-31 21:15:38 +0000826Sun Oct 31 22:03:00 CET 1999 Wichert Akkerman <wakkerma@debian.org>
827
828 * Merge Linux mips patch from Florian Lohoff <flo@rfc822.org>
829
Wichert Akkerman50524821999-10-10 22:40:07 +0000830Mon Oct 11 00:36:25 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
831
832 * Merge patch from Keith Owens <kaos@ocs.com.au> to sys_query_module
833 and sys_delete_module correctly
834
Wichert Akkerman15dea971999-10-06 13:06:34 +0000835Wed Oct 6 02:00:33 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
836
837 * Update cvsbuild to give a better error if autoconf isn't installed
838 * Add test for linux/ptrace.h to configure
839 * Since we define GNU_SOURCE in the Makefile we don't need to define
840 USE_GNU in file.c anymore
841
842Fri Sep 10 04:35:16 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
843
844 * #define USE_GNU before including file.c so we get some extra O_* flags
845
846Tue Aug 31 16:27:21 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
847
848 * Add missing } in IPv6 output
849
Wichert Akkerman7b27ba01999-08-30 23:26:53 +0000850Tue Aug 31 01:23:08 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
851
852 * Update copyright for strace-graph to BSD to be consistent with
853 the rest of strace
854
Wichert Akkerman9ce1a631999-08-29 23:15:07 +0000855Mon Aug 30 00:53:57 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
856
857 * Merge patch from Daniel Jacobowitz: KERN_JAVA_* and KERN_SECURELVL aren't
858 defined for all kernelversions
Wichert Akkerman7b27ba01999-08-30 23:26:53 +0000859 * Add strace-graph, written by Richard Braakman <dark@xs4all.nl>
Wichert Akkerman9ce1a631999-08-29 23:15:07 +0000860
861Thu Aug 19 13:10:15 CEST 1999 Jakub Jelinek <jj@ultra.linux.cz>
862
863 * linux/sparc/syscall.h: Declare create_module/init_module.
864 * configure.in: Allow compilation in a different directory
865 than the source one.
866 * signal.c: Use asm/reg.h and struct regs instead of pt_regs
867 so that we don't depend on asm/ptrace.h which clashes with
868 glibc sys/ptrace.h.
869 * util.c: Likewise.
870 * syscall.c: Likewise.
871
Wichert Akkerman5a777661999-08-04 16:03:49 +0000872Wed Aug 4 18:01:50 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
873
874 * Syscall 94 on Linux alpha is sys_poll
875
Wichert Akkerman9ce1a631999-08-29 23:15:07 +0000876Sun Jul 25 14:38:33 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
877
878 * Merge in UnixWare patches from John Hughes <john@Calva.COM>
879
Wichert Akkerman527a8051999-07-15 21:11:37 +0000880Thu Jul 15 23:00:32 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
881
882 * Merge patch from Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
883 + Correctly implement fix sys_createmodule (Linux)
884 + Add limited handlig of sys_initmodule (Linux)
885
Wichert Akkerman36915a11999-07-13 15:45:02 +0000886Tue Jul 13 17:07:50 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
887
888 * Add configure-test for sys/reg.h and use that
889 * Use sys/reg.h instead of asm/ptrace.h
890
Wichert Akkermanca446991999-07-09 23:48:58 +0000891Sat Jul 10 01:46:10 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
892
893 * Remove hack in signal.c for arm architecture
894 * Add hack so we compile correctly on powerpc
895
Wichert Akkerman5b4d1281999-07-09 00:32:54 +0000896Fri Jul 9 02:28:16 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
897
898 * Add a corrected patch from Daniel Jacobowitz
899
Wichert Akkermana6013701999-07-08 14:00:58 +0000900Thu Jul 8 16:00:04 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
901
902 * Merge patch from Daniel Jacobowitz to allow us to use the kernel types
903 for the stat structure
904
905Thu Jun 24 15:54:18 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
Wichert Akkerman2b483ba1999-06-24 13:55:29 +0000906
907 * Fix test for sys/reg include
908
Wichert Akkermana6013701999-07-08 14:00:58 +0000909Tue Jun 22 17:26:33 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
Wichert Akkermane6f876c1999-06-22 15:28:30 +0000910
911 * Fixed some Linux/powerpc sillyness, thanks to Daniel Jacobowitz
912 * Fixed some SunOS compile problems earlier that I forgot to include
913 here
914
Wichert Akkerman789ed351999-06-14 10:45:01 +0000915Mon Jun 14 12:44:25 CEST 1999
916
917 * Avoid leakint fd into child when forking, patch from
918 John Hughes <john@Calva.COM>
919
Wichert Akkerman8829a551999-06-11 13:18:40 +0000920Fri Jun 11 14:54:47 CEST 1999
921
922 * Applied IRIX64 patch from Thomas E. Dickey <dickey@clark.net>
923 * Applied Solaris and manpage updates from Guy Harris <guy@netapp.com>
924
Wichert Akkermancc4b8f41999-06-09 12:50:10 +0000925Wed Jun 9 14:48:49 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
926
927 * Brought syscall list for alpha up to date
928
Wichert Akkermandacfb6e1999-06-03 14:21:07 +0000929Wed Jun 2 18:30:12 CEST 1999 Jakub Jelinek <jj@ultra.linux.cz>
930
931 * system.c: sys_umount2 syscall support.
932 * linux/sparc/errnoent.h: Update sparc-linux errnos.
933 * linux/sparc/syscall.h: Update used sparc-linux syscalls.
934 * linux/sparc/syscallent.h: Match 2.2.9 system calls.
935 * file.c: sparc-linux asm/stat.h uses dev_t etc. types,
936 so it needs strace's own copy of the stat structure.
937 * util.c: Make it compile on sparc-linux.
938 * strace.c: Fix strace -f and -ff operation on sparc-linux.
939 * signal.c: rt_sigaction has different arguments on sparc*-linux
940 and alpha-linux.
941 * syscall.c: Recognize sparc64-linux binaries.
942
Ulrich Drepper0d2d3231999-05-29 04:11:48 +0000943Fri May 28 21:09:00 PST Ulrich Drepper <drepper@cygnus.com>
944
945 * configure.in: Fix typo (CFLAG -> CFLAGS).
946
Ulrich Drepper8783c011999-05-29 04:13:58 +0000947 * syscall.c: Don't include linux/ptrace.h explicitly for glibc.
948
Wichert Akkerman22fe9d21999-05-27 12:00:57 +0000949Thu May 27 13:59:27 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
950
951 * Add some sysctl support, patch from Ulrich Drepper
952
Wichert Akkerman9524bb91999-05-25 23:11:18 +0000953Wed May 26 01:04:34 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
954
955 * Use kernel dirent structure for Linux
956
Wichert Akkerman2e2553a1999-05-09 00:29:58 +0000957Sun May 9 02:18:30 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
958
959 * Merge in patches from Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
960 + some layout and other minor fixes
961 + add some m68k-specific things to linux/syscallent.h. Note that m68k
962 is similar enough to i386 to not need it's own subdirectory
963 + add support for sendfile and mremap syscalls for Linux
964 * Merge in patches from Sascha Schumann <sascha@schumann.2ns.de>
965 + ioctls.h vs sys/ioctl.h on Alpha platform
966 + pointer was casted to an int in stream.c
967 + strsignal() needs -D_GNU_SOURCE in CFLAGS
968 + several other casts changed
969 + correct ARM/POWERPC architecture defines in acconfig.h
970 * Merge in patches from Morten Welinder <terra@diku.dk>
971 + add some autoconf-tests for includefiles
972 + handle solaris version of sigcontext struct (actually I hacked this
973 up again, but the idea is his :)
974
Wichert Akkerman7a1f0e91999-04-18 20:23:57 +0000975Sun Apr 18 22:32:42 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
976
977 * Update syscalls for linux alpha, patch from Bart Warmerdam
Ulrich Drepperc921cb21999-12-24 08:03:35 +0000978 <bartw@debian.org>
Wichert Akkermand4d8e921999-04-18 23:30:29 +0000979 * Update sparc code so it actually compiles
Wichert Akkerman7a1f0e91999-04-18 20:23:57 +0000980
Wichert Akkerman328c5e71999-04-16 00:21:26 +0000981Fri Apr 16 02:18:05 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
982
Wichert Akkerman25d0c4f1999-04-18 19:35:42 +0000983 * Add support for old_*stat functions for Linux. Please note you need
984 to use reasonably recent kernel headers to compile strace now.
Wichert Akkerman328c5e71999-04-16 00:21:26 +0000985 * Change references to LINUX into linux in file.c
986 * Fix include for LDT in mem.c
Wichert Akkerman1786d811999-04-15 20:34:14 +0000987
988Thu Apr 15 22:28:15 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
989
990 * Change in strace maintainership, jrs passed the torch to me.
991 * Use autoconf 2.13
992 * Incorporate all changes already made in the Debian strace package:
993 + compiles with more Linux kernels
994 + added support for more Linux architectures
995 + add support for a lot of extra syscalls
996 + fix some problems with hanging children
997 + check stray syscall after execv
998 + decode capget and capset arguments
999 + add more constants to net.c
1000 + detect ROSE networking
1001 + add more protocol families to domains
1002 + add IPIP protocol
1003 + added MSG_PROXY and MSG_CTRUNC to msg_flags
1004 + added SO_BSDCOMPAT and SO_REUSEPORT to sockoptions
1005 + added IP, IPX and TCP-options
1006 + added IP, IPX and TCP support to get-/setsockopt()
1007 + added IPX support
1008 + updated handling of signals
1009
Wichert Akkerman76baf7c1999-02-19 00:21:36 +00001010Sun Oct 27 22:28:00 1996 J. Richard Sladkey <jrs@world.std.com>
1011
1012 * util.c (umovestr) [LINUX]: Handle Linux like SunOS4
1013 instead of SVR4. That is, read a few bytes at a time
1014 to avoid overrunning the end of the stack.
1015
1016Fri May 31 01:48:49 1996 J. Richard Sladkey <jrs@world.std.com>
1017
1018 * version.c: Version 3.1 is released.
1019
1020Thu May 23 01:04:43 1996 J. Richard Sladkey <jrs@world.std.com>
1021
1022 * aclocal.m4 (AC_DECL_SYS_ERRLIST): Try looking in stdio.h
1023 as well since that's where glibc declares it. Go figure.
1024 * signal.c (sys_sigreturn) [ALPHA]: Use sigcontext
1025 instead of sigcontext_struct since glibc v5+ apparently
1026 plays games with the native OS namespace.
1027 From David Mosberger-Tang <davidm@AZStarNet.com>.
1028
1029Mon May 20 23:17:14 1996 J. Richard Sladkey <jrs@world.std.com>
1030
1031 * version.c: Version 3.0.14 is released.
1032
1033 * aclocal.m4 (AC_STRUCT_MSG_CONTROL): New macro.
1034 * configure.in: Add call to AC_STRUCT_MSG_CONTROL.
1035 * net.c (printmsghdr): Handle BSD 4.3 and 4.4 msghdr members
1036 differently.
1037 Reported by Henrik Storner <storner@osiris.ping.dk>.
1038
1039 * configure.in: (AC_CHECK_{HEADERS,FUNCS}): Add checks for
1040 sys/filio.h and sys/stream.h and remove check for poll.
1041 * desc.c (decode_select, sys_select, sys_oldselect) [LINUX]:
1042 Handle old and new styles of argument passing for select on Linux.
1043 * ioctl.c, stream.c: Conditionalize stream code on presence of
1044 sys/stream.h instead of poll because glibc implements poll but
1045 not the rest of the stream interface.
1046 * signal.c [LINUX]: Standardize on the name sigcontext_struct.
1047 (sys_sigprocmask) [ALPHA]: Handle OSF flavor which is more like
1048 sigsetmask.
1049 * term.c (term_ioctl): Use _VMIN, if present, for TC{G,S}ETA*.
1050 * util.c (umoven, umovestr): Move data in long-sized chunks
1051 at a time, instead of hard coding it to be 4.
1052 From David Mosberger-Tang <davidm@AZStarNet.com>.
Ulrich Drepperc921cb21999-12-24 08:03:35 +00001053
Wichert Akkerman76baf7c1999-02-19 00:21:36 +00001054Mon May 20 01:19:36 1996 J. Richard Sladkey <jrs@world.std.com>
1055
1056 * version.c: Version 3.0.13 is released.
1057
1058 * configure.in (AC_CHECK_HEADERS): Add check for asm/sigcontext.h.
1059 * signal.c [HAVE_ASM_SIGCONTEXT_H]: Conditionally include
1060 asm/sigcontext.h to define sigcontext_struct and don't define it
1061 locally if the header is present.
1062
1063 * syscall.c (nerrnos{0,2}): Correct size computation.
1064
1065 * Makefile.in: Remove dependencies and rules relating to files
1066 normally found in the os directory. Because of the new scheme we
1067 don't know precisely where they come from. Sigh.
1068 * signalent.sh: Make it work for sunos4, linux, and svr4.
1069 * {sunos4,linux{,/alpha},svr4}/Makefile.in: Make rules correspond
1070 to traditional make syntax. Add signalent.h to files which can
1071 unconditionally be rebuilt. Prevent signalent.h from being
1072 unconditionally being rebuilt since it's customized.
1073 * {sunos4,linux{,/alpha},svr4}/{ioctlent,errnoent,signalent}.h:
1074 Use versions built by {ioctlent,errnoent,signaltent}.sh.
1075 * sunos4/ioctlent.sh: Work around sprintf troubles with SunOS
1076 4.1.4 and gcc 2.7.2.
Ulrich Drepperc921cb21999-12-24 08:03:35 +00001077
Wichert Akkerman76baf7c1999-02-19 00:21:36 +00001078Sun May 19 17:14:09 1996 J. Richard Sladkey <jrs@world.std.com>
1079
1080 * configure.in, Makefile.in: Add OSARCH concept to finish
1081 build support for the alpha.
1082 * Makefile.in, linux/Makefile.in: Rewrite clean, distclean,
1083 and maintainer-clean rules.
1084 * defs.h, ioctlsort.c: Make ioctl code member unsigned.
1085 * ioctl.c, ioctlsort.c (compare): Perform explicit checking
1086 for less, greater, and equal since subtraction on two's
1087 complement numbers isn't an order relation (it isn't transitive)!
1088 * linux/Makefile.in: Add rules for the signalent.h file.
1089 * linux/alpha/Makefile.in: New file.
Ulrich Drepperc921cb21999-12-24 08:03:35 +00001090
Wichert Akkerman76baf7c1999-02-19 00:21:36 +00001091Sun May 19 01:12:28 1996 J. Richard Sladkey <jrs@world.std.com>
1092
1093 * version.c: Version 3.0.12 is released.
1094
1095 * linux{,alpha}/ioctlent.sh: Tweak for recent kernels.
1096 From Michael E Chastain <mec@duracef.shout.net>.
Ulrich Drepperc921cb21999-12-24 08:03:35 +00001097
Wichert Akkerman76baf7c1999-02-19 00:21:36 +00001098 * defs.h (SUPPORTED_PERSONALITES, DEFAULT_PERSONALITY): New.
1099 * syscall.c (set_personality): New.
1100 * strace.c (main): Call set_personality.
1101 * defs.h, syscall.c, ioctl.c, signal.c: Make sysent, errnoent,
1102 ioctlent, and signalent indirect pointers and redirect them
1103 based on personality.
1104 * {sunos4,svr4,linux{,/alpha}}/signalent.h: New files.
1105 Suggested by Tom Dyas <tdyas@eden.rutgers.edu>.
1106
1107 * util.c (upeek): Handle case where ptrace returns a long
1108 and sizeof(long) != sizeof(int).
1109 From Richard Henderson <richard@twiddle.tamu.edu>
1110
1111Fri May 17 21:03:36 1996 J. Richard Sladkey <jrs@world.std.com>
1112
1113 * version.c: Version 3.0.11 is released.
1114
1115 * many files: Fix more printf warnings for other platforms.
1116
1117 * ipc.c (sys_msgrcv) [LINUX]: Conditionalize definition of ipc_wrapper.
1118
1119 * linux/dummy.h: Handle missing library support for {send,recv}msg.
1120 Reported by Thomas Bogendoerfer <tsbogend@bigbug.franken.de>.
1121
1122 * linux/syscall.h (sys_utimes): Fix a typo in the declaration.
1123 From Thomas Bogendoerfer <tsbogend@bigbug.franken.de>.
Ulrich Drepperc921cb21999-12-24 08:03:35 +00001124
Wichert Akkerman76baf7c1999-02-19 00:21:36 +00001125Fri May 17 00:50:06 1996 J. Richard Sladkey <jrs@world.std.com>
1126
1127 * version.c: Version 3.0.10 is released.
1128
1129 * Makfile.in: Add os/arch to includes so that a given arch
1130 (like alpha) can override the native arch (like i386).
1131 * configure.in: Check for sendmsg.
1132
1133 * net.c: Make sendmsg and recvmsg dependent on an autoconf
1134 test. Reported by Michael E Chastain <mec@duracef.shout.net>.
1135
1136 * acconfig.h, configure.in: Detect the alpha.
1137 * ioctl.c: Handle the alpha.
1138 * defs.h: Make some members long for the alpha. Define
1139 some register nicknames. Add support for WAITEXECVE.
1140 * file.c [ALPHA]: Support the alpha for statfs. Add
1141 osf_statfs and osf_fstatfs for the alpha. Make damn sure
1142 major and minor results are suitable for passing to printf.
1143 * signal.c, syscall.c: Support the alpha.
1144 * process.c: Add alpha user offsets.
1145 * most files: Use %l? for printf arguments since
1146 most are now longs for the alpha.
1147 * linux/alpha/{errnoent.h,ioctlent.{h,sh},syscallent.h}:
1148 New for the alpha.
1149 From Thomas Bogendoerfer <tsbogend@bigbug.franken.de>.
1150
1151Wed May 15 00:29:37 1996 J. Richard Sladkey <jrs@world.std.com>
1152
1153 * version.c: Version 3.0.9 is released.
1154
1155 * config.in, config.sub, install-sh: Upgrade to autoconf 2.10.
1156
1157 * linux/dummy.h, linux/syscallent.h, linux/syscall.h: Add recent
1158 Linux kernel version system calls.
1159
1160Wed Mar 13 01:03:38 1996 J. Richard Sladkey <jrs@world.std.com>
1161
1162 * ipc.c [SUNOS4]: Add SunOS support for decoding IPC calls.
1163 * syscall.c [SUNOS4]: Compile decode_subcall on SunOS and
1164 decode IPC calls using it.
1165 * sunos4/dummy.h: Alias sys_semop to printargs.
1166 * sunos4/syscall.h: Add new pseudo syscalls for IPC.
1167 * sunos4/syscallent.h: Include new subcalls for IPC.
1168 From Matthias Pfaller <leo@dachau.marco.de>.
1169
1170Tue Feb 13 22:08:25 1996 J. Richard Sladkey <jrs@world.std.com>
1171
1172 * version.c: Version 3.0.8 is released.
1173
1174 * time.c [LINUX]: Explicitly include linux/version.h.
1175
1176 * strace.c (main): Don't let them even *try* to
1177 get strace to attach to itself since some systems
1178 don't handle this case very gracefully.
1179 Reported by David S. Miller <davem@caip.rutgers.edu>.
1180
1181 * Makefile.in (distclean): Fix it for subdirectories.
1182
1183 * sunos4/syscallent.h, svr4/syscallent.h: Fill in the new
1184 sys_flags member for each defined system call.
1185
1186Fri Dec 8 01:17:28 1995 Rick Sladkey <jrs@world.std.com>
1187
1188 * defs.h (TRACE_*): New flags to describe what class
1189 of system call each system call is.
1190 (sysent): Add sys_flags member.
1191 * syscall.c (sysent): Define (and later undef) abbreviations
1192 for the system call class flags.
1193 (lookup_class): New function to translate strings to
1194 system call class flags.
1195 (qualify): Handle new system call class mechanism.
1196 * linux/syscallent.h: Fill in the new sys_flags member
1197 for each defined system call.
1198
1199 * defs.h (print_sock): Remove redundant and non-K&R C
1200 compatible prototype. From Juergen Weigert
1201 <jnweiger@immd4.informatik.uni-erlangen.de>.
1202
1203Thu Dec 7 01:17:40 1995 Rick Sladkey <jrs@world.std.com>
1204
1205 * linux/ioctlent.sh: Tweak to improve ioctl accuracy.
1206 From Michael E Chastain <mec@duracef.shout.net>.
1207
1208 * system.c (includes) [LINUX]: Add linux/nfs.h for recent
1209 kernels. From Michael E Chastain <mec@duracef.shout.net>.
1210
1211Wed Dec 6 21:52:28 1995 Rick Sladkey <jrs@world.std.com>
1212
1213 * file.c (sprintfstype): Enclose string result in double
1214 quotes.
1215
1216 * time.c (sys_adjtimex) [LINUX]: Conditionalize
1217 constantly evolving timex structure.
1218 From Aaron Ucko <UCKO@VAX1.ROCKHURST.EDU>.
1219
1220 * defs.h, syscall.c, strace.c: Rename syscall to
1221 trace_syscall and change prototype and all callers
1222 because of broken Linux shared libraries.
1223 From Aaron Ucko <UCKO@VAX1.ROCKHURST.EDU>.
1224
1225 * Makefile.in (clean): Check for a file with test -f not
1226 test -d. From Aaron Ucko <UCKO@VAX1.ROCKHURST.EDU>.
1227
1228Tue Sep 26 02:32:31 1995 Rick Sladkey <jrs@world.std.com>
1229
1230 * version.c: Version 3.0.7 is released.
1231
1232 * util.c (string_quote): Fix thinko which caused core
1233 dumps for strings with quotes in them.
1234 Reported by Marty Leisner <leisner@sdsp.mc.xerox.com>.
1235
1236 * linux/Makefile.in (errnoent.h rule): Grab all errno.h
1237 files from /usr/include, not just the linux one.
1238 From Michael E Chastain <mec@duracef.shout.net>.
1239
1240 * linux/errnoent.sh: Total rewrite to handle more ioctls with
1241 fewer false positives on more kernel flavors.
1242 From Michael E Chastain <mec@duracef.shout.net>.
1243
1244Mon Sep 4 01:29:22 1995 Rick Sladkey <jrs@world.std.com>
1245
1246 * version.c: Version 3.0.6 is released.
1247
1248 * linux/dummy.h, linux/syscall.h, linux/syscallent.h: Add
1249 sys_msync.
1250 * mem.c (mctl_funcs, mctl_lockas, sys_mctl): Conditionalize
1251 on MC_SYNC instead of HAVE_MCTL.
1252 (mctl_sync): Conditionalize on MS_ASYNC instead of HAVE_MCTL.
1253 (sys_msync): New function.
1254
1255Sat Sep 2 12:06:04 1995 Rick Sladkey <jrs@world.std.com>
1256
1257 * linux/dummy.h, linux/syscall.h, linux/syscallent.h: Add
1258 sys_flock and sys_getdents.
1259 * desc.c (flockcmds, sys_flock): Conditionalize on LOCK_SH
1260 not SUNOS4.
1261 * file.c (sys_getdents): Define unconditionally and handle
1262 LINUX case.
1263 * strace.c (main): Disallow username option unless both real
1264 and effective uids are root.
1265
1266Wed Aug 30 01:29:58 1995 Rick Sladkey <jrs@world.std.com>
1267
1268 * strace.c (main): Ensure that run_uid and run_gid are
1269 always set to something meaningful.
1270 (main, newoutf) [!SVR4]: Swap real and effective uids while
1271 opening any output files.
1272 (main) [!SVR4]: Treat effective uid of root as a request
1273 to handle suid binaries correctly using the real uid of
1274 the invoking user.
1275
1276Sat Aug 19 00:06:08 1995 Rick Sladkey <jrs@world.std.com>
1277
1278 * Makefile.in: Add `|| true' to clean rule because
1279 although GNU make 3.74 uses `sh -c' to invoke commands
1280 every other make in the world uses `sh -ec'.
1281
1282 * syscall.c (syscall) [SVR4, MIPS]: The fifth and subsequent
1283 arguments appear to be stored on the stack, not in the
1284 registers following A3 (empirical result).
1285
1286 * defs.h: Add prototype for printsock.
1287 * svr4/dummy.h: Remove generic handling of sys_mount.
1288 * system.c [SVR4, MIPS]: Include several system headers to cleanly
1289 get access to SGI mount information.
1290 (mount_flags, nfs_flags) [SVR4, MIPS]: New objects.
1291 (sys_mount) [SVR4, MIPS]: New function.
1292 (sys_mount) [SVR4, !MIPS]: New function.
1293
1294Tue Jul 4 00:30:34 1995 Rick Sladkey <jrs@world.std.com>
1295
1296 * version.c: Version 3.0.5 is released.
1297
1298 * desc.c, resource.c, strace.c, syscall.c, time.c: Cast tv_sec and
1299 tv_usec members to long when using printf.
1300
1301 * ipc.c: Omit define of __KERNEL__.
1302 ({MSG,SEM,SHM}_{STAT,INFO}): Explicitly define those things we
1303 want which __KERNEL__ used to provide.
1304 (sys_msgrcv): Change reference to ipc_kludge structure to
1305 look-alike ipc_wrapper to avoid dependence on __KERNEL__.
1306
1307 mem.c (mmap_flags) [MAP_{GROWSDOWN,DENYWRITE,EXECUTABLE}]: Add
1308 Linux specific options.
1309
1310 syscall.c: Use SYS_ERRLIST_DECLARED instead of guessing.
1311 [E{RESTART{SYS,NO{INTR,HAND}},NOIOCTLCMD}]: Explicitly define
1312 instead of depending of __KERNEL__.
1313
1314 term.c: Cast c_{i,o,c,l}flag to long when using printf.
1315
1316Tue Jun 6 00:27:48 1995 Rick Sladkey <jrs@world.std.com>
1317
1318 * aclocal.m4 (AC_DECL_SYS_ERRLIST, AC_DECL__SYS_SIGLIST): New.
1319 * configure.in: Call AC_DECL_SYS_ERRLIST, AC_DECL_SYS_SIGLIST,
1320 and AC_DECL__SYS_SIGLIST.
1321 * acconfig.h (SYS_ERRLIST_DECLARED): New.
1322 * strace.c (strerror): Use SYS_ERRLIST_DECLARED.
1323 (strsignal): Use SYS_SIGLIST_DECLARED.
1324
1325 net.c (sys_socket): Omit inadvertent surplus comma when
1326 protocol family isn't PF_INET.
1327
1328 util.c (dumpstr): Fix incorrect printing of one too many
1329 characters when the length is not an even multiple of 16 bytes.
1330 Reported by Juergen Weigert
1331 <jnweiger@immd4.informatik.uni-erlangen.de>.
1332
1333Thu May 4 23:37:47 1995 Rick Sladkey <jrs@world.std.com>
1334
1335 * ioctl.c (compare): Change prototype to match POSIX qsort.
1336 * signal.c (sigishandled) [SVR4]: Omit everything after return.
1337 * strace.c (trace) [SVR4]: Break out of for loop instead of
1338 returning when finished so final return statement is executed.
1339 * syscall.c (internal_syscall): Add more SYS_wait* variations.
1340 (syscall) [LINUX]: Correct typo which commented out the M68K
1341 argument to ifdef.
1342 * util.c (printstr): Cast unsigned char pointer argument
1343 to char pointer in umovestr call.
1344 (dumpstr): Likewise for umoven.
1345
1346Wed May 3 01:10:56 1995 Rick Sladkey <jrs@world.std.com>
1347
1348 * version.c: Version 3.0.4 is released.
1349
1350 * signal.c (sys_sigblock): Move after the definition of
1351 sys_sigsetmask that it calls to avoid an implicit declaration.
1352 * stream.c (transport_user_options, transport_server_options):
1353 Only needed if TI_BIND is defined.
1354 * configure.in: Add -Wno-implicit to WARNFLAGS on SunOS 4.x.
1355
1356 * process.c (internal_fork) [SVR4]: Fix a typo that omitted
1357 the tcp arguement from the call to exiting. Add getrval2
1358 check so no fork processing is done in the child.
1359 (printwaitn): Initialize exited so that its value is defined
1360 for all flows of execution.
1361
1362Tue May 2 22:39:42 1995 Rick Sladkey <jrs@world.std.com>
1363
1364 * linux/dummy.h: Add aliases for sysfs, personality, afs_syscall,
1365 setfsuid, setfsgid, and _llseek syscalls.
1366 * linux/syscall.h: Add prototypes for them.
1367 * linux/syscallent.h: Add them to the syscall entries table.
1368 * system.c (headers) [LINUX]: Include linux/unistd.h to get __NR_*
1369 defines and conditionally include linux/personality.h if
1370 __NR_personality is defined.
1371 (personality_options) [LINUX]: New table.
1372 (sys_personality) [LINUX]: New function.
1373
1374Tue May 2 00:20:39 1995 Rick Sladkey <jrs@world.std.com>
1375
1376 * strace.c (trace) [!SVR4]: Change forever loop to one predicated
1377 on the number of traced processes so that we can have untraced
1378 children (e.g. via popen).
1379
1380 * strace (main) [!SVR4]: Call fake_execve to get the actual
1381 exec and its arguments into the trace.
1382 (environ): Declare it.
1383 * process.c (fake_execve): New function.
1384 (headers): Include sys/syscall.h to get SYS_* defines.
1385
1386 * process.c (sys_execv, sys_execve): Surround argument annotations
1387 with C comment delimiters.
1388 (printargv, printargc): The arg vector is an array of char pointers
1389 not ints.
1390
1391 * strace.c (printleader): Also check for multiple -p arguments
1392 when deciding whether to print the pid field.
1393
1394 * strace.c (strerror) [!HAVE_STRERROR]: New function.
1395 * defs.h (strerror, strsignal): Add these prototypes if we provide
1396 the functions.
1397 * configure.in (AC_CHECK_FUNCS): Add strerror.
1398
1399 * strace.c (main, proc_poller): Add SIGPIPE to the list of caught
1400 and blocked signals.
1401
1402 * strace.c (main): Add username option. Verify they are root before
1403 letting them use it. Look up the ids in the password file. Set
1404 them just before executing the program.
1405 From Reuben Sumner <rasumner@undergrad.math.uwaterloo.ca>.
1406
1407Sat Apr 29 00:09:56 1995 Rick Sladkey <jrs@world.std.com>
1408
1409 * version.c: Version 3.0.3 is released.
1410
1411 * system.c (mount_flags) [LINUX]: Omit duplicated MS_NOSUID entry.
1412 From Reuben Sumner <rasumner@undergrad.math.uwaterloo.ca>.
1413
1414 * strace.c (outfname): Initialize to NULL.
1415 (main): Defer output file processing until after arguments.
1416 Allow either a pipe or a bang for command arguments.
1417 Check if outfname is NULL instead of checking outf for stderr.
1418 Reinitialize each startup TCB's outf to fix -p/-o ordering bug.
1419 (droptcb): Reset close TCB's outf to NULL instead of stderr.
1420 (tprintf): Avoid calling vfprintf if outf is NULL.
1421
1422 * strace.c (main): Use popen if -o argument begins with a pipe.
1423 From Marty Leisner <leisner@sdsp.mc.xerox.com>.
1424
1425 * process.c (printstatus): Fix a typo where WIFSIGNALED was meant
1426 but WIFSTOPPED was used.
1427
1428 * Makefile.in: Add an EXTRA_DEFS variable and use it in the .c.o
1429 rule to prevent the comment from being untrue.
1430
1431Fri Apr 28 22:01:56 1995 Rick Sladkey <jrs@world.std.com>
1432
1433 * strace.c (sys_exit): Move follow fork code to internal_exit.
1434 (sys_fork): Move follow fork code to internal_fork.
1435 (sys_execv, sys_execve): Move follow fork code to internal_exec.
1436 (sys_waitpid, sys_wait4): Move follow fork code to internal_wait.
1437 (vforking): Remove this static variable and check scno in
1438 internal_fork instead.
1439 (internal_exit, internal_fork, internal_exec, internal_wait): New
1440 functions.
1441 * defs.h: Add prototypes for the new internal_* functions.
1442 * syscall.c (syscall): Move syscall entering trace qualifier check
1443 and reprint checking after context decoding and precede them with
1444 a call to internal_syscall. Precede syscall exiting trace
1445 qualifier check with a call to internal_syscall.
1446 (internal_syscall): New function.
1447
1448 * defs.h (struct tcb): Make scno signed.
1449 * strace.c (syscall) Make u_error signed.
1450 [LINUX, I386]: Avoid unsigned cast in eax check.
1451 * syscall.c (sys_indir): Make i, scno, and nargs signed.
1452 * desc.c (sys_select): Make cumlen unsigned
1453
1454Mon Apr 24 23:52:47 1995 Rick Sladkey <jrs@world.std.com>
1455
1456 * net.c (socktypes): Add SOCK_PACKET.
1457
1458Sun Apr 2 23:50:39 1995 Rick Sladkey <jrs@world.std.com>
1459
1460 * Makefile (clean): Check explicitly for a Makefile in subdirs
1461 before running make in them.
1462
1463Sun Mar 26 12:37:21 1995 Rick Sladkey <jrs@world.std.com>
1464
1465 * strace.c [MIPS] (proc_open): Conditionalize run on MIPS.
1466 [MIPS] (detach): Initialize error for MIPS case.
1467 (trace): Initialize ioctl_result and ioctl_errno for overly helpful
1468 compilers.
1469 * syscall.c (decode_subcall): Move variable i into conditionals
1470 that use use it.
1471 * system.c (syssgi_options): Conditionalize SGI_RECVLMSG and
1472 SGI_SET_FPDEBUG that SGI decided to drop. I don't have the stomach
1473 to change them all.
1474 * term.c (term_ioctl): Force [c_[iocl]flags members to long before
1475 printing since we don't know what the size of their type is.
1476 * util.c [SVR4, MIPS] (umoven): Prevent MIPS from using pread even
1477 if autoconf detects it since it seems to either not work or do
1478 something else entirely on Irix 5.3.
1479
1480Sun Mar 26 00:01:11 1995 Rick Sladkey <jrs@world.std.com>
1481
1482 * version.c: Version 3.0.2 is released.
1483 * linux/dummy.h: Make sys_fchdir like sys_close instead of printargs
1484 so that the file descriptor arg is decimal.
1485
1486Sat Mar 25 22:50:13 1995 Rick Sladkey <jrs@world.std.com>
1487
1488 * net.c [LINUX] (protocols): Explicitly define all IPPROTO_* entries
1489 because on Linux they are enumerators.
1490
1491 * system.c [LINUX] (mount_flags): Handle renaming of MS_SYNC to
1492 MS_SYNCHRONOUS.
1493
1494 * util.c (printxval): When there is no translation, print the actual
1495 number first and the the default value as a C comment.
1496
1497 * net.c (sys_send, sys_sendto, sys_sendmsg, sys_getsockopt,
1498 sys_setsockopt): Change first argument from unsigned to signed to
1499 cater to the frequent practice of calling system calls with a file
1500 descriptor of -1.
1501 * mem.c (sys_mmap): Likewise.
1502
1503Sun Mar 19 13:53:52 1995 Rick Sladkey <jrs@world.std.com>
1504
1505 * signal.c [LINUX] (signalent): Handle old and new values of SIGIO.
1506
1507Sun Dec 11 22:51:51 1994 Rick Sladkey <jrs@world.std.com>
1508
1509 * version.c: Version 3.0.1 is released.
1510 * Makefile.in, configure.in, aclocal.m4: Changes for autoconf 2.0.
1511 * config.guess, config.guess: Update from the FSF.
1512 * install-sh: New from the FSF.
1513
1514Mon Dec 5 20:51:29 1994 Rick Sladkey <jrs@world.std.com>
1515
1516 * Makefile.in: Add m68k arch.
1517 * acconfig.h (M68K): Add m68k define.
1518 * configure.in: Add detection of arch m68k.
1519 * process.c [M68K] (struct_user_offsets): Support m68k registers and
1520 offsets.
1521 * signal.c [M68K] (sigcontext_struct): Support m68k sigcontext
1522 structure.
1523 [M68K] (sys_sigreturn): Support m68k sigreturn handling.
1524 * syscall.c [M68K] (syscall): Support m68k syscall number register
1525 and errno in d0 instead of eax.
1526 * util.c [M68K] (getpc, printcall, setbpt, clearbpt): Support m68k
1527 program counter in PT_PC instead of EIP.
1528 [M68K] (LOOP): Support m68k loop instruction.
1529 From Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.
1530
1531 * mem.c [MAP_ANONYMOUS] (mmap_flags): Correct inadvertent reference
1532 to MAP_FIXED instead of MAP_ANONYMOUS.
1533 From Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.
1534
1535 * signal.c [LINUX] (signalent): Signal 30 is now SIGPWR.
1536 From Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.
1537
1538Mon Dec 5 01:05:46 1994 Rick Sladkey <jrs@world.std.com>
1539
1540 * defs.h (tprintf): Fix typo in non-gcc ansi prototype for tprintf.
1541 Reported by Thanh Ma <tma@encore.com>.
1542
1543 * strace.c (cleanup): Send SIGCONT before SIGTERM because Linux
1544 1.1.62 doesn't continue a traced child when the parent exits.
1545 Reported by Matt Day <mday@artisoft.com>.
1546
1547 * system.c [LINUX]: Include netinet/in.h before arpa/inet.h.
1548
1549 * util.c (printstr): Fix longstanding bug in notating string
1550 continuation.
1551
1552 * strace.c [SVR4] (proc_open): Specifically wait for the child the
1553 child to go into the execve syscall to avoid spurious traces.
1554 [LINUX] (detach): Conditionalize the status variable.
1555
1556Sun Dec 4 23:21:42 1994 Rick Sladkey <jrs@world.std.com>
1557
1558 * Makefile.in: Add mips arch.
1559 * acconfig.h (MIPS): Add mips define.
1560 * configure.in: Add detection of opsys irix5 and arch mips. Check
1561 for prctl function.
1562 Check for sys/sysconfig.h header.
1563 * defs.h (MAX_ARGS): Bump maximum syscall arguments from 8 to 32.
1564 * file.c [SVR4]: Include sys/cred.h.
1565 (access_flags): Update access flags for SGI.
1566 (sprinttime): Change type of sprinttime argument from unsigned
1567 long to time_t.
1568 * process.c [HAVE_PRCTL]: Include sys/prctl.h.
1569 [HAVE_PRCTL] (prctl_options, sys_prctl): New for SGI.
1570 (printsiginfo): Conditionally compile SI_TIMER and SI_MESGQ.
1571 Cast si_band member to long before printing.
1572 * signal.c (sigact_flags): Add _SA_BSDCALL for SGI.
1573 (sigprocmaskcmds): Add SIG_SETMASK32 for SGI.
1574 * strace.c [SVR4] [MIPS]:
1575 (foobar): New dummy signal handler.
1576 (main): Install a dummy signal handler in the child before pausing
1577 to work around an SGI bug in PRSABORT.
1578 (proc_open): Send a interrupt to the child instead of aborting the
1579 syscall which doesn't work on Irix5.2.
1580 * svr4/dummy.h: Add new unfinished SGI syscalls
1581 (e.g. sys_sysmp, sys_sginap, etc.). Handle some SGI syscalls like
1582 existing calls (e.g. sys_ksigaction like sys_sigaction).
1583 Printargs does the print thing for sys_sethostid.
1584 * svr4/syscall.h: Declare all new SGI syscalls.
1585 (SGI_KLUDGE): Define syscall table starting index to be 1 for SGI
1586 and add it to all subcall entry points.
1587 (SYS_pgrpsys_subcall, SYS_sigcall_subcall, SYS_context): Don't
1588 decode as subcalls on MIPS. Instead, use the normal syscalls.
1589 * svr4/syscallent.h [MIPS]: Lead syscall table with a dummy entry
1590 since SGI syscall numbers are off by one.
1591 [MIPS] (sys_pgrpsys): Rename to sys_setpgrp on SGI.
1592 [MIPS] (sys_xenix): Rename to sys_syssgi on SGI.
1593 [MIPS] (sys_sysmachine): Rename to sys_sysmips on SGI.
1594 [MIPS]: Conditionalize SVR4 extension into SGI and Solaris classes.
1595 * syscall.c (dumpio): Validate descriptor against MAX_QUALS.
1596 [HAVE_PR_SYSCALL] (syscall): Conditionalize SYS_vfork.
1597 [MIPS] (syscall): Add SGI section for decoding u_error and u_rval.
1598 Add workaround for broken SGI pr_sysarg on syscall entry.
1599 [SVR4] (syscall): Conditionalize subcall decoding for
1600 SYS_ptrpsys_subcall, SYS_sigcall_subcall and SYS_context_subcall.
1601 [SVR4] [MIPS] (getrval2): Handle SGI.
1602 * syscallent.sh: Dork the sed line to be choosier about SYS_ lines.
1603 * system.c [HAVE_SYSCONFIG_H]: Include sys/sysconfig.h.
1604 [MIPS] (syssgi_options, sys_syssgi): New for SGI.