summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Partial WARNS=1 fizes with NO_WERROR set to prevent world breakage.markm2001-12-111-22/+9
| | | | Use __FBSDID().
* Back out part of previous commit: remove #include <sys/proc.h>.des2001-10-221-1/+0
|
* #include <sys/proc.h> where needed (for the stop event definitions) anddes2001-10-221-2/+5
| | | | reorder includes everywhere to conform to style(9).
* Initialize outfile in main()peter2001-08-131-1/+2
|
* Handle the case where we truss an SUGID program -- in particular, we needsef2000-01-101-2/+9
| | | | | | | | 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>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Flush the output file before exiting; short-lived programs don't even fillmsmith1998-12-211-1/+2
| | | | the stdio buffer.
* Alpha support for truss. I tested this on both bento and beast (thanks,sef1998-10-031-1/+12
| | | | | Jordan, for pointing me at beast!). There should be no change for the i386 version.
* Use a default execution type if none of the listed ones match. Thissef1998-09-071-1/+10
| | | | | 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.
* When exiting on SIGINT, exit with signal statuscracauer1998-08-241-1/+9
|
* Fixed printf format errors.bde1998-07-061-3/+3
|
* include sys so it builds on 2.2.xjmg1998-01-071-2/+2
| | | | also, fix misspelling of -1 (as EOF for getopt)
* Sort Xrefs. Use err(3). Remove uneeded #include.charnier1998-01-051-23/+24
| | | | | | 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.
* Add some copyright and license terms, at Jordan's request. Note thatsef1997-12-201-1/+33
| | | | syscall.h just refers to another file for the copyright notice.
* Change the ioctls for procfs around a bit; in particular, whever possible,sef1997-12-131-2/+2
| | | | | | | | | | | | | | 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 :).
* Complain about empty command lines.sef1997-12-061-2/+2
|
* recognize "FreeBSD ELF" as an executable typepeter1997-12-061-2/+3
| | | | close() takes a fd, not a char * :-)
* #include <unistd.h> to get it to compilepeter1997-12-061-1/+2
| | | | Submitted by: Andreas Klemm <andreas@klemm.gtn.com>
* Truss program. Requires procfs.sef1997-12-061-0/+201
OpenPOWER on IntegriCloud