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