summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss
Commit message (Collapse)AuthorAgeFilesLines
* cc -O -pipe -I/usr/src/usr.bin/kdump/../ktrace ↵jkh2000-09-141-2/+6
| | | | | | -I/usr/src/usr.bin/kdump/../.. Fix ioctl.c creation to deal with the depend case more properly. Submitted by: Ruslan Ermilov <ru@sunbay.com>
* remove .PHONY to avoid gratuitous rebuild of ioctl.c each time.jkh2000-09-141-1/+1
| | | | Approved by: sef
* Make auto-generated ioctl.c to be always considered out of dateru2000-08-011-1/+1
| | | | | | since it could potentially depend on any ${DESTDIR}/usr/include preprocessor file. This fixes the broken -DNOCLEAN world build I experienced yesterday.
* Change the output of truss to more closely resemble SysV's. (Yes, itsef2000-03-187-31/+24
| | | | | | really is much nicer looking.) Submitted by: "Matthew N. Dodd" <winter@jurai.net>
* Fix a leak. (Thanks Bruce, this was a bonehead mistake on my part :).)sef2000-02-151-3/+8
| | | | Submitted by: Bruce Evans
* Fxi various man pages to stop abusing the .Bx macro to generatempp2000-01-231-2/+2
| | | | | | | the string "FreeBSD". Use the .Fx macro instead. Also did some minor re-wording/formatting to work around a deficiency with the .Fx macro when it comes to puncuation characters other than periods and commas.
* Handle the case where we truss an SUGID program -- in particular, we needsef2000-01-102-3/+18
| | | | | | | | 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>
* Fix for the new usage of mkioctlsmarcel1999-12-031-1/+1
|
* ${MACHINE} -> ${MACHINE_ARCH}marcel1999-11-141-1/+3
| | | | | | | | | | | | | | | | All Makefiles now use MACHINE_ARCH for the target architecture. Unification is required for cross-building. Tags added to: sys/boot/Makefile sys/boot/arc/loader/Makefile sys/kern/Makefile usr.bin/cpp/Makefile usr.bin/gcore/Makefile usr.bin/truss/Makefile usr.bin/gcore/Makefile: fixed typo: MACHINDE -> MACHINE_ARCH
* Add $FreeBSD$ lines to man pages that are missing them to make itmpp1999-08-281-0/+2
| | | | | | | easier for translation teams. PR: docs/13418 Submitted by: Alexey Zelkin <phantom@cris.net>
* $Id$ -> $FreeBSD$peter1999-08-289-9/+9
|
* Teach truss to print symbolic signal names (e.g. SIGHUP instead of 0x01).des1999-08-102-3/+24
|
* Add access(2) to the list of recognized syscalls.des1999-08-051-1/+2
|
* Flush the output file before exiting; short-lived programs don't even fillmsmith1998-12-211-1/+2
| | | | the stdio buffer.
* 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