blob: 1d8c272c184e79096273fc0426e78d4499176a4f [file] [log] [blame]
John Hughes8e075fb2001-03-27 13:57:48 +000012001-03-27 John Hughes <john@Calva.COM>
2
3 * svr4/syscallent.h: ntp_adjtime entry was duplicated on Solaris
4 systems - bad merge of Harald Boehme's patch by me.
5
Wichert Akkerman407be9a2001-03-19 10:56:49 +000062001-03-19 Wichert Akkerman <wakkerma@debian.org>
7
8 * linux/mips/syscallent.h: we can't have -1 nargs, change to 0
Wichert Akkermane3bf56a2001-03-19 11:05:17 +00009 * linux/syscallent.h: not that syscalls 220 and 221 are used now
Wichert Akkerman6f2bbe22001-03-19 11:00:29 +000010 * config.guess: updated
Wichert Akkerman407be9a2001-03-19 10:56:49 +000011
Wichert Akkermana9667852001-03-17 17:26:34 +0000122001-03-17 Wichert Akkerman <wakkerma@debian.org>
13
14 * linux/ioclsort.c: new file
15 * linux/ioctlent.sh: complete rewrite to use a more sane approach to get
16 the ioctl list that doesn't involve attempting to #include all kernel
17 headers
18 * linux/.cvsignore: added ioctdefs.h and ioctls.h which are generated
19 by the new ioctlent.sh
20 * ioctl.c: only look at the number and type bits for linux, since
21 ioctlent.sh no longer supplies the others
22
John Hughes70623be2001-03-08 13:59:00 +0000232001-03-08 John Hughes <john@Calva.COM>
24
John Hughescf1de752001-03-08 17:27:20 +000025 * freebsd/syscalls.pl: On FreeBSD we must cope with COMPATibility syscalls,
26 pretend they have names ending with "?" so that -e trace=stat (for
27 example) will work.
28 * freebsd/i386/syscallent.h: add ? to compatability syscalls.
29 * freebsd/i386/syscall.h: consistency.
30
312001-03-08 John Hughes <john@Calva.COM>
32
John Hughesc0fc3fd2001-03-08 16:10:40 +000033 * acconfig.h: add new ST_xxx defines.
34 * aclocal.m4: macros to check for more fields in struct stat.
35 * configure.in: use new macros to check for fields in struct stat.
36 * file.c: use new defines to replace #ifdef FREEBSD by #if HAVE_ST_xxx.
37
382001-03-08 John Hughes <john@Calva.COM>
39
John Hughes0c79e012001-03-08 14:40:06 +000040 * defs.h: rename wimpy get64 as powerful new LONG_LONG
41 * file.c: use LONG_LONG
42 * io.c: use LONG_LONG
43 * mem.c use LONG_LONG
44
452001-03-08 John Hughes <john@Calva.COM>
46
John Hughes70623be2001-03-08 13:59:00 +000047 * acconfig.h: new #defines HAVE_LONG_LONG_OFF_T and HAVE_LONG_LONG_RLIM_T.
48 * aclocal.m4: routines to check for long long off_t and rlim_t.
49 * configure.in: check for long long off_t and rlim_t.
50 * desc.c: if HAVE_LONG_LONG_OFF_T treat flock as flock64
51 * file.c: if HAVE_LONG_LONG_OFF_T treat stat,lstat,fstat and lseek as 64
52 bit versions.
53 * io.c: if HAVE_LONG_LONG_OFF_T use 64 bit versions of pread and pwrite.
54 * mem.c: if HAVE_LONG_LONG_OFF_T use 64 bit version of mmap
55 * resource.c: if HAVE_LONG_LONG_OFF_T use 64 bit versions of getrlimit
56 and setrlimit.
57 * freebsd/syscalls.print: don't explicitly use 64 bit versions of calls,
58 now done automaticaly for us.
59 * freebsd/i386/syscall.h: ditto.
60 * freebsd/i386/syscallent.h ditto.
61
John Hughes5a826b82001-03-07 13:21:24 +0000622001-03-07 John Hughes <john@Calva.COM>
63
John Hughesb8c9f772001-03-07 16:53:07 +000064 * desc.c: On FreeBSD flock structure uses 64 bit offsets.
65 * file.c: On FreeBSD use stat64 and pals instead of stat.
66 * freebsd/syscalls.print: use stat64, lstat64 and fstat64.
67 * freebsd/i386/syscall.h: ditto.
68 * freebsd/i386/syscallent.h: ditto.
69
702001-03-07 John Hughes <john@Calva.COM>
71
John Hughese2f6d872001-03-07 16:03:20 +000072 * file.c: merge missing part of Harald Böhme's solaris patches,
73 was only declaring sys_{stat64,lstat64,fstat64} on linux!
74
752001-03-07 John Hughes <john@Calva.COM>
76
John Hughes9dec06c2001-03-07 14:47:19 +000077 * svr4/dummy.h: fix multiple define warning on non LFS64 systems.
78 * svr4/syscallent.h: pread/pwrite are TF calls.
79
802001-03-07 John Hughes <john@Calva.COM>
81
John Hughes5a826b82001-03-07 13:21:24 +000082 * defs.h: add ALIGN64 macro to cope with FreeBSD's strange insistence
83 on alignment for off_t (64 bit) arguments. Also simplify get64 so
84 we don't need to know endianness of long long.
85 * file.c: FreeBSD now uses 64 bit versions of lseek, truncate,
86 ftruncate, allows reduction in numvber of horrid #if's
87 * io.c: FreeBSD now uses 64 bit versions of pread, pwrite.
88 * mem.c: FreeBSD now uses 64 bit version of mmap.
89 * freebsd/syscalls.print: use 64 bit versions of various syscalls.
90 * freebsd/i386/syscall.h: use 64 bit versions of various syscalls.
91 * freebsd/i386/syscallent.h: use 64 bit versions of various syscalls.
92
John Hughes95ea9c02001-03-07 10:11:02 +0000932001-03-06 John Hughes <john@Calva.COM>
94
John Hughes7737c8a2001-03-07 10:41:58 +000095 * file.c: Implement truncate64 and ftruncate64
96 * svr4/dummy.h: add dummies for truncate64 and ftruncate64 for non
97 LFS64 systems.
98 * svr4/syscall.h: add declarations for truncate64 and ftruncate64.
99
1002001-03-06 John Hughes <john@Calva.COM>
101
John Hughesc5249902001-03-07 10:39:06 +0000102 * freebsd/syscalls.pl: fix for FreeBSD 4.1 (new optional field in
103 syscall master file).
104
1052001-03-06 John Hughes <john@Calva.COM>
106
John Hughesbb557232001-03-07 10:37:38 +0000107 * syscall.c: fix for FreeBSD 4.1 (SYS_semconfig has disappeared). Also
108 zap incorrect syscall subarg range check.
109
1102001-03-06 John Hughes <john@Calva.COM>
111
John Hughescb8b69d2001-03-07 10:34:27 +0000112 * configure.in, defs.h, desc.c, file.c, io.c, mem.c, net.c, resource.c,
113 signal.c, syscall.c, svr4/dummy.h, svr4/syscall.h, svr4/syscallent.h:
114 merge Harald Böhme's solaris patches (_LFS64_LARGEFILE and kernel aio
115 mostly).
116
1172001-03-06 John Hughes <john@Calva.COM>
118
John Hughesbc4935a2001-03-07 10:28:50 +0000119 * dummy.h: add unimplemented UW sycalls
120 * syscall.h: we can do settimeofday for UW, whopee!
121 * syscallent.h: fix unimplemented UW syscalls
122
1232001-03-06 John Hughes <john@Calva.COM>
124
John Hughesc8f2e8a2001-03-07 10:26:17 +0000125 * aclocal.m4: look for pr_syscall in pr_lwp if we HAVE_MP_PROCFS
126 * defs.h: add PR_SYSCALL to allow use of pr_lwp.pr_syscall if it exists.
127 * syscall.c: use PR_SYSCALL instead of pr_syscall, fix up UnixWare code
128 so it doesn't try to use pr_sysarg.
129
1302001-03-06 John Hughes <john@Calva.COM>
131
John Hughes091fe832001-03-07 10:15:39 +0000132 * aclocal.m4: on systems other than linux look for stat64 in sys/stat.h
133 * file.c: handle xstat version _STAT64_VER, aka stat64.
134
1352001-03-06 John Hughes <john@Calva.COM>
136
John Hughes95ea9c02001-03-07 10:11:02 +0000137 * net.c: make sure SOL_ options are defined before using.
138 * signal.c: declare sigset variable, only used on linux, inside #ifdef.
139
Wichert Akkermanfa306182001-02-21 16:42:26 +00001402001-02-21 Wichert Akkerman <wakkerma@debian.org>
141
142 * net.c: fix format for printing Unix domain sockets
143
Wichert Akkerman0cbfb322001-02-19 13:35:53 +00001442001-02-19 Wichert Akkerman <wakkerma@debian.org>
145
146 * linux/mips/syscallent.h: use new sys_sysmips
147 * system.c: add sys_sysmips decoding
148
Wichert Akkerman8c7122c2001-02-16 19:59:55 +00001492001-02-16 Wichert Akkerman <wakkerma@debian.org>
150
Wichert Akkermanf1850652001-02-16 20:29:03 +0000151 * CREDITS: add Arkadiusz Miskiewicz <misiek@pld.org.pl> who
152 submitted the IP6 scope ID updates
153 * acconfig.h: add HAVE_SIN6_SCOPE_ID and HAVE_SIN6_SCOPE_ID_LINUX
154 * aclocal.m4: add AC_SIN6_SCOPE_ID to check if sin6_scope_id is
155 available
156 * configure.in: check for if_indextoname function and sin6_scope_id
157 * net.c: teach printsock about IP6 scope ids
158
1592001-02-16 Wichert Akkerman <wakkerma@debian.org>
160
Wichert Akkerman8c7122c2001-02-16 19:59:55 +0000161 * configure.in: test for netinet/tcp.h and netinet/udp.h existance
162 * net.c: include netinet/tcp.h and netinet/udp.h if they exist
Wichert Akkermanedf2dcc2001-02-16 20:14:40 +0000163 * Makefile.in: use @mandir@ and @bindir@
Wichert Akkerman8c7122c2001-02-16 19:59:55 +0000164
Wichert Akkermanefdecac2000-11-26 03:59:21 +00001652000-11-26 Wichert Akkerman <wakkerma@debian.org>
166
167 * net.c: fix formating error in sys_setsockopt
168 * net.c: add list of socketlayers and use that for [gs]etsockopt
169
Wichert Akkermand856b992000-10-13 12:47:12 +00001702000-10-12 Wichert Akkerman <wakkerma@debian.org>
171
172 * time.c: use sys/timex.h so things compile with 2.2 kernels
173 * stream.c: test if MSG_* constants are #defined
174
Wichert Akkerman9b0c31d2000-09-03 21:56:29 +00001752000-09-03 Wichert Akkerman <wakkerma@debian.org>
176
Wichert Akkermanefdecac2000-11-26 03:59:21 +0000177 * process.c: perform bpt trick for clone as well so we can get the
178 pid of the child before it starts doing something
179 * file.c: rename dirent64 struct to kernel_dirent64 so things compile
180 again with newer libcs
181 * test/clone.c: improve our testcase a bit
182 * Merge another patch from Gäel Roualland with FreeBSD updates
Wichert Akkerman9b0c31d2000-09-03 21:56:29 +0000183
Wichert Akkermanbf79f2e2000-09-01 21:03:06 +00001842000-09-01 Wichert Akkerman <wakkerma@debian.org>
185
Wichert Akkermanefdecac2000-11-26 03:59:21 +0000186 * lots of files: merge patch from Gaël Roualland to add
187 support for FreeBSD.
Wichert Akkermanbf79f2e2000-09-01 21:03:06 +0000188
Wichert Akkerman16a03d22000-08-10 02:14:04 +00001892000-08-09 Wichert Akkerman <wakkerma@debian.org>
190
Wichert Akkermand077c452000-08-10 18:16:15 +0000191 * file.c: update to reflect that st_ino suddenly became a long long
192 in the in Linux 2.4.0-test6
193
1942000-08-09 Wichert Akkerman <wakkerma@debian.org>
195
Wichert Akkerman16a03d22000-08-10 02:14:04 +0000196 * test/clone.c: minor fixup
197 * Another bunch of patches from John Hughes merged:
198 * signal.c:
199 + SVR4 printcontext(): sigset_t != sigset_t*
200 + getcontext returns a value, so print on exit of syscall
201 + add UC_FP to ucontext_flags for OS writers that can't spell
202 + sys_signal(): special case SIG_{ERR,DFL,IGN}
203 + decode_subcall(): only do subcall range checking when needed
204 * bunch of UnixWare updates
205 * aclocal.m4, acconfig.h, configure.in: add test for long long type
206
Wichert Akkerman7987cdf2000-07-05 16:05:39 +00002072000-07-04 Wichert Akkerman <wakkerma@debian.org>
208
209 * net.c: add SOL_PACKET and SOL_RAW socket options, update
210 SOL_IP and SOL_TCP
211
Wichert Akkermanbd4125c2000-06-27 17:28:06 +00002122000-06-23 Wichert Akkerman <wakkerma@debian.org>
213
214 * strace.c: close outf before we exec a child process
215
Wichert Akkerman43a74822000-06-27 17:33:32 +00002162000-06-09 Ulrich Drepper <drepper@redhat.com>
217
218 * configure.in: Don't link against libnsl on Linux, it's unnecessary.
219 * defs.h (struct tcb): Make auxstr member const.
220 * file.c (fsmagic): And many more magic numbers.
221 * util.c: Don't include <linux/ptrace.h> for glibc 2.1 and up.
222
Wichert Akkerman5ae21ea2000-05-01 01:53:59 +00002232000-04-26 Wichert Akkerman <wakkerma@debian.org>
224
225 * defs.h: balance #if/#endif again
226 * system.c: fix return statements in sys_capget()
227 * Merge updates from Topi Miettinen <Topi.Miettinen@nic.fi>:
228 + file.c: add F_[SG]ETSIG to fcntl flags
229 + strace.c: don't setre[gu]id if not needed
230 + system.c: handle sys_reboot for Linux
231 + term.c: add baudrate constants up to B4000000
232 + linux/**/syscallent.h: note that munlockall has no arguments
233
2342000-04-25 David Mosberger <davidm@hpl.hp.com>
235
236 * CREDITS: fix email address
237 * process.c: handle PR_[GS]ET_UNALIGN and PR_[GS]ET_KEEPCAPS
238 * signal.c: honour offset of sigconfig in sigframe structure for
239 Linux/ia64
240 * linux/ia64/syscallent.h: Add perfmonctl, pivotroot, mincore, and
241 madvise syscalls.
242 * syscall.c (syscall_enter): With Kevin's latest ptrace patches,
243 AR_BSP points to the _end_ of the active register frame, so we need
244 to adjust bsp by moving it back by the size of the active frame
245 before using it.
246
2472000-04-24 Wichert Akkerman <wakkerma@debian.org>
248
249 * process.c: add sparc support to change_syscall
250
Wichert Akkerman10dfa562000-04-22 18:26:56 +00002512000-04-22 Wichert Akkerman <wakkerma@debian.org>
252
253 * linux/mips/syscallent.h: fix some typos
254
Wichert Akkerman481e45b2000-04-17 07:42:31 +00002552000-04-14 Wichert Akkerman <wakkerma@debian.org>
256
257 * linux/mips/syscallent.h: added names for SVR4, SYSV, BSD4.3 and POSIX
258 syscalls
259
Wichert Akkermanfd89ced2000-04-13 17:06:09 +00002602000-04-13 Wichert Akkerman <wakkerma@debian.org>
261
262 * defs.h: Linux/MIPS uses syscalls up to >4k, so set MAX_QUALS to
263 4999
264
Wichert Akkermanc7926982000-04-10 22:22:31 +00002652000-04-09 Wichert Akkerman <wakkerma@debian.org>
266
267 * README-linux: updated to note that strace might not compile
268 with development kernels
269 * bjm.c: sys_query_module: check if malloc succeeds
270 * system.c: sys_cap[gs]et(): check if malloc succeeds, only malloc once
271 * linux/syscallent.h: updated for 2.3.99pre3
272 * linux/alpha/syscallent.h: updated for 2.3.99pre3, add all osf syscalls
273 even though Linux doesn't implement them
274 * syscall.c: add global variables for MIPS registers as well
275 * syscall.c: move global variables to before get_scno since that uses them
276 * util.c: oops, misspelled defined
277 * process.c: fix ptrace calls in change_syscall
278 * mem.c: decode sys_madvise
279 * Merge patch from Topi Miettinen <Topi.Miettinen@nic.fi>
280 + add support for quotactl, fdatasync, mlock, mlockall, munlockall & acct
281 + small fix for RLIMIT_* and RUSAGE_BOTH
282 + enhace support for capget and capset
283
Wichert Akkermanfaf72222000-02-19 23:59:03 +00002842000-02-19 Wichert Akkerman <wakkerma@debian.org>
285
286 * test/vfork.c: new file to test vfork traces
287 * test/.cvsignore: new file
288 * defs.h: Up maximum number of traced processed to 64
289 * strace.c: Disable some debugging code from davidm
290 * implement setarg for more architectures
291 * implement change_syscall
292
Wichert Akkerman2ee6e452000-02-18 15:36:12 +00002931999-12-27 Morten Welinder <terra@diku.dk>
294
295 * syscall.c (lookup_signal, lookup_desc): isdigit requires an
296 _unsigned_ char parameter.
297
Wichert Akkerman12f75d12000-02-14 16:23:40 +00002982000-02-14 Wichert Akkerman <wakkerma@debian.org>
299
300 * S390 updates
301
Wichert Akkerman8b1b40c2000-02-03 21:58:30 +00003022000-02-03 Wichert Akkerman <wakkerma@debian.org>
303
Wichert Akkerman5ae21ea2000-05-01 01:53:59 +0000304 * Merge Linux/ia64 patches
Wichert Akkerman8b1b40c2000-02-03 21:58:30 +0000305
Pavel Machek4dc3b142000-02-01 17:58:41 +00003062000-01-02 Pavel Machek <pavel@ucw.cz>
307
308 * probe if sys/poll.h exists in configure + minor cleanups
309
310 * syscall.c: split trace_syscall into few pieces to make code readable
311
Wichert Akkerman30160182000-01-21 20:31:34 +00003122000-01-21 Wichert Akkerman <wakkerma@debian.org>
313
314 * Release version 4.2 to get the current updates out and so
315 we can concentrate in finishing the clone support.
316
Wichert Akkerman3ed6dc22000-01-11 14:41:09 +00003172000-01-11 Wichert Akkerman <wakkerma@debian.org>
318
319 * Add 1900 to tm_year in sprinttime
320
Wichert Akkerman0396bdc1999-12-24 23:11:57 +00003211999-12-24 Wichert Akkerman <wakkerma@debian.org>
322
323 * file.c: protect printstat64 with STAT64 instead of linux so we can
324 compile on Linux architectures that don't have it
Wichert Akkerman9148a3b1999-12-24 23:13:55 +0000325 * util.c: fix LOOP for ARM
Wichert Akkerman0396bdc1999-12-24 23:11:57 +0000326
327Fri Dec 24 18:05:00 EST 1999
328
Ulrich Drepperc921cb21999-12-24 08:03:35 +00003291999-12-23 Ulrich Drepper <drepper@cygnus.com>
330
331 * file.c: Use ugly libc_stat trick also for stat64.
332 Implement sys_stat64, sys_fstat64, sys_lstat64, and printstat64.
333 * process.c (internal_clone): Fix a few typos and add definitions to make
334 it at least compile.
335 * linux/syscall.h: Declare sys_stat64, sys_lstat64, and sys_fstat64.
336 * linux/syscallent.h: Define table entries for sys_stat64, sys_lstat64,
337 and sys_fstat64.
338 * aclocal.m4: Define AC_STAT64.
339 * acconfig.h: Define HAVE_STAT64.
340 * configure.in: Add AC_STAT64.
341
Wichert Akkerman4dc8a2a1999-12-23 14:20:14 +0000342Thu Dec 23 15:01:37 CET 1999 Wichert Akkerman <wakkerma@debian.org>
343
344 * Merge patch from ftp://oss.software.ibm.com/linux390/ to add
345 support for Linux on the IBM S/390 architecture
Wichert Akkerman7a0b6491999-12-23 15:08:17 +0000346 * process.c: add internal_clone(), currently only shows the options
347 * syscall.c: use internal_clone to handle SYS_clone
Wichert Akkerman4dc8a2a1999-12-23 14:20:14 +0000348
349Mon Dec 20 00:27:50 CET 1999 Wichert Akkerman <wakkerma@debian.org>
350
351 * Rewrite mmap-handling to support mmap2 on Linux
352
Wichert Akkermane5be0de1999-12-14 10:46:18 +0000353Tue Dec 14 11:35:16 CET 1999 Wichert Akkerman <wakkerma@debian.org>
354
355 * Note that Linux can handle sys_semop() as well
356
Wichert Akkerman4dc8a2a1999-12-23 14:20:14 +0000357Tue Nov 30 11:05:26 CET 1999 Wichert Akkerman <wakkerma@debian.org>
358
359 * Include linux/in6.h for glibc2.0 and older
360
Wichert Akkermanea78f0f1999-11-29 15:34:02 +0000361Mon Nov 29 16:33:04 CET 1999 Wichert Akkerman <wakkerma@debian.org>
362
363 * Merge patches from John Hughes to make configure support UnixWare
364
Wichert Akkerman9123ac81999-11-27 21:58:20 +0000365Sat Nov 27 21:38:17 CET 1999 Wichert Akkerman <wakkerma@debian.org>
366
367 * Enhance sys_query_module
368
Wichert Akkermane4aafd41999-11-26 09:54:08 +0000369Fri Nov 26 10:51:55 CET 1999 Wichert Akkerman <wakkerma@debian.org>
370
371 * Patches from John Hughes:
372 + cosmectic fix in sys_getpmsg
Wichert Akkerman48214be1999-11-26 09:55:42 +0000373 + allow net.c to compile on systems without AF_INET6
374 + Only use long_to_sigset on Linux systems
Wichert Akkerman46956571999-11-26 10:12:59 +0000375 + UnixWare treats sigmask_t and sigmask_t* as the same thing
Wichert Akkerman9dbf1541999-11-26 13:11:29 +0000376 + Add pollhack
Wichert Akkerman3377df71999-11-26 13:14:41 +0000377 + Parse mount arguments for UnixWare
378 + ACL fixes for UnixWare
Wichert Akkermane4aafd41999-11-26 09:54:08 +0000379
Wichert Akkerman2a64b431999-11-26 00:29:05 +0000380Fri Nov 26 01:28:09 CET 1999 Wichert Akkerman <wakkerma@debian.org>
381
382 * Release 4.1 to get all the changes made out there
383
Wichert Akkermanf5eeabb1999-11-18 17:09:47 +0000384Thu Nov 18 18:04:04 CET 1999 Wichert Akkerman <wakkerma@debian.org>
385
386 * Merge stracefork from Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
387 + Socket calls parsed better
388 + bunch of alpha OSF syscalls added
389 + Fix alpha 32/64 bit issues
390
Wichert Akkerman2f473da1999-11-01 19:53:31 +0000391Mon Nov 1 20:52:08 CET 1999 Wichert Akkerman <wakkerma@debian.org>
392
393 * Move Linux kernelmodule-functions from system.c to bjm.c and
394 remove duplicate for sys_create_module
Wichert Akkerman60456d71999-11-01 19:59:33 +0000395 * Linux MIPS updates:
396 + Play with #ifdef's in net.c to get IPv6 right
397 + Use printargs for vm86-syscall
Wichert Akkerman2f473da1999-11-01 19:53:31 +0000398
Wichert Akkermanf90da011999-10-31 21:15:38 +0000399Sun Oct 31 22:03:00 CET 1999 Wichert Akkerman <wakkerma@debian.org>
400
401 * Merge Linux mips patch from Florian Lohoff <flo@rfc822.org>
402
Wichert Akkerman50524821999-10-10 22:40:07 +0000403Mon Oct 11 00:36:25 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
404
405 * Merge patch from Keith Owens <kaos@ocs.com.au> to sys_query_module
406 and sys_delete_module correctly
407
Wichert Akkerman15dea971999-10-06 13:06:34 +0000408Wed Oct 6 02:00:33 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
409
410 * Update cvsbuild to give a better error if autoconf isn't installed
411 * Add test for linux/ptrace.h to configure
412 * Since we define GNU_SOURCE in the Makefile we don't need to define
413 USE_GNU in file.c anymore
414
415Fri Sep 10 04:35:16 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
416
417 * #define USE_GNU before including file.c so we get some extra O_* flags
418
419Tue Aug 31 16:27:21 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
420
421 * Add missing } in IPv6 output
422
Wichert Akkerman7b27ba01999-08-30 23:26:53 +0000423Tue Aug 31 01:23:08 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
424
425 * Update copyright for strace-graph to BSD to be consistent with
426 the rest of strace
427
Wichert Akkerman9ce1a631999-08-29 23:15:07 +0000428Mon Aug 30 00:53:57 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
429
430 * Merge patch from Daniel Jacobowitz: KERN_JAVA_* and KERN_SECURELVL aren't
431 defined for all kernelversions
Wichert Akkerman7b27ba01999-08-30 23:26:53 +0000432 * Add strace-graph, written by Richard Braakman <dark@xs4all.nl>
Wichert Akkerman9ce1a631999-08-29 23:15:07 +0000433
434Thu Aug 19 13:10:15 CEST 1999 Jakub Jelinek <jj@ultra.linux.cz>
435
436 * linux/sparc/syscall.h: Declare create_module/init_module.
437 * configure.in: Allow compilation in a different directory
438 than the source one.
439 * signal.c: Use asm/reg.h and struct regs instead of pt_regs
440 so that we don't depend on asm/ptrace.h which clashes with
441 glibc sys/ptrace.h.
442 * util.c: Likewise.
443 * syscall.c: Likewise.
444
Wichert Akkerman5a777661999-08-04 16:03:49 +0000445Wed Aug 4 18:01:50 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
446
447 * Syscall 94 on Linux alpha is sys_poll
448
Wichert Akkerman9ce1a631999-08-29 23:15:07 +0000449Sun Jul 25 14:38:33 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
450
451 * Merge in UnixWare patches from John Hughes <john@Calva.COM>
452
Wichert Akkerman527a8051999-07-15 21:11:37 +0000453Thu Jul 15 23:00:32 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
454
455 * Merge patch from Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
456 + Correctly implement fix sys_createmodule (Linux)
457 + Add limited handlig of sys_initmodule (Linux)
458
Wichert Akkerman36915a11999-07-13 15:45:02 +0000459Tue Jul 13 17:07:50 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
460
461 * Add configure-test for sys/reg.h and use that
462 * Use sys/reg.h instead of asm/ptrace.h
463
Wichert Akkermanca446991999-07-09 23:48:58 +0000464Sat Jul 10 01:46:10 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
465
466 * Remove hack in signal.c for arm architecture
467 * Add hack so we compile correctly on powerpc
468
Wichert Akkerman5b4d1281999-07-09 00:32:54 +0000469Fri Jul 9 02:28:16 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
470
471 * Add a corrected patch from Daniel Jacobowitz
472
Wichert Akkermana6013701999-07-08 14:00:58 +0000473Thu Jul 8 16:00:04 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
474
475 * Merge patch from Daniel Jacobowitz to allow us to use the kernel types
476 for the stat structure
477
478Thu Jun 24 15:54:18 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
Wichert Akkerman2b483ba1999-06-24 13:55:29 +0000479
480 * Fix test for sys/reg include
481
Wichert Akkermana6013701999-07-08 14:00:58 +0000482Tue Jun 22 17:26:33 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
Wichert Akkermane6f876c1999-06-22 15:28:30 +0000483
484 * Fixed some Linux/powerpc sillyness, thanks to Daniel Jacobowitz
485 * Fixed some SunOS compile problems earlier that I forgot to include
486 here
487
Wichert Akkerman789ed351999-06-14 10:45:01 +0000488Mon Jun 14 12:44:25 CEST 1999
489
490 * Avoid leakint fd into child when forking, patch from
491 John Hughes <john@Calva.COM>
492
Wichert Akkerman8829a551999-06-11 13:18:40 +0000493Fri Jun 11 14:54:47 CEST 1999
494
495 * Applied IRIX64 patch from Thomas E. Dickey <dickey@clark.net>
496 * Applied Solaris and manpage updates from Guy Harris <guy@netapp.com>
497
Wichert Akkermancc4b8f41999-06-09 12:50:10 +0000498Wed Jun 9 14:48:49 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
499
500 * Brought syscall list for alpha up to date
501
Wichert Akkermandacfb6e1999-06-03 14:21:07 +0000502Wed Jun 2 18:30:12 CEST 1999 Jakub Jelinek <jj@ultra.linux.cz>
503
504 * system.c: sys_umount2 syscall support.
505 * linux/sparc/errnoent.h: Update sparc-linux errnos.
506 * linux/sparc/syscall.h: Update used sparc-linux syscalls.
507 * linux/sparc/syscallent.h: Match 2.2.9 system calls.
508 * file.c: sparc-linux asm/stat.h uses dev_t etc. types,
509 so it needs strace's own copy of the stat structure.
510 * util.c: Make it compile on sparc-linux.
511 * strace.c: Fix strace -f and -ff operation on sparc-linux.
512 * signal.c: rt_sigaction has different arguments on sparc*-linux
513 and alpha-linux.
514 * syscall.c: Recognize sparc64-linux binaries.
515
Ulrich Drepper0d2d3231999-05-29 04:11:48 +0000516Fri May 28 21:09:00 PST Ulrich Drepper <drepper@cygnus.com>
517
518 * configure.in: Fix typo (CFLAG -> CFLAGS).
519
Ulrich Drepper8783c011999-05-29 04:13:58 +0000520 * syscall.c: Don't include linux/ptrace.h explicitly for glibc.
521
Wichert Akkerman22fe9d21999-05-27 12:00:57 +0000522Thu May 27 13:59:27 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
523
524 * Add some sysctl support, patch from Ulrich Drepper
525
Wichert Akkerman9524bb91999-05-25 23:11:18 +0000526Wed May 26 01:04:34 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
527
528 * Use kernel dirent structure for Linux
529
Wichert Akkerman2e2553a1999-05-09 00:29:58 +0000530Sun May 9 02:18:30 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
531
532 * Merge in patches from Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
533 + some layout and other minor fixes
534 + add some m68k-specific things to linux/syscallent.h. Note that m68k
535 is similar enough to i386 to not need it's own subdirectory
536 + add support for sendfile and mremap syscalls for Linux
537 * Merge in patches from Sascha Schumann <sascha@schumann.2ns.de>
538 + ioctls.h vs sys/ioctl.h on Alpha platform
539 + pointer was casted to an int in stream.c
540 + strsignal() needs -D_GNU_SOURCE in CFLAGS
541 + several other casts changed
542 + correct ARM/POWERPC architecture defines in acconfig.h
543 * Merge in patches from Morten Welinder <terra@diku.dk>
544 + add some autoconf-tests for includefiles
545 + handle solaris version of sigcontext struct (actually I hacked this
546 up again, but the idea is his :)
547
Wichert Akkerman7a1f0e91999-04-18 20:23:57 +0000548Sun Apr 18 22:32:42 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
549
550 * Update syscalls for linux alpha, patch from Bart Warmerdam
Ulrich Drepperc921cb21999-12-24 08:03:35 +0000551 <bartw@debian.org>
Wichert Akkermand4d8e921999-04-18 23:30:29 +0000552 * Update sparc code so it actually compiles
Wichert Akkerman7a1f0e91999-04-18 20:23:57 +0000553
Wichert Akkerman328c5e71999-04-16 00:21:26 +0000554Fri Apr 16 02:18:05 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
555
Wichert Akkerman25d0c4f1999-04-18 19:35:42 +0000556 * Add support for old_*stat functions for Linux. Please note you need
557 to use reasonably recent kernel headers to compile strace now.
Wichert Akkerman328c5e71999-04-16 00:21:26 +0000558 * Change references to LINUX into linux in file.c
559 * Fix include for LDT in mem.c
Wichert Akkerman1786d811999-04-15 20:34:14 +0000560
561Thu Apr 15 22:28:15 CEST 1999 Wichert Akkerman <wakkerma@debian.org>
562
563 * Change in strace maintainership, jrs passed the torch to me.
564 * Use autoconf 2.13
565 * Incorporate all changes already made in the Debian strace package:
566 + compiles with more Linux kernels
567 + added support for more Linux architectures
568 + add support for a lot of extra syscalls
569 + fix some problems with hanging children
570 + check stray syscall after execv
571 + decode capget and capset arguments
572 + add more constants to net.c
573 + detect ROSE networking
574 + add more protocol families to domains
575 + add IPIP protocol
576 + added MSG_PROXY and MSG_CTRUNC to msg_flags
577 + added SO_BSDCOMPAT and SO_REUSEPORT to sockoptions
578 + added IP, IPX and TCP-options
579 + added IP, IPX and TCP support to get-/setsockopt()
580 + added IPX support
581 + updated handling of signals
582
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000583Sun Oct 27 22:28:00 1996 J. Richard Sladkey <jrs@world.std.com>
584
585 * util.c (umovestr) [LINUX]: Handle Linux like SunOS4
586 instead of SVR4. That is, read a few bytes at a time
587 to avoid overrunning the end of the stack.
588
589Fri May 31 01:48:49 1996 J. Richard Sladkey <jrs@world.std.com>
590
591 * version.c: Version 3.1 is released.
592
593Thu May 23 01:04:43 1996 J. Richard Sladkey <jrs@world.std.com>
594
595 * aclocal.m4 (AC_DECL_SYS_ERRLIST): Try looking in stdio.h
596 as well since that's where glibc declares it. Go figure.
597 * signal.c (sys_sigreturn) [ALPHA]: Use sigcontext
598 instead of sigcontext_struct since glibc v5+ apparently
599 plays games with the native OS namespace.
600 From David Mosberger-Tang <davidm@AZStarNet.com>.
601
602Mon May 20 23:17:14 1996 J. Richard Sladkey <jrs@world.std.com>
603
604 * version.c: Version 3.0.14 is released.
605
606 * aclocal.m4 (AC_STRUCT_MSG_CONTROL): New macro.
607 * configure.in: Add call to AC_STRUCT_MSG_CONTROL.
608 * net.c (printmsghdr): Handle BSD 4.3 and 4.4 msghdr members
609 differently.
610 Reported by Henrik Storner <storner@osiris.ping.dk>.
611
612 * configure.in: (AC_CHECK_{HEADERS,FUNCS}): Add checks for
613 sys/filio.h and sys/stream.h and remove check for poll.
614 * desc.c (decode_select, sys_select, sys_oldselect) [LINUX]:
615 Handle old and new styles of argument passing for select on Linux.
616 * ioctl.c, stream.c: Conditionalize stream code on presence of
617 sys/stream.h instead of poll because glibc implements poll but
618 not the rest of the stream interface.
619 * signal.c [LINUX]: Standardize on the name sigcontext_struct.
620 (sys_sigprocmask) [ALPHA]: Handle OSF flavor which is more like
621 sigsetmask.
622 * term.c (term_ioctl): Use _VMIN, if present, for TC{G,S}ETA*.
623 * util.c (umoven, umovestr): Move data in long-sized chunks
624 at a time, instead of hard coding it to be 4.
625 From David Mosberger-Tang <davidm@AZStarNet.com>.
Ulrich Drepperc921cb21999-12-24 08:03:35 +0000626
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000627Mon May 20 01:19:36 1996 J. Richard Sladkey <jrs@world.std.com>
628
629 * version.c: Version 3.0.13 is released.
630
631 * configure.in (AC_CHECK_HEADERS): Add check for asm/sigcontext.h.
632 * signal.c [HAVE_ASM_SIGCONTEXT_H]: Conditionally include
633 asm/sigcontext.h to define sigcontext_struct and don't define it
634 locally if the header is present.
635
636 * syscall.c (nerrnos{0,2}): Correct size computation.
637
638 * Makefile.in: Remove dependencies and rules relating to files
639 normally found in the os directory. Because of the new scheme we
640 don't know precisely where they come from. Sigh.
641 * signalent.sh: Make it work for sunos4, linux, and svr4.
642 * {sunos4,linux{,/alpha},svr4}/Makefile.in: Make rules correspond
643 to traditional make syntax. Add signalent.h to files which can
644 unconditionally be rebuilt. Prevent signalent.h from being
645 unconditionally being rebuilt since it's customized.
646 * {sunos4,linux{,/alpha},svr4}/{ioctlent,errnoent,signalent}.h:
647 Use versions built by {ioctlent,errnoent,signaltent}.sh.
648 * sunos4/ioctlent.sh: Work around sprintf troubles with SunOS
649 4.1.4 and gcc 2.7.2.
Ulrich Drepperc921cb21999-12-24 08:03:35 +0000650
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000651Sun May 19 17:14:09 1996 J. Richard Sladkey <jrs@world.std.com>
652
653 * configure.in, Makefile.in: Add OSARCH concept to finish
654 build support for the alpha.
655 * Makefile.in, linux/Makefile.in: Rewrite clean, distclean,
656 and maintainer-clean rules.
657 * defs.h, ioctlsort.c: Make ioctl code member unsigned.
658 * ioctl.c, ioctlsort.c (compare): Perform explicit checking
659 for less, greater, and equal since subtraction on two's
660 complement numbers isn't an order relation (it isn't transitive)!
661 * linux/Makefile.in: Add rules for the signalent.h file.
662 * linux/alpha/Makefile.in: New file.
Ulrich Drepperc921cb21999-12-24 08:03:35 +0000663
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000664Sun May 19 01:12:28 1996 J. Richard Sladkey <jrs@world.std.com>
665
666 * version.c: Version 3.0.12 is released.
667
668 * linux{,alpha}/ioctlent.sh: Tweak for recent kernels.
669 From Michael E Chastain <mec@duracef.shout.net>.
Ulrich Drepperc921cb21999-12-24 08:03:35 +0000670
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000671 * defs.h (SUPPORTED_PERSONALITES, DEFAULT_PERSONALITY): New.
672 * syscall.c (set_personality): New.
673 * strace.c (main): Call set_personality.
674 * defs.h, syscall.c, ioctl.c, signal.c: Make sysent, errnoent,
675 ioctlent, and signalent indirect pointers and redirect them
676 based on personality.
677 * {sunos4,svr4,linux{,/alpha}}/signalent.h: New files.
678 Suggested by Tom Dyas <tdyas@eden.rutgers.edu>.
679
680 * util.c (upeek): Handle case where ptrace returns a long
681 and sizeof(long) != sizeof(int).
682 From Richard Henderson <richard@twiddle.tamu.edu>
683
684Fri May 17 21:03:36 1996 J. Richard Sladkey <jrs@world.std.com>
685
686 * version.c: Version 3.0.11 is released.
687
688 * many files: Fix more printf warnings for other platforms.
689
690 * ipc.c (sys_msgrcv) [LINUX]: Conditionalize definition of ipc_wrapper.
691
692 * linux/dummy.h: Handle missing library support for {send,recv}msg.
693 Reported by Thomas Bogendoerfer <tsbogend@bigbug.franken.de>.
694
695 * linux/syscall.h (sys_utimes): Fix a typo in the declaration.
696 From Thomas Bogendoerfer <tsbogend@bigbug.franken.de>.
Ulrich Drepperc921cb21999-12-24 08:03:35 +0000697
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000698Fri May 17 00:50:06 1996 J. Richard Sladkey <jrs@world.std.com>
699
700 * version.c: Version 3.0.10 is released.
701
702 * Makfile.in: Add os/arch to includes so that a given arch
703 (like alpha) can override the native arch (like i386).
704 * configure.in: Check for sendmsg.
705
706 * net.c: Make sendmsg and recvmsg dependent on an autoconf
707 test. Reported by Michael E Chastain <mec@duracef.shout.net>.
708
709 * acconfig.h, configure.in: Detect the alpha.
710 * ioctl.c: Handle the alpha.
711 * defs.h: Make some members long for the alpha. Define
712 some register nicknames. Add support for WAITEXECVE.
713 * file.c [ALPHA]: Support the alpha for statfs. Add
714 osf_statfs and osf_fstatfs for the alpha. Make damn sure
715 major and minor results are suitable for passing to printf.
716 * signal.c, syscall.c: Support the alpha.
717 * process.c: Add alpha user offsets.
718 * most files: Use %l? for printf arguments since
719 most are now longs for the alpha.
720 * linux/alpha/{errnoent.h,ioctlent.{h,sh},syscallent.h}:
721 New for the alpha.
722 From Thomas Bogendoerfer <tsbogend@bigbug.franken.de>.
723
724Wed May 15 00:29:37 1996 J. Richard Sladkey <jrs@world.std.com>
725
726 * version.c: Version 3.0.9 is released.
727
728 * config.in, config.sub, install-sh: Upgrade to autoconf 2.10.
729
730 * linux/dummy.h, linux/syscallent.h, linux/syscall.h: Add recent
731 Linux kernel version system calls.
732
733Wed Mar 13 01:03:38 1996 J. Richard Sladkey <jrs@world.std.com>
734
735 * ipc.c [SUNOS4]: Add SunOS support for decoding IPC calls.
736 * syscall.c [SUNOS4]: Compile decode_subcall on SunOS and
737 decode IPC calls using it.
738 * sunos4/dummy.h: Alias sys_semop to printargs.
739 * sunos4/syscall.h: Add new pseudo syscalls for IPC.
740 * sunos4/syscallent.h: Include new subcalls for IPC.
741 From Matthias Pfaller <leo@dachau.marco.de>.
742
743Tue Feb 13 22:08:25 1996 J. Richard Sladkey <jrs@world.std.com>
744
745 * version.c: Version 3.0.8 is released.
746
747 * time.c [LINUX]: Explicitly include linux/version.h.
748
749 * strace.c (main): Don't let them even *try* to
750 get strace to attach to itself since some systems
751 don't handle this case very gracefully.
752 Reported by David S. Miller <davem@caip.rutgers.edu>.
753
754 * Makefile.in (distclean): Fix it for subdirectories.
755
756 * sunos4/syscallent.h, svr4/syscallent.h: Fill in the new
757 sys_flags member for each defined system call.
758
759Fri Dec 8 01:17:28 1995 Rick Sladkey <jrs@world.std.com>
760
761 * defs.h (TRACE_*): New flags to describe what class
762 of system call each system call is.
763 (sysent): Add sys_flags member.
764 * syscall.c (sysent): Define (and later undef) abbreviations
765 for the system call class flags.
766 (lookup_class): New function to translate strings to
767 system call class flags.
768 (qualify): Handle new system call class mechanism.
769 * linux/syscallent.h: Fill in the new sys_flags member
770 for each defined system call.
771
772 * defs.h (print_sock): Remove redundant and non-K&R C
773 compatible prototype. From Juergen Weigert
774 <jnweiger@immd4.informatik.uni-erlangen.de>.
775
776Thu Dec 7 01:17:40 1995 Rick Sladkey <jrs@world.std.com>
777
778 * linux/ioctlent.sh: Tweak to improve ioctl accuracy.
779 From Michael E Chastain <mec@duracef.shout.net>.
780
781 * system.c (includes) [LINUX]: Add linux/nfs.h for recent
782 kernels. From Michael E Chastain <mec@duracef.shout.net>.
783
784Wed Dec 6 21:52:28 1995 Rick Sladkey <jrs@world.std.com>
785
786 * file.c (sprintfstype): Enclose string result in double
787 quotes.
788
789 * time.c (sys_adjtimex) [LINUX]: Conditionalize
790 constantly evolving timex structure.
791 From Aaron Ucko <UCKO@VAX1.ROCKHURST.EDU>.
792
793 * defs.h, syscall.c, strace.c: Rename syscall to
794 trace_syscall and change prototype and all callers
795 because of broken Linux shared libraries.
796 From Aaron Ucko <UCKO@VAX1.ROCKHURST.EDU>.
797
798 * Makefile.in (clean): Check for a file with test -f not
799 test -d. From Aaron Ucko <UCKO@VAX1.ROCKHURST.EDU>.
800
801Tue Sep 26 02:32:31 1995 Rick Sladkey <jrs@world.std.com>
802
803 * version.c: Version 3.0.7 is released.
804
805 * util.c (string_quote): Fix thinko which caused core
806 dumps for strings with quotes in them.
807 Reported by Marty Leisner <leisner@sdsp.mc.xerox.com>.
808
809 * linux/Makefile.in (errnoent.h rule): Grab all errno.h
810 files from /usr/include, not just the linux one.
811 From Michael E Chastain <mec@duracef.shout.net>.
812
813 * linux/errnoent.sh: Total rewrite to handle more ioctls with
814 fewer false positives on more kernel flavors.
815 From Michael E Chastain <mec@duracef.shout.net>.
816
817Mon Sep 4 01:29:22 1995 Rick Sladkey <jrs@world.std.com>
818
819 * version.c: Version 3.0.6 is released.
820
821 * linux/dummy.h, linux/syscall.h, linux/syscallent.h: Add
822 sys_msync.
823 * mem.c (mctl_funcs, mctl_lockas, sys_mctl): Conditionalize
824 on MC_SYNC instead of HAVE_MCTL.
825 (mctl_sync): Conditionalize on MS_ASYNC instead of HAVE_MCTL.
826 (sys_msync): New function.
827
828Sat Sep 2 12:06:04 1995 Rick Sladkey <jrs@world.std.com>
829
830 * linux/dummy.h, linux/syscall.h, linux/syscallent.h: Add
831 sys_flock and sys_getdents.
832 * desc.c (flockcmds, sys_flock): Conditionalize on LOCK_SH
833 not SUNOS4.
834 * file.c (sys_getdents): Define unconditionally and handle
835 LINUX case.
836 * strace.c (main): Disallow username option unless both real
837 and effective uids are root.
838
839Wed Aug 30 01:29:58 1995 Rick Sladkey <jrs@world.std.com>
840
841 * strace.c (main): Ensure that run_uid and run_gid are
842 always set to something meaningful.
843 (main, newoutf) [!SVR4]: Swap real and effective uids while
844 opening any output files.
845 (main) [!SVR4]: Treat effective uid of root as a request
846 to handle suid binaries correctly using the real uid of
847 the invoking user.
848
849Sat Aug 19 00:06:08 1995 Rick Sladkey <jrs@world.std.com>
850
851 * Makefile.in: Add `|| true' to clean rule because
852 although GNU make 3.74 uses `sh -c' to invoke commands
853 every other make in the world uses `sh -ec'.
854
855 * syscall.c (syscall) [SVR4, MIPS]: The fifth and subsequent
856 arguments appear to be stored on the stack, not in the
857 registers following A3 (empirical result).
858
859 * defs.h: Add prototype for printsock.
860 * svr4/dummy.h: Remove generic handling of sys_mount.
861 * system.c [SVR4, MIPS]: Include several system headers to cleanly
862 get access to SGI mount information.
863 (mount_flags, nfs_flags) [SVR4, MIPS]: New objects.
864 (sys_mount) [SVR4, MIPS]: New function.
865 (sys_mount) [SVR4, !MIPS]: New function.
866
867Tue Jul 4 00:30:34 1995 Rick Sladkey <jrs@world.std.com>
868
869 * version.c: Version 3.0.5 is released.
870
871 * desc.c, resource.c, strace.c, syscall.c, time.c: Cast tv_sec and
872 tv_usec members to long when using printf.
873
874 * ipc.c: Omit define of __KERNEL__.
875 ({MSG,SEM,SHM}_{STAT,INFO}): Explicitly define those things we
876 want which __KERNEL__ used to provide.
877 (sys_msgrcv): Change reference to ipc_kludge structure to
878 look-alike ipc_wrapper to avoid dependence on __KERNEL__.
879
880 mem.c (mmap_flags) [MAP_{GROWSDOWN,DENYWRITE,EXECUTABLE}]: Add
881 Linux specific options.
882
883 syscall.c: Use SYS_ERRLIST_DECLARED instead of guessing.
884 [E{RESTART{SYS,NO{INTR,HAND}},NOIOCTLCMD}]: Explicitly define
885 instead of depending of __KERNEL__.
886
887 term.c: Cast c_{i,o,c,l}flag to long when using printf.
888
889Tue Jun 6 00:27:48 1995 Rick Sladkey <jrs@world.std.com>
890
891 * aclocal.m4 (AC_DECL_SYS_ERRLIST, AC_DECL__SYS_SIGLIST): New.
892 * configure.in: Call AC_DECL_SYS_ERRLIST, AC_DECL_SYS_SIGLIST,
893 and AC_DECL__SYS_SIGLIST.
894 * acconfig.h (SYS_ERRLIST_DECLARED): New.
895 * strace.c (strerror): Use SYS_ERRLIST_DECLARED.
896 (strsignal): Use SYS_SIGLIST_DECLARED.
897
898 net.c (sys_socket): Omit inadvertent surplus comma when
899 protocol family isn't PF_INET.
900
901 util.c (dumpstr): Fix incorrect printing of one too many
902 characters when the length is not an even multiple of 16 bytes.
903 Reported by Juergen Weigert
904 <jnweiger@immd4.informatik.uni-erlangen.de>.
905
906Thu May 4 23:37:47 1995 Rick Sladkey <jrs@world.std.com>
907
908 * ioctl.c (compare): Change prototype to match POSIX qsort.
909 * signal.c (sigishandled) [SVR4]: Omit everything after return.
910 * strace.c (trace) [SVR4]: Break out of for loop instead of
911 returning when finished so final return statement is executed.
912 * syscall.c (internal_syscall): Add more SYS_wait* variations.
913 (syscall) [LINUX]: Correct typo which commented out the M68K
914 argument to ifdef.
915 * util.c (printstr): Cast unsigned char pointer argument
916 to char pointer in umovestr call.
917 (dumpstr): Likewise for umoven.
918
919Wed May 3 01:10:56 1995 Rick Sladkey <jrs@world.std.com>
920
921 * version.c: Version 3.0.4 is released.
922
923 * signal.c (sys_sigblock): Move after the definition of
924 sys_sigsetmask that it calls to avoid an implicit declaration.
925 * stream.c (transport_user_options, transport_server_options):
926 Only needed if TI_BIND is defined.
927 * configure.in: Add -Wno-implicit to WARNFLAGS on SunOS 4.x.
928
929 * process.c (internal_fork) [SVR4]: Fix a typo that omitted
930 the tcp arguement from the call to exiting. Add getrval2
931 check so no fork processing is done in the child.
932 (printwaitn): Initialize exited so that its value is defined
933 for all flows of execution.
934
935Tue May 2 22:39:42 1995 Rick Sladkey <jrs@world.std.com>
936
937 * linux/dummy.h: Add aliases for sysfs, personality, afs_syscall,
938 setfsuid, setfsgid, and _llseek syscalls.
939 * linux/syscall.h: Add prototypes for them.
940 * linux/syscallent.h: Add them to the syscall entries table.
941 * system.c (headers) [LINUX]: Include linux/unistd.h to get __NR_*
942 defines and conditionally include linux/personality.h if
943 __NR_personality is defined.
944 (personality_options) [LINUX]: New table.
945 (sys_personality) [LINUX]: New function.
946
947Tue May 2 00:20:39 1995 Rick Sladkey <jrs@world.std.com>
948
949 * strace.c (trace) [!SVR4]: Change forever loop to one predicated
950 on the number of traced processes so that we can have untraced
951 children (e.g. via popen).
952
953 * strace (main) [!SVR4]: Call fake_execve to get the actual
954 exec and its arguments into the trace.
955 (environ): Declare it.
956 * process.c (fake_execve): New function.
957 (headers): Include sys/syscall.h to get SYS_* defines.
958
959 * process.c (sys_execv, sys_execve): Surround argument annotations
960 with C comment delimiters.
961 (printargv, printargc): The arg vector is an array of char pointers
962 not ints.
963
964 * strace.c (printleader): Also check for multiple -p arguments
965 when deciding whether to print the pid field.
966
967 * strace.c (strerror) [!HAVE_STRERROR]: New function.
968 * defs.h (strerror, strsignal): Add these prototypes if we provide
969 the functions.
970 * configure.in (AC_CHECK_FUNCS): Add strerror.
971
972 * strace.c (main, proc_poller): Add SIGPIPE to the list of caught
973 and blocked signals.
974
975 * strace.c (main): Add username option. Verify they are root before
976 letting them use it. Look up the ids in the password file. Set
977 them just before executing the program.
978 From Reuben Sumner <rasumner@undergrad.math.uwaterloo.ca>.
979
980Sat Apr 29 00:09:56 1995 Rick Sladkey <jrs@world.std.com>
981
982 * version.c: Version 3.0.3 is released.
983
984 * system.c (mount_flags) [LINUX]: Omit duplicated MS_NOSUID entry.
985 From Reuben Sumner <rasumner@undergrad.math.uwaterloo.ca>.
986
987 * strace.c (outfname): Initialize to NULL.
988 (main): Defer output file processing until after arguments.
989 Allow either a pipe or a bang for command arguments.
990 Check if outfname is NULL instead of checking outf for stderr.
991 Reinitialize each startup TCB's outf to fix -p/-o ordering bug.
992 (droptcb): Reset close TCB's outf to NULL instead of stderr.
993 (tprintf): Avoid calling vfprintf if outf is NULL.
994
995 * strace.c (main): Use popen if -o argument begins with a pipe.
996 From Marty Leisner <leisner@sdsp.mc.xerox.com>.
997
998 * process.c (printstatus): Fix a typo where WIFSIGNALED was meant
999 but WIFSTOPPED was used.
1000
1001 * Makefile.in: Add an EXTRA_DEFS variable and use it in the .c.o
1002 rule to prevent the comment from being untrue.
1003
1004Fri Apr 28 22:01:56 1995 Rick Sladkey <jrs@world.std.com>
1005
1006 * strace.c (sys_exit): Move follow fork code to internal_exit.
1007 (sys_fork): Move follow fork code to internal_fork.
1008 (sys_execv, sys_execve): Move follow fork code to internal_exec.
1009 (sys_waitpid, sys_wait4): Move follow fork code to internal_wait.
1010 (vforking): Remove this static variable and check scno in
1011 internal_fork instead.
1012 (internal_exit, internal_fork, internal_exec, internal_wait): New
1013 functions.
1014 * defs.h: Add prototypes for the new internal_* functions.
1015 * syscall.c (syscall): Move syscall entering trace qualifier check
1016 and reprint checking after context decoding and precede them with
1017 a call to internal_syscall. Precede syscall exiting trace
1018 qualifier check with a call to internal_syscall.
1019 (internal_syscall): New function.
1020
1021 * defs.h (struct tcb): Make scno signed.
1022 * strace.c (syscall) Make u_error signed.
1023 [LINUX, I386]: Avoid unsigned cast in eax check.
1024 * syscall.c (sys_indir): Make i, scno, and nargs signed.
1025 * desc.c (sys_select): Make cumlen unsigned
1026
1027Mon Apr 24 23:52:47 1995 Rick Sladkey <jrs@world.std.com>
1028
1029 * net.c (socktypes): Add SOCK_PACKET.
1030
1031Sun Apr 2 23:50:39 1995 Rick Sladkey <jrs@world.std.com>
1032
1033 * Makefile (clean): Check explicitly for a Makefile in subdirs
1034 before running make in them.
1035
1036Sun Mar 26 12:37:21 1995 Rick Sladkey <jrs@world.std.com>
1037
1038 * strace.c [MIPS] (proc_open): Conditionalize run on MIPS.
1039 [MIPS] (detach): Initialize error for MIPS case.
1040 (trace): Initialize ioctl_result and ioctl_errno for overly helpful
1041 compilers.
1042 * syscall.c (decode_subcall): Move variable i into conditionals
1043 that use use it.
1044 * system.c (syssgi_options): Conditionalize SGI_RECVLMSG and
1045 SGI_SET_FPDEBUG that SGI decided to drop. I don't have the stomach
1046 to change them all.
1047 * term.c (term_ioctl): Force [c_[iocl]flags members to long before
1048 printing since we don't know what the size of their type is.
1049 * util.c [SVR4, MIPS] (umoven): Prevent MIPS from using pread even
1050 if autoconf detects it since it seems to either not work or do
1051 something else entirely on Irix 5.3.
1052
1053Sun Mar 26 00:01:11 1995 Rick Sladkey <jrs@world.std.com>
1054
1055 * version.c: Version 3.0.2 is released.
1056 * linux/dummy.h: Make sys_fchdir like sys_close instead of printargs
1057 so that the file descriptor arg is decimal.
1058
1059Sat Mar 25 22:50:13 1995 Rick Sladkey <jrs@world.std.com>
1060
1061 * net.c [LINUX] (protocols): Explicitly define all IPPROTO_* entries
1062 because on Linux they are enumerators.
1063
1064 * system.c [LINUX] (mount_flags): Handle renaming of MS_SYNC to
1065 MS_SYNCHRONOUS.
1066
1067 * util.c (printxval): When there is no translation, print the actual
1068 number first and the the default value as a C comment.
1069
1070 * net.c (sys_send, sys_sendto, sys_sendmsg, sys_getsockopt,
1071 sys_setsockopt): Change first argument from unsigned to signed to
1072 cater to the frequent practice of calling system calls with a file
1073 descriptor of -1.
1074 * mem.c (sys_mmap): Likewise.
1075
1076Sun Mar 19 13:53:52 1995 Rick Sladkey <jrs@world.std.com>
1077
1078 * signal.c [LINUX] (signalent): Handle old and new values of SIGIO.
1079
1080Sun Dec 11 22:51:51 1994 Rick Sladkey <jrs@world.std.com>
1081
1082 * version.c: Version 3.0.1 is released.
1083 * Makefile.in, configure.in, aclocal.m4: Changes for autoconf 2.0.
1084 * config.guess, config.guess: Update from the FSF.
1085 * install-sh: New from the FSF.
1086
1087Mon Dec 5 20:51:29 1994 Rick Sladkey <jrs@world.std.com>
1088
1089 * Makefile.in: Add m68k arch.
1090 * acconfig.h (M68K): Add m68k define.
1091 * configure.in: Add detection of arch m68k.
1092 * process.c [M68K] (struct_user_offsets): Support m68k registers and
1093 offsets.
1094 * signal.c [M68K] (sigcontext_struct): Support m68k sigcontext
1095 structure.
1096 [M68K] (sys_sigreturn): Support m68k sigreturn handling.
1097 * syscall.c [M68K] (syscall): Support m68k syscall number register
1098 and errno in d0 instead of eax.
1099 * util.c [M68K] (getpc, printcall, setbpt, clearbpt): Support m68k
1100 program counter in PT_PC instead of EIP.
1101 [M68K] (LOOP): Support m68k loop instruction.
1102 From Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.
1103
1104 * mem.c [MAP_ANONYMOUS] (mmap_flags): Correct inadvertent reference
1105 to MAP_FIXED instead of MAP_ANONYMOUS.
1106 From Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.
1107
1108 * signal.c [LINUX] (signalent): Signal 30 is now SIGPWR.
1109 From Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>.
1110
1111Mon Dec 5 01:05:46 1994 Rick Sladkey <jrs@world.std.com>
1112
1113 * defs.h (tprintf): Fix typo in non-gcc ansi prototype for tprintf.
1114 Reported by Thanh Ma <tma@encore.com>.
1115
1116 * strace.c (cleanup): Send SIGCONT before SIGTERM because Linux
1117 1.1.62 doesn't continue a traced child when the parent exits.
1118 Reported by Matt Day <mday@artisoft.com>.
1119
1120 * system.c [LINUX]: Include netinet/in.h before arpa/inet.h.
1121
1122 * util.c (printstr): Fix longstanding bug in notating string
1123 continuation.
1124
1125 * strace.c [SVR4] (proc_open): Specifically wait for the child the
1126 child to go into the execve syscall to avoid spurious traces.
1127 [LINUX] (detach): Conditionalize the status variable.
1128
1129Sun Dec 4 23:21:42 1994 Rick Sladkey <jrs@world.std.com>
1130
1131 * Makefile.in: Add mips arch.
1132 * acconfig.h (MIPS): Add mips define.
1133 * configure.in: Add detection of opsys irix5 and arch mips. Check
1134 for prctl function.
1135 Check for sys/sysconfig.h header.
1136 * defs.h (MAX_ARGS): Bump maximum syscall arguments from 8 to 32.
1137 * file.c [SVR4]: Include sys/cred.h.
1138 (access_flags): Update access flags for SGI.
1139 (sprinttime): Change type of sprinttime argument from unsigned
1140 long to time_t.
1141 * process.c [HAVE_PRCTL]: Include sys/prctl.h.
1142 [HAVE_PRCTL] (prctl_options, sys_prctl): New for SGI.
1143 (printsiginfo): Conditionally compile SI_TIMER and SI_MESGQ.
1144 Cast si_band member to long before printing.
1145 * signal.c (sigact_flags): Add _SA_BSDCALL for SGI.
1146 (sigprocmaskcmds): Add SIG_SETMASK32 for SGI.
1147 * strace.c [SVR4] [MIPS]:
1148 (foobar): New dummy signal handler.
1149 (main): Install a dummy signal handler in the child before pausing
1150 to work around an SGI bug in PRSABORT.
1151 (proc_open): Send a interrupt to the child instead of aborting the
1152 syscall which doesn't work on Irix5.2.
1153 * svr4/dummy.h: Add new unfinished SGI syscalls
1154 (e.g. sys_sysmp, sys_sginap, etc.). Handle some SGI syscalls like
1155 existing calls (e.g. sys_ksigaction like sys_sigaction).
1156 Printargs does the print thing for sys_sethostid.
1157 * svr4/syscall.h: Declare all new SGI syscalls.
1158 (SGI_KLUDGE): Define syscall table starting index to be 1 for SGI
1159 and add it to all subcall entry points.
1160 (SYS_pgrpsys_subcall, SYS_sigcall_subcall, SYS_context): Don't
1161 decode as subcalls on MIPS. Instead, use the normal syscalls.
1162 * svr4/syscallent.h [MIPS]: Lead syscall table with a dummy entry
1163 since SGI syscall numbers are off by one.
1164 [MIPS] (sys_pgrpsys): Rename to sys_setpgrp on SGI.
1165 [MIPS] (sys_xenix): Rename to sys_syssgi on SGI.
1166 [MIPS] (sys_sysmachine): Rename to sys_sysmips on SGI.
1167 [MIPS]: Conditionalize SVR4 extension into SGI and Solaris classes.
1168 * syscall.c (dumpio): Validate descriptor against MAX_QUALS.
1169 [HAVE_PR_SYSCALL] (syscall): Conditionalize SYS_vfork.
1170 [MIPS] (syscall): Add SGI section for decoding u_error and u_rval.
1171 Add workaround for broken SGI pr_sysarg on syscall entry.
1172 [SVR4] (syscall): Conditionalize subcall decoding for
1173 SYS_ptrpsys_subcall, SYS_sigcall_subcall and SYS_context_subcall.
1174 [SVR4] [MIPS] (getrval2): Handle SGI.
1175 * syscallent.sh: Dork the sed line to be choosier about SYS_ lines.
1176 * system.c [HAVE_SYSCONFIG_H]: Include sys/sysconfig.h.
1177 [MIPS] (syssgi_options, sys_syssgi): New for SGI.