summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss
Commit message (Collapse)AuthorAgeFilesLines
* Add lstat() as a known system call.sef1998-10-151-1/+3
|
* Calls one or more of malloc(), warn(), err(), syslog(), execlp() ordes1998-10-131-4/+4
| | | | | | | | | | | execvp() in the child branch of a vfork(). Changed to use fork() instead. Some of these (mv, find, apply, xargs) might benefit greatly from being rewritten to use vfork() properly. PR: Loosely related to bin/8252 Approved by: jkh and bde
* Use MACHINE_ARCH instead of MACHINE to detect x86 arch.kato1998-10-071-1/+1
| | | | Pointed out by: Akio Morita <amorita@meadow.scphys.kyoto-u.ac.jp>
* Make it compile -Wall cleanly.sef1998-10-031-2/+3
| | | | Submitted by: Alex Nash <nash@mcs.net>
* Alpha support for truss. I tested this on both bento and beast (thanks,sef1998-10-033-3/+351
| | | | | 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-066-21/+21
|
* Add a sysmk -> /dev/null definition ready for a coming change tojb1998-01-252-0/+2
| | | | makesyscalls.sh.
* Revert the changes yet again, after some email from Bruce. Sorry.sef1998-01-095-13/+13
|
* Proper way to do the previous mis-commit. Still not quite right, becausesef1998-01-095-13/+13
| | | | | | | some header files (e.g., <err.h>) include <machine/something.h>, and this will not pick up the right header files, so it may be removed eventually anyway. But some people who are not willing to build the right way apparantly want this, so this is for them.
* Get rid of the bogus include -- it is incomplete (as it doesn't handlesef1998-01-091-1/+1
| | | | | | | | anything other than <sys/*.h>), and unnecessary in most cases. (The situations where it is necesary can be dealt with by manually-made symlinks, which is acceptable since they should only occur during testing. Remember: the tree does not compile well if you do not have matching header files installed. Half-baked -I directives don't cover enough of the cases.)
* include sys so it builds on 2.2.xjmg1998-01-072-3/+3
| | | | also, fix misspelling of -1 (as EOF for getopt)
* Sort Xrefs. Use err(3). Remove uneeded #include.charnier1998-01-058-100/+107
| | | | | | 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-208-8/+234
| | | | 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-132-15/+11
| | | | | | | | | | | | | | 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 :).
* s/ps/truss/peter1997-12-071-1/+1
|
* Use the new PF_LINGER flag -- when this is set in a process' proc structure,sef1997-12-071-1/+20
| | | | | | | | | said process will not have its event mask cleared (and be restarted) on the last close of a procfs/mem file for that pid. This reduces the chance that a truss-monitored process will be left hanging with these bits set and nobody looking for it. This is the least-tested change of all of these, I'm afraid.
* Complain about empty command lines.sef1997-12-061-2/+2
|
* err(3) already includes strerror(errno) and a trailing \npeter1997-12-061-6/+6
|
* 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>
* Set the close-on-exec flag in the child; otherwise, it eats up asef1997-12-061-1/+2
| | | | file descriptor that it shouldn't.
* First cut at printing out ioctl names intelligently. Note that this doesn'tsef1997-12-063-5/+22
| | | | | | | handle linux ioctls (yet?). This uses the mkioctl script from kdump, bless its little heart. Reviewed by: Mike Smith
* Truss program. Requires procfs.sef1997-12-0612-0/+1667
OpenPOWER on IntegriCloud