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