Sean Eric Fagan
893618352c
Handle the case where we truss an SUGID program -- in particular, we need
...
to wake up any processes waiting via PIOCWAIT on process exit, and truss
needs to be more aware that a process may actually disappear while it's
waiting.
Reviewed by: Paul Saab <ps@yahoo-inc.com>
2000-01-10 04:09:05 +00:00
Peter Wemm
c3aac50f28
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
Mike Smith
dcbdc0b9b5
Flush the output file before exiting; short-lived programs don't even fill
...
the stdio buffer.
1998-12-21 06:34:50 +00:00
Sean Eric Fagan
50cc4492c6
Alpha support for truss. I tested this on both bento and beast (thanks,
...
Jordan, for pointing me at beast!). There should be no change for the
i386 version.
1998-10-03 00:43:05 +00:00
Sean Eric Fagan
3625b5147c
Use a default execution type if none of the listed ones match. This
...
uses the first type listed in the array as the default type. This isn't
perfect, but I thought it would be better than nothing.
1998-09-07 05:49:43 +00:00
Martin Cracauer
9a4902a99f
When exiting on SIGINT, exit with signal status
1998-08-24 10:17:20 +00:00
Bruce Evans
22694ebad5
Fixed printf format errors.
1998-07-06 21:01:54 +00:00
John-Mark Gurney
ad6af66e58
include sys so it builds on 2.2.x
...
also, fix misspelling of -1 (as EOF for getopt)
1998-01-07 06:19:50 +00:00
Philippe Charnier
3cf51049e0
Sort Xrefs. Use err(3). Remove uneeded #include.
...
Correct usage: one of {-p pid, command} is required.
Open output file when command line is fully analyzed: incorrect `truss -o f'
command does not create an empty file anymore.
1998-01-05 07:30:26 +00:00
Sean Eric Fagan
09d64da3a4
Add some copyright and license terms, at Jordan's request. Note that
...
syscall.h just refers to another file for the copyright notice.
1997-12-20 18:40:43 +00:00
Sean Eric Fagan
d7b7dcba41
Change the ioctls for procfs around a bit; in particular, whever possible,
...
change from
ioctl(fd, PIOC<foo>, &i);
to
ioctl(fd, PIOC<foo>, i);
This is going from the _IOW to _IO ioctl macro. The kernel, procctl, and
truss must be in synch for it all to work (not doing so will get errors about
inappropriate ioctl's, fortunately). Hopefully I didn't forget anything :).
1997-12-13 03:13:49 +00:00
Sean Eric Fagan
ad9e02601c
Complain about empty command lines.
1997-12-06 17:13:54 +00:00
Peter Wemm
8789393452
recognize "FreeBSD ELF" as an executable type
...
close() takes a fd, not a char * :-)
1997-12-06 14:41:41 +00:00
Peter Wemm
95c4ef653b
#include <unistd.h> to get it to compile
...
Submitted by: Andreas Klemm <andreas@klemm.gtn.com>
1997-12-06 14:39:30 +00:00
Sean Eric Fagan
bbeaf6c0c9
Truss program. Requires procfs.
1997-12-06 05:23:12 +00:00