summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss/amd64-linux32.c
Commit message (Collapse)AuthorAgeFilesLines
* Support readlink(2) better. Readlink does not nul terminate thealfred2004-07-171-2/+2
| | | | | | | | result buffer, so we need to format it ourselves. The problem is that the length is stored as the return value from readlink, so we need to pass the return value from our syscall into print_arg. Motivated by: truss garbage on my screen from reading /etc/malloc.conf.
* Move declarations of Procfd to a header file.dwmalone2004-01-071-1/+0
|
* Port truss(1) to 64-bit architectures:marcel2003-11-091-12/+9
| | | | | | | | | | | | | | | | | | o Syscall return values do not fit in int on 64-bit architectures. Change the type of retval in <arch>_syscall_exit() to long and change the prototype of said function to return a long as well. o Change the prototype of print_syscall_ret() to take a long for the return address and change the format string accordingly. o Replace the code sequence tmp = malloc(X); sprintf(tmp, format, ...); with X by definition too small on 64-bit platforms by asprintf(&tmp, format, ...); With these changes the output makes sense again, although it does mess up the tabulation on ia64. Go widescreen... Not tested on: alpha, sparc64.
* Various cleanups of truss:dwmalone2002-11-091-15/+19
| | | | | | | | | | | 1) Missing include. 2) Constness. 3) ANSIfication. 4) Avoid some shadowing. 5) Add/clarify some error messages. 6) Some int functions were using return without a value. 7) Mark some parameters as unused. 8) Cast a value we know is non-negative to a size_t before comparing.
* - Use time.h not sys/time.h.mdodd2002-08-061-1/+1
| | | | | | - Fix printf format errors. Submitted by: bde
* Diff reduction.mdodd2002-08-051-60/+112
|
* Include <sys/time.h> for the declaration of struct timeval. Do notbde2002-08-041-0/+1
| | | | | | depend on namespace pollution in <signal.h>. (truss shouldn't be using timevals anyway, since it was implemented long after timevals were obsoleted by timespecs.)
* Add options to print the argument and environment string parameters tomdodd2002-08-041-0/+18
| | | | | | | | | execve(). This could be done in a more general manner but it still wouldn't be very pretty. MFC after: 3 weeks
* Terminate the output line when a non-returning syscall is printed.mdodd2002-08-041-0/+1
|
* Allow tracking fork()ed children.mdodd2002-08-041-0/+7
| | | | | PR: bin/25587 (in part) MFC after: 3 weeks
* Parameterize globals.mdodd2002-08-041-20/+22
| | | | | PR: bin/25587 (in part) MFC after: 3 weeks
* s/inline/__inline/markm2002-07-191-1/+1
|
* Partial WARNS=1 fizes with NO_WERROR set to prevent world breakage.markm2001-12-111-1/+2
| | | | Use __FBSDID().
* Print the correct return code for successful Linux syscalls.des2001-11-171-1/+2
| | | | | | Submitted by: Vitezslav Novy <vita@fio.cz> PR: 32036 MFC after: 1 week
* #include <sys/proc.h> where needed (for the stop event definitions) anddes2001-10-221-4/+7
| | | | reorder includes everywhere to conform to style(9).
* Change the output of truss to more closely resemble SysV's. (Yes, itsef2000-03-181-4/+1
| | | | | | really is much nicer looking.) Submitted by: "Matthew N. Dodd" <winter@jurai.net>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fixed printf format errors.bde1998-07-061-3/+3
|
* Revert the changes yet again, after some email from Bruce. Sorry.sef1998-01-091-3/+3
|
* Proper way to do the previous mis-commit. Still not quite right, becausesef1998-01-091-3/+3
| | | | | | | 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.
* Sort Xrefs. Use err(3). Remove uneeded #include.charnier1998-01-051-10/+9
| | | | | | 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.
* Truss program. Requires procfs.sef1997-12-061-0/+221
OpenPOWER on IntegriCloud