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