blob: 307fe3c5dfe3f5bd3969dc44f64fdd8225bffe1c [file] [log] [blame]
Wichert Akkerman15dea971999-10-06 13:06:34 +00001Wed Oct 6 02:00:33 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
2
3 * Update cvsbuild to give a better error if autoconf isn't installed
4 * Add test for linux/ptrace.h to configure
5 * Since we define GNU_SOURCE in the Makefile we don't need to define
6 USE_GNU in file.c anymore
7
8Fri Sep 10 04:35:16 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
9
10 * #define USE_GNU before including file.c so we get some extra O_* flags
11
12Tue Aug 31 16:27:21 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
13
14 * Add missing } in IPv6 output
15
Wichert Akkerman7b27ba01999-08-30 23:26:53 +000016Tue Aug 31 01:23:08 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
17
18 * Update copyright for strace-graph to BSD to be consistent with
19 the rest of strace
20
Wichert Akkerman9ce1a631999-08-29 23:15:07 +000021Mon Aug 30 00:53:57 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
22
23 * Merge patch from Daniel Jacobowitz: KERN_JAVA_* and KERN_SECURELVL aren't
24 defined for all kernelversions
Wichert Akkerman7b27ba01999-08-30 23:26:53 +000025 * Add strace-graph, written by Richard Braakman <dark@xs4all.nl>
Wichert Akkerman9ce1a631999-08-29 23:15:07 +000026
27Thu Aug 19 13:10:15 CEST 1999 Jakub Jelinek <jj@ultra.linux.cz>
28
29 * linux/sparc/syscall.h: Declare create_module/init_module.
30 * configure.in: Allow compilation in a different directory
31 than the source one.
32 * signal.c: Use asm/reg.h and struct regs instead of pt_regs
33 so that we don't depend on asm/ptrace.h which clashes with
34 glibc sys/ptrace.h.
35 * util.c: Likewise.
36 * syscall.c: Likewise.
37
Wichert Akkerman5a777661999-08-04 16:03:49 +000038Wed Aug 4 18:01:50 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
39
40 * Syscall 94 on Linux alpha is sys_poll
41
Wichert Akkerman9ce1a631999-08-29 23:15:07 +000042Sun Jul 25 14:38:33 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
43
44 * Merge in UnixWare patches from John Hughes <john@Calva.COM>
45
Wichert Akkerman527a8051999-07-15 21:11:37 +000046Thu Jul 15 23:00:32 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
47
48 * Merge patch from Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
49 + Correctly implement fix sys_createmodule (Linux)
50 + Add limited handlig of sys_initmodule (Linux)
51
Wichert Akkerman36915a11999-07-13 15:45:02 +000052Tue Jul 13 17:07:50 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
53
54 * Add configure-test for sys/reg.h and use that
55 * Use sys/reg.h instead of asm/ptrace.h
56
Wichert Akkermanca446991999-07-09 23:48:58 +000057Sat Jul 10 01:46:10 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
58
59 * Remove hack in signal.c for arm architecture
60 * Add hack so we compile correctly on powerpc
61
Wichert Akkerman5b4d1281999-07-09 00:32:54 +000062Fri Jul 9 02:28:16 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
63
64 * Add a corrected patch from Daniel Jacobowitz
65
Wichert Akkermana6013701999-07-08 14:00:58 +000066Thu Jul 8 16:00:04 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
67
68 * Merge patch from Daniel Jacobowitz to allow us to use the kernel types
69 for the stat structure
70
71Thu Jun 24 15:54:18 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
Wichert Akkerman2b483ba1999-06-24 13:55:29 +000072
73 * Fix test for sys/reg include
74
Wichert Akkermana6013701999-07-08 14:00:58 +000075Tue Jun 22 17:26:33 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
Wichert Akkermane6f876c1999-06-22 15:28:30 +000076
77 * Fixed some Linux/powerpc sillyness, thanks to Daniel Jacobowitz
78 * Fixed some SunOS compile problems earlier that I forgot to include
79 here
80
Wichert Akkerman789ed351999-06-14 10:45:01 +000081Mon Jun 14 12:44:25 CEST 1999
82
83 * Avoid leakint fd into child when forking, patch from
84 John Hughes <john@Calva.COM>
85
Wichert Akkerman8829a551999-06-11 13:18:40 +000086Fri Jun 11 14:54:47 CEST 1999
87
88 * Applied IRIX64 patch from Thomas E. Dickey <dickey@clark.net>
89 * Applied Solaris and manpage updates from Guy Harris <guy@netapp.com>
90
Wichert Akkermancc4b8f41999-06-09 12:50:10 +000091Wed Jun 9 14:48:49 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
92
93 * Brought syscall list for alpha up to date
94
Wichert Akkermandacfb6e1999-06-03 14:21:07 +000095Wed Jun 2 18:30:12 CEST 1999 Jakub Jelinek <jj@ultra.linux.cz>
96
97 * system.c: sys_umount2 syscall support.
98 * linux/sparc/errnoent.h: Update sparc-linux errnos.
99 * linux/sparc/syscall.h: Update used sparc-linux syscalls.
100 * linux/sparc/syscallent.h: Match 2.2.9 system calls.
101 * file.c: sparc-linux asm/stat.h uses dev_t etc. types,
102 so it needs strace's own copy of the stat structure.
103 * util.c: Make it compile on sparc-linux.
104 * strace.c: Fix strace -f and -ff operation on sparc-linux.
105 * signal.c: rt_sigaction has different arguments on sparc*-linux
106 and alpha-linux.
107 * syscall.c: Recognize sparc64-linux binaries.
108
Ulrich Drepper0d2d3231999-05-29 04:11:48 +0000109Fri May 28 21:09:00 PST Ulrich Drepper <drepper@cygnus.com>
110
111 * configure.in: Fix typo (CFLAG -> CFLAGS).
112
Ulrich Drepper8783c011999-05-29 04:13:58 +0000113 * syscall.c: Don't include linux/ptrace.h explicitly for glibc.
114
Wichert Akkerman22fe9d21999-05-27 12:00:57 +0000115Thu May 27 13:59:27 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
116
117 * Add some sysctl support, patch from Ulrich Drepper
118
Wichert Akkerman9524bb91999-05-25 23:11:18 +0000119Wed May 26 01:04:34 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
120
121 * Use kernel dirent structure for Linux
122
Wichert Akkerman2e2553a1999-05-09 00:29:58 +0000123Sun May 9 02:18:30 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
124
125 * Merge in patches from Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
126 + some layout and other minor fixes
127 + add some m68k-specific things to linux/syscallent.h. Note that m68k
128 is similar enough to i386 to not need it's own subdirectory
129 + add support for sendfile and mremap syscalls for Linux
130 * Merge in patches from Sascha Schumann <sascha@schumann.2ns.de>
131 + ioctls.h vs sys/ioctl.h on Alpha platform
132 + pointer was casted to an int in stream.c
133 + strsignal() needs -D_GNU_SOURCE in CFLAGS
134 + several other casts changed
135 + correct ARM/POWERPC architecture defines in acconfig.h
136 * Merge in patches from Morten Welinder <terra@diku.dk>
137 + add some autoconf-tests for includefiles
138 + handle solaris version of sigcontext struct (actually I hacked this
139 up again, but the idea is his :)
140
Wichert Akkerman7a1f0e91999-04-18 20:23:57 +0000141Sun Apr 18 22:32:42 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
142
143 * Update syscalls for linux alpha, patch from Bart Warmerdam
144 <bartw@debian.org>
Wichert Akkermand4d8e921999-04-18 23:30:29 +0000145 * Update sparc code so it actually compiles
Wichert Akkerman7a1f0e91999-04-18 20:23:57 +0000146
Wichert Akkerman328c5e71999-04-16 00:21:26 +0000147Fri Apr 16 02:18:05 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
148
Wichert Akkerman25d0c4f1999-04-18 19:35:42 +0000149 * Add support for old_*stat functions for Linux. Please note you need
150 to use reasonably recent kernel headers to compile strace now.
Wichert Akkerman328c5e71999-04-16 00:21:26 +0000151 * Change references to LINUX into linux in file.c
152 * Fix include for LDT in mem.c
Wichert Akkerman1786d811999-04-15 20:34:14 +0000153
154Thu Apr 15 22:28:15 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
155
156 * Change in strace maintainership, jrs passed the torch to me.
157 * Use autoconf 2.13
158 * Incorporate all changes already made in the Debian strace package:
159 + compiles with more Linux kernels
160 + added support for more Linux architectures
161 + add support for a lot of extra syscalls
162 + fix some problems with hanging children
163 + check stray syscall after execv
164 + decode capget and capset arguments
165 + add more constants to net.c
166 + detect ROSE networking
167 + add more protocol families to domains
168 + add IPIP protocol
169 + added MSG_PROXY and MSG_CTRUNC to msg_flags
170 + added SO_BSDCOMPAT and SO_REUSEPORT to sockoptions
171 + added IP, IPX and TCP-options
172 + added IP, IPX and TCP support to get-/setsockopt()
173 + added IPX support
174 + updated handling of signals
175
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000176Sun Oct 27 22:28:00 1996 J. Richard Sladkey <jrs@world.std.com>
177
178 * util.c (umovestr) [LINUX]: Handle Linux like SunOS4
179 instead of SVR4. That is, read a few bytes at a time
180 to avoid overrunning the end of the stack.
181
182Fri May 31 01:48:49 1996 J. Richard Sladkey <jrs@world.std.com>
183
184 * version.c: Version 3.1 is released.
185
186Thu May 23 01:04:43 1996 J. Richard Sladkey <jrs@world.std.com>
187
188 * aclocal.m4 (AC_DECL_SYS_ERRLIST): Try looking in stdio.h
189 as well since that's where glibc declares it. Go figure.
190 * signal.c (sys_sigreturn) [ALPHA]: Use sigcontext
191 instead of sigcontext_struct since glibc v5+ apparently
192 plays games with the native OS namespace.
193 From David Mosberger-Tang <davidm@AZStarNet.com>.
194
195Mon May 20 23:17:14 1996 J. Richard Sladkey <jrs@world.std.com>
196
197 * version.c: Version 3.0.14 is released.
198
199 * aclocal.m4 (AC_STRUCT_MSG_CONTROL): New macro.
200 * configure.in: Add call to AC_STRUCT_MSG_CONTROL.
201 * net.c (printmsghdr): Handle BSD 4.3 and 4.4 msghdr members
202 differently.
203 Reported by Henrik Storner <storner@osiris.ping.dk>.
204
205 * configure.in: (AC_CHECK_{HEADERS,FUNCS}): Add checks for
206 sys/filio.h and sys/stream.h and remove check for poll.
207 * desc.c (decode_select, sys_select, sys_oldselect) [LINUX]:
208 Handle old and new styles of argument passing for select on Linux.
209 * ioctl.c, stream.c: Conditionalize stream code on presence of
210 sys/stream.h instead of poll because glibc implements poll but
211 not the rest of the stream interface.
212 * signal.c [LINUX]: Standardize on the name sigcontext_struct.
213 (sys_sigprocmask) [ALPHA]: Handle OSF flavor which is more like
214 sigsetmask.
215 * term.c (term_ioctl): Use _VMIN, if present, for TC{G,S}ETA*.
216 * util.c (umoven, umovestr): Move data in long-sized chunks
217 at a time, instead of hard coding it to be 4.
218 From David Mosberger-Tang <davidm@AZStarNet.com>.
219
220Mon May 20 01:19:36 1996 J. Richard Sladkey <jrs@world.std.com>
221
222 * version.c: Version 3.0.13 is released.
223
224 * configure.in (AC_CHECK_HEADERS): Add check for asm/sigcontext.h.
225 * signal.c [HAVE_ASM_SIGCONTEXT_H]: Conditionally include
226 asm/sigcontext.h to define sigcontext_struct and don't define it
227 locally if the header is present.
228
229 * syscall.c (nerrnos{0,2}): Correct size computation.
230
231 * Makefile.in: Remove dependencies and rules relating to files
232 normally found in the os directory. Because of the new scheme we
233 don't know precisely where they come from. Sigh.
234 * signalent.sh: Make it work for sunos4, linux, and svr4.
235 * {sunos4,linux{,/alpha},svr4}/Makefile.in: Make rules correspond
236 to traditional make syntax. Add signalent.h to files which can
237 unconditionally be rebuilt. Prevent signalent.h from being
238 unconditionally being rebuilt since it's customized.
239 * {sunos4,linux{,/alpha},svr4}/{ioctlent,errnoent,signalent}.h:
240 Use versions built by {ioctlent,errnoent,signaltent}.sh.
241 * sunos4/ioctlent.sh: Work around sprintf troubles with SunOS
242 4.1.4 and gcc 2.7.2.
243
244Sun May 19 17:14:09 1996 J. Richard Sladkey <jrs@world.std.com>
245
246 * configure.in, Makefile.in: Add OSARCH concept to finish
247 build support for the alpha.
248 * Makefile.in, linux/Makefile.in: Rewrite clean, distclean,
249 and maintainer-clean rules.
250 * defs.h, ioctlsort.c: Make ioctl code member unsigned.
251 * ioctl.c, ioctlsort.c (compare): Perform explicit checking
252 for less, greater, and equal since subtraction on two's
253 complement numbers isn't an order relation (it isn't transitive)!
254 * linux/Makefile.in: Add rules for the signalent.h file.
255 * linux/alpha/Makefile.in: New file.
256
257Sun May 19 01:12:28 1996 J. Richard Sladkey <jrs@world.std.com>
258
259 * version.c: Version 3.0.12 is released.
260
261 * linux{,alpha}/ioctlent.sh: Tweak for recent kernels.
262 From Michael E Chastain <mec@duracef.shout.net>.
263
264 * defs.h (SUPPORTED_PERSONALITES, DEFAULT_PERSONALITY): New.
265 * syscall.c (set_personality): New.
266 * strace.c (main): Call set_personality.
267 * defs.h, syscall.c, ioctl.c, signal.c: Make sysent, errnoent,
268 ioctlent, and signalent indirect pointers and redirect them
269 based on personality.
270 * {sunos4,svr4,linux{,/alpha}}/signalent.h: New files.
271 Suggested by Tom Dyas <tdyas@eden.rutgers.edu>.
272
273 * util.c (upeek): Handle case where ptrace returns a long
274 and sizeof(long) != sizeof(int).
275 From Richard Henderson <richard@twiddle.tamu.edu>
276
277Fri May 17 21:03:36 1996 J. Richard Sladkey <jrs@world.std.com>
278
279 * version.c: Version 3.0.11 is released.
280
281 * many files: Fix more printf warnings for other platforms.
282
283 * ipc.c (sys_msgrcv) [LINUX]: Conditionalize definition of ipc_wrapper.
284
285 * linux/dummy.h: Handle missing library support for {send,recv}msg.
286 Reported by Thomas Bogendoerfer <tsbogend@bigbug.franken.de>.
287
288 * linux/syscall.h (sys_utimes): Fix a typo in the declaration.
289 From Thomas Bogendoerfer <tsbogend@bigbug.franken.de>.
290
291Fri May 17 00:50:06 1996 J. Richard Sladkey <jrs@world.std.com>
292
293 * version.c: Version 3.0.10 is released.
294
295 * Makfile.in: Add os/arch to includes so that a given arch
296 (like alpha) can override the native arch (like i386).
297 * configure.in: Check for sendmsg.
298
299 * net.c: Make sendmsg and recvmsg dependent on an autoconf
300 test. Reported by Michael E Chastain <mec@duracef.shout.net>.
301
302 * acconfig.h, configure.in: Detect the alpha.
303 * ioctl.c: Handle the alpha.
304 * defs.h: Make some members long for the alpha. Define
305 some register nicknames. Add support for WAITEXECVE.
306 * file.c [ALPHA]: Support the alpha for statfs. Add
307 osf_statfs and osf_fstatfs for the alpha. Make damn sure
308 major and minor results are suitable for passing to printf.
309 * signal.c, syscall.c: Support the alpha.
310 * process.c: Add alpha user offsets.
311 * most files: Use %l? for printf arguments since
312 most are now longs for the alpha.
313 * linux/alpha/{errnoent.h,ioctlent.{h,sh},syscallent.h}:
314 New for the alpha.
315 From Thomas Bogendoerfer <tsbogend@bigbug.franken.de>.
316
317Wed May 15 00:29:37 1996 J. Richard Sladkey <jrs@world.std.com>
318
319 * version.c: Version 3.0.9 is released.
320
321 * config.in, config.sub, install-sh: Upgrade to autoconf 2.10.
322
323 * linux/dummy.h, linux/syscallent.h, linux/syscall.h: Add recent
324 Linux kernel version system calls.
325
326Wed Mar 13 01:03:38 1996 J. Richard Sladkey <jrs@world.std.com>
327
328 * ipc.c [SUNOS4]: Add SunOS support for decoding IPC calls.
329 * syscall.c [SUNOS4]: Compile decode_subcall on SunOS and
330 decode IPC calls using it.
331 * sunos4/dummy.h: Alias sys_semop to printargs.
332 * sunos4/syscall.h: Add new pseudo syscalls for IPC.
333 * sunos4/syscallent.h: Include new subcalls for IPC.
334 From Matthias Pfaller <leo@dachau.marco.de>.
335
336Tue Feb 13 22:08:25 1996 J. Richard Sladkey <jrs@world.std.com>
337
338 * version.c: Version 3.0.8 is released.
339
340 * time.c [LINUX]: Explicitly include linux/version.h.
341
342 * strace.c (main): Don't let them even *try* to
343 get strace to attach to itself since some systems
344 don't handle this case very gracefully.
345 Reported by David S. Miller <davem@caip.rutgers.edu>.
346
347 * Makefile.in (distclean): Fix it for subdirectories.
348
349 * sunos4/syscallent.h, svr4/syscallent.h: Fill in the new
350 sys_flags member for each defined system call.
351
352Fri Dec 8 01:17:28 1995 Rick Sladkey <jrs@world.std.com>
353
354 * defs.h (TRACE_*): New flags to describe what class
355 of system call each system call is.
356 (sysent): Add sys_flags member.
357 * syscall.c (sysent): Define (and later undef) abbreviations
358 for the system call class flags.
359 (lookup_class): New function to translate strings to
360 system call class flags.
361 (qualify): Handle new system call class mechanism.
362 * linux/syscallent.h: Fill in the new sys_flags member
363 for each defined system call.
364
365 * defs.h (print_sock): Remove redundant and non-K&R C
366 compatible prototype. From Juergen Weigert
367 <jnweiger@immd4.informatik.uni-erlangen.de>.
368
369Thu Dec 7 01:17:40 1995 Rick Sladkey <jrs@world.std.com>
370
371 * linux/ioctlent.sh: Tweak to improve ioctl accuracy.
372 From Michael E Chastain <mec@duracef.shout.net>.
373
374 * system.c (includes) [LINUX]: Add linux/nfs.h for recent
375 kernels. From Michael E Chastain <mec@duracef.shout.net>.
376
377Wed Dec 6 21:52:28 1995 Rick Sladkey <jrs@world.std.com>
378
379 * file.c (sprintfstype): Enclose string result in double
380 quotes.
381
382 * time.c (sys_adjtimex) [LINUX]: Conditionalize
383 constantly evolving timex structure.
384 From Aaron Ucko <UCKO@VAX1.ROCKHURST.EDU>.
385
386 * defs.h, syscall.c, strace.c: Rename syscall to
387 trace_syscall and change prototype and all callers
388 because of broken Linux shared libraries.
389 From Aaron Ucko <UCKO@VAX1.ROCKHURST.EDU>.
390
391 * Makefile.in (clean): Check for a file with test -f not
392 test -d. From Aaron Ucko <UCKO@VAX1.ROCKHURST.EDU>.
393
394Tue Sep 26 02:32:31 1995 Rick Sladkey <jrs@world.std.com>
395
396 * version.c: Version 3.0.7 is released.
397
398 * util.c (string_quote): Fix thinko which caused core
399 dumps for strings with quotes in them.
400 Reported by Marty Leisner <leisner@sdsp.mc.xerox.com>.
401
402 * linux/Makefile.in (errnoent.h rule): Grab all errno.h
403 files from /usr/include, not just the linux one.
404 From Michael E Chastain <mec@duracef.shout.net>.
405
406 * linux/errnoent.sh: Total rewrite to handle more ioctls with
407 fewer false positives on more kernel flavors.
408 From Michael E Chastain <mec@duracef.shout.net>.
409
410Mon Sep 4 01:29:22 1995 Rick Sladkey <jrs@world.std.com>
411
412 * version.c: Version 3.0.6 is released.
413
414 * linux/dummy.h, linux/syscall.h, linux/syscallent.h: Add
415 sys_msync.
416 * mem.c (mctl_funcs, mctl_lockas, sys_mctl): Conditionalize
417 on MC_SYNC instead of HAVE_MCTL.
418 (mctl_sync): Conditionalize on MS_ASYNC instead of HAVE_MCTL.
419 (sys_msync): New function.
420
421Sat Sep 2 12:06:04 1995 Rick Sladkey <jrs@world.std.com>
422
423 * linux/dummy.h, linux/syscall.h, linux/syscallent.h: Add
424 sys_flock and sys_getdents.
425 * desc.c (flockcmds, sys_flock): Conditionalize on LOCK_SH
426 not SUNOS4.
427 * file.c (sys_getdents): Define unconditionally and handle
428 LINUX case.
429 * strace.c (main): Disallow username option unless both real
430 and effective uids are root.
431
432Wed Aug 30 01:29:58 1995 Rick Sladkey <jrs@world.std.com>
433
434 * strace.c (main): Ensure that run_uid and run_gid are
435 always set to something meaningful.
436 (main, newoutf) [!SVR4]: Swap real and effective uids while
437 opening any output files.
438 (main) [!SVR4]: Treat effective uid of root as a request
439 to handle suid binaries correctly using the real uid of
440 the invoking user.
441
442Sat Aug 19 00:06:08 1995 Rick Sladkey <jrs@world.std.com>
443
444 * Makefile.in: Add `|| true' to clean rule because
445 although GNU make 3.74 uses `sh -c' to invoke commands
446 every other make in the world uses `sh -ec'.
447
448 * syscall.c (syscall) [SVR4, MIPS]: The fifth and subsequent
449 arguments appear to be stored on the stack, not in the
450 registers following A3 (empirical result).
451
452 * defs.h: Add prototype for printsock.
453 * svr4/dummy.h: Remove generic handling of sys_mount.
454 * system.c [SVR4, MIPS]: Include several system headers to cleanly
455 get access to SGI mount information.
456 (mount_flags, nfs_flags) [SVR4, MIPS]: New objects.
457 (sys_mount) [SVR4, MIPS]: New function.
458 (sys_mount) [SVR4, !MIPS]: New function.
459
460Tue Jul 4 00:30:34 1995 Rick Sladkey <jrs@world.std.com>
461
462 * version.c: Version 3.0.5 is released.
463
464 * desc.c, resource.c, strace.c, syscall.c, time.c: Cast tv_sec and
465 tv_usec members to long when using printf.
466
467 * ipc.c: Omit define of __KERNEL__.
468 ({MSG,SEM,SHM}_{STAT,INFO}): Explicitly define those things we
469 want which __KERNEL__ used to provide.
470 (sys_msgrcv): Change reference to ipc_kludge structure to
471 look-alike ipc_wrapper to avoid dependence on __KERNEL__.
472
473 mem.c (mmap_flags) [MAP_{GROWSDOWN,DENYWRITE,EXECUTABLE}]: Add
474 Linux specific options.
475
476 syscall.c: Use SYS_ERRLIST_DECLARED instead of guessing.
477 [E{RESTART{SYS,NO{INTR,HAND}},NOIOCTLCMD}]: Explicitly define
478 instead of depending of __KERNEL__.
479
480 term.c: Cast c_{i,o,c,l}flag to long when using printf.
481
482Tue Jun 6 00:27:48 1995 Rick Sladkey <jrs@world.std.com>
483
484 * aclocal.m4 (AC_DECL_SYS_ERRLIST, AC_DECL__SYS_SIGLIST): New.
485 * configure.in: Call AC_DECL_SYS_ERRLIST, AC_DECL_SYS_SIGLIST,
486 and AC_DECL__SYS_SIGLIST.
487 * acconfig.h (SYS_ERRLIST_DECLARED): New.
488 * strace.c (strerror): Use SYS_ERRLIST_DECLARED.
489 (strsignal): Use SYS_SIGLIST_DECLARED.
490
491 net.c (sys_socket): Omit inadvertent surplus comma when
492 protocol family isn't PF_INET.
493
494 util.c (dumpstr): Fix incorrect printing of one too many
495 characters when the length is not an even multiple of 16 bytes.
496 Reported by Juergen Weigert
497 <jnweiger@immd4.informatik.uni-erlangen.de>.
498
499Thu May 4 23:37:47 1995 Rick Sladkey <jrs@world.std.com>
500
501 * ioctl.c (compare): Change prototype to match POSIX qsort.
502 * signal.c (sigishandled) [SVR4]: Omit everything after return.
503 * strace.c (trace) [SVR4]: Break out of for loop instead of
504 returning when finished so final return statement is executed.
505 * syscall.c (internal_syscall): Add more SYS_wait* variations.
506 (syscall) [LINUX]: Correct typo which commented out the M68K
507 argument to ifdef.
508 * util.c (printstr): Cast unsigned char pointer argument
509 to char pointer in umovestr call.
510 (dumpstr): Likewise for umoven.
511
512Wed May 3 01:10:56 1995 Rick Sladkey <jrs@world.std.com>
513
514 * version.c: Version 3.0.4 is released.
515
516 * signal.c (sys_sigblock): Move after the definition of
517 sys_sigsetmask that it calls to avoid an implicit declaration.
518 * stream.c (transport_user_options, transport_server_options):
519 Only needed if TI_BIND is defined.
520 * configure.in: Add -Wno-implicit to WARNFLAGS on SunOS 4.x.
521
522 * process.c (internal_fork) [SVR4]: Fix a typo that omitted
523 the tcp arguement from the call to exiting. Add getrval2
524 check so no fork processing is done in the child.
525 (printwaitn): Initialize exited so that its value is defined
526 for all flows of execution.
527
528Tue May 2 22:39:42 1995 Rick Sladkey <jrs@world.std.com>
529
530 * linux/dummy.h: Add aliases for sysfs, personality, afs_syscall,
531 setfsuid, setfsgid, and _llseek syscalls.
532 * linux/syscall.h: Add prototypes for them.
533 * linux/syscallent.h: Add them to the syscall entries table.
534 * system.c (headers) [LINUX]: Include linux/unistd.h to get __NR_*
535 defines and conditionally include linux/personality.h if
536 __NR_personality is defined.
537 (personality_options) [LINUX]: New table.
538 (sys_personality) [LINUX]: New function.
539
540Tue May 2 00:20:39 1995 Rick Sladkey <jrs@world.std.com>
541
542 * strace.c (trace) [!SVR4]: Change forever loop to one predicated
543 on the number of traced processes so that we can have untraced
544 children (e.g. via popen).
545
546 * strace (main) [!SVR4]: Call fake_execve to get the actual
547 exec and its arguments into the trace.
548 (environ): Declare it.
549 * process.c (fake_execve): New function.
550 (headers): Include sys/syscall.h to get SYS_* defines.
551
552 * process.c (sys_execv, sys_execve): Surround argument annotations
553 with C comment delimiters.
554 (printargv, printargc): The arg vector is an array of char pointers
555 not ints.
556
557 * strace.c (printleader): Also check for multiple -p arguments
558 when deciding whether to print the pid field.
559
560 * strace.c (strerror) [!HAVE_STRERROR]: New function.
561 * defs.h (strerror, strsignal): Add these prototypes if we provide
562 the functions.
563 * configure.in (AC_CHECK_FUNCS): Add strerror.
564
565 * strace.c (main, proc_poller): Add SIGPIPE to the list of caught
566 and blocked signals.
567
568 * strace.c (main): Add username option. Verify they are root before
569 letting them use it. Look up the ids in the password file. Set
570 them just before executing the program.
571 From Reuben Sumner <rasumner@undergrad.math.uwaterloo.ca>.
572
573Sat Apr 29 00:09:56 1995 Rick Sladkey <jrs@world.std.com>
574
575 * version.c: Version 3.0.3 is released.
576
577 * system.c (mount_flags) [LINUX]: Omit duplicated MS_NOSUID entry.
578 From Reuben Sumner <rasumner@undergrad.math.uwaterloo.ca>.
579
580 * strace.c (outfname): Initialize to NULL.
581 (main): Defer output file processing until after arguments.
582 Allow either a pipe or a bang for command arguments.
583 Check if outfname is NULL instead of checking outf for stderr.
584 Reinitialize each startup TCB's outf to fix -p/-o ordering bug.
585 (droptcb): Reset close TCB's outf to NULL instead of stderr.
586 (tprintf): Avoid calling vfprintf if outf is NULL.
587
588 * strace.c (main): Use popen if -o argument begins with a pipe.
589 From Marty Leisner <leisner@sdsp.mc.xerox.com>.
590
591 * process.c (printstatus): Fix a typo where WIFSIGNALED was meant
592 but WIFSTOPPED was used.
593
594 * Makefile.in: Add an EXTRA_DEFS variable and use it in the .c.o
595 rule to prevent the comment from being untrue.
596
597Fri Apr 28 22:01:56 1995 Rick Sladkey <jrs@world.std.com>
598
599 * strace.c (sys_exit): Move follow fork code to internal_exit.
600 (sys_fork): Move follow fork code to internal_fork.
601 (sys_execv, sys_execve): Move follow fork code to internal_exec.
602 (sys_waitpid, sys_wait4): Move follow fork code to internal_wait.
603 (vforking): Remove this static variable and check scno in
604 internal_fork instead.
605 (internal_exit, internal_fork, internal_exec, internal_wait): New
606 functions.
607 * defs.h: Add prototypes for the new internal_* functions.
608 * syscall.c (syscall): Move syscall entering trace qualifier check
609 and reprint checking after context decoding and precede them with
610 a call to internal_syscall. Precede syscall exiting trace
611 qualifier check with a call to internal_syscall.
612 (internal_syscall): New function.
613
614 * defs.h (struct tcb): Make scno signed.
615 * strace.c (syscall) Make u_error signed.
616 [LINUX, I386]: Avoid unsigned cast in eax check.
617 * syscall.c (sys_indir): Make i, scno, and nargs signed.
618 * desc.c (sys_select): Make cumlen unsigned
619
620Mon Apr 24 23:52:47 1995 Rick Sladkey <jrs@world.std.com>
621
622 * net.c (socktypes): Add SOCK_PACKET.
623
624Sun Apr 2 23:50:39 1995 Rick Sladkey <jrs@world.std.com>
625
626 * Makefile (clean): Check explicitly for a Makefile in subdirs
627 before running make in them.
628
629Sun Mar 26 12:37:21 1995 Rick Sladkey <jrs@world.std.com>
630
631 * strace.c [MIPS] (proc_open): Conditionalize run on MIPS.
632 [MIPS] (detach): Initialize error for MIPS case.
633 (trace): Initialize ioctl_result and ioctl_errno for overly helpful
634 compilers.
635 * syscall.c (decode_subcall): Move variable i into conditionals
636 that use use it.
637 * system.c (syssgi_options): Conditionalize SGI_RECVLMSG and
638 SGI_SET_FPDEBUG that SGI decided to drop. I don't have the stomach
639 to change them all.
640 * term.c (term_ioctl): Force [c_[iocl]flags members to long before
641 printing since we don't know what the size of their type is.
642 * util.c [SVR4, MIPS] (umoven): Prevent MIPS from using pread even
643 if autoconf detects it since it seems to either not work or do
644 something else entirely on Irix 5.3.
645
646Sun Mar 26 00:01:11 1995 Rick Sladkey <jrs@world.std.com>
647
648 * version.c: Version 3.0.2 is released.
649 * linux/dummy.h: Make sys_fchdir like sys_close instead of printargs
650 so that the file descriptor arg is decimal.
651
652Sat Mar 25 22:50:13 1995 Rick Sladkey <jrs@world.std.com>
653
654 * net.c [LINUX] (protocols): Explicitly define all IPPROTO_* entries
655 because on Linux they are enumerators.
656
657 * system.c [LINUX] (mount_flags): Handle renaming of MS_SYNC to
658 MS_SYNCHRONOUS.
659
660 * util.c (printxval): When there is no translation, print the actual
661 number first and the the default value as a C comment.
662
663 * net.c (sys_send, sys_sendto, sys_sendmsg, sys_getsockopt,
664 sys_setsockopt): Change first argument from unsigned to signed to
665 cater to the frequent practice of calling system calls with a file
666 descriptor of -1.
667 * mem.c (sys_mmap): Likewise.
668
669Sun Mar 19 13:53:52 1995 Rick Sladkey <jrs@world.std.com>
670
671 * signal.c [LINUX] (signalent): Handle old and new values of SIGIO.
672
673Sun Dec 11 22:51:51 1994 Rick Sladkey <jrs@world.std.com>
674
675 * version.c: Version 3.0.1 is released.
676 * Makefile.in, configure.in, aclocal.m4: Changes for autoconf 2.0.
677 * config.guess, config.guess: Update from the FSF.
678 * install-sh: New from the FSF.
679
680Mon Dec 5 20:51:29 1994 Rick Sladkey <jrs@world.std.com>
681
682 * Makefile.in: Add m68k arch.
683 * acconfig.h (M68K): Add m68k define.
684 * configure.in: Add detection of arch m68k.
685 * process.c [M68K] (struct_user_offsets): Support m68k registers and
686 offsets.
687 * signal.c [M68K] (sigcontext_struct): Support m68k sigcontext
688 structure.
689 [M68K] (sys_sigreturn): Support m68k sigreturn handling.
690 * syscall.c [M68K] (syscall): Support m68k syscall number register
691 and errno in d0 instead of eax.
692 * util.c [M68K] (getpc, printcall, setbpt, clearbpt): Support m68k
693 program counter in PT_PC instead of EIP.
694 [M68K] (LOOP): Support m68k loop instruction.
695 From Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.
696
697 * mem.c [MAP_ANONYMOUS] (mmap_flags): Correct inadvertent reference
698 to MAP_FIXED instead of MAP_ANONYMOUS.
699 From Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.
700
701 * signal.c [LINUX] (signalent): Signal 30 is now SIGPWR.
702 From Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.
703
704Mon Dec 5 01:05:46 1994 Rick Sladkey <jrs@world.std.com>
705
706 * defs.h (tprintf): Fix typo in non-gcc ansi prototype for tprintf.
707 Reported by Thanh Ma <tma@encore.com>.
708
709 * strace.c (cleanup): Send SIGCONT before SIGTERM because Linux
710 1.1.62 doesn't continue a traced child when the parent exits.
711 Reported by Matt Day <mday@artisoft.com>.
712
713 * system.c [LINUX]: Include netinet/in.h before arpa/inet.h.
714
715 * util.c (printstr): Fix longstanding bug in notating string
716 continuation.
717
718 * strace.c [SVR4] (proc_open): Specifically wait for the child the
719 child to go into the execve syscall to avoid spurious traces.
720 [LINUX] (detach): Conditionalize the status variable.
721
722Sun Dec 4 23:21:42 1994 Rick Sladkey <jrs@world.std.com>
723
724 * Makefile.in: Add mips arch.
725 * acconfig.h (MIPS): Add mips define.
726 * configure.in: Add detection of opsys irix5 and arch mips. Check
727 for prctl function.
728 Check for sys/sysconfig.h header.
729 * defs.h (MAX_ARGS): Bump maximum syscall arguments from 8 to 32.
730 * file.c [SVR4]: Include sys/cred.h.
731 (access_flags): Update access flags for SGI.
732 (sprinttime): Change type of sprinttime argument from unsigned
733 long to time_t.
734 * process.c [HAVE_PRCTL]: Include sys/prctl.h.
735 [HAVE_PRCTL] (prctl_options, sys_prctl): New for SGI.
736 (printsiginfo): Conditionally compile SI_TIMER and SI_MESGQ.
737 Cast si_band member to long before printing.
738 * signal.c (sigact_flags): Add _SA_BSDCALL for SGI.
739 (sigprocmaskcmds): Add SIG_SETMASK32 for SGI.
740 * strace.c [SVR4] [MIPS]:
741 (foobar): New dummy signal handler.
742 (main): Install a dummy signal handler in the child before pausing
743 to work around an SGI bug in PRSABORT.
744 (proc_open): Send a interrupt to the child instead of aborting the
745 syscall which doesn't work on Irix5.2.
746 * svr4/dummy.h: Add new unfinished SGI syscalls
747 (e.g. sys_sysmp, sys_sginap, etc.). Handle some SGI syscalls like
748 existing calls (e.g. sys_ksigaction like sys_sigaction).
749 Printargs does the print thing for sys_sethostid.
750 * svr4/syscall.h: Declare all new SGI syscalls.
751 (SGI_KLUDGE): Define syscall table starting index to be 1 for SGI
752 and add it to all subcall entry points.
753 (SYS_pgrpsys_subcall, SYS_sigcall_subcall, SYS_context): Don't
754 decode as subcalls on MIPS. Instead, use the normal syscalls.
755 * svr4/syscallent.h [MIPS]: Lead syscall table with a dummy entry
756 since SGI syscall numbers are off by one.
757 [MIPS] (sys_pgrpsys): Rename to sys_setpgrp on SGI.
758 [MIPS] (sys_xenix): Rename to sys_syssgi on SGI.
759 [MIPS] (sys_sysmachine): Rename to sys_sysmips on SGI.
760 [MIPS]: Conditionalize SVR4 extension into SGI and Solaris classes.
761 * syscall.c (dumpio): Validate descriptor against MAX_QUALS.
762 [HAVE_PR_SYSCALL] (syscall): Conditionalize SYS_vfork.
763 [MIPS] (syscall): Add SGI section for decoding u_error and u_rval.
764 Add workaround for broken SGI pr_sysarg on syscall entry.
765 [SVR4] (syscall): Conditionalize subcall decoding for
766 SYS_ptrpsys_subcall, SYS_sigcall_subcall and SYS_context_subcall.
767 [SVR4] [MIPS] (getrval2): Handle SGI.
768 * syscallent.sh: Dork the sed line to be choosier about SYS_ lines.
769 * system.c [HAVE_SYSCONFIG_H]: Include sys/sysconfig.h.
770 [MIPS] (syssgi_options, sys_syssgi): New for SGI.