summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss/sparc64-fbsd.c
Commit message (Collapse)AuthorAgeFilesLines
* - Fix crash when hitting unknown syscall. Copied from i386-fbsd.cpav2006-05-151-1/+2
| | | | Approved by: alfred
* Add a -s flag for the same functionality as strace. Introduce a Namebrian2006-01-021-2/+2
| | | | | | | | | | | | | | | | type which is a String type that has no -s limitations applied to it. Change most Strings in the code to Names and add a few extra syscalls, namely munmap, read, rename and symlink. This was enough to facilitate following file descriptor allocations in the code more easily and getting a hint at what's being read/written from/to files. More syscalls should really be added. While here, fix an off-by-one bug in the buffer truncation code and add a fflush so that truss's output reflects the syscall that the program is stuck in. Sponsored by: Sophos/Activestate MFC after: 2 weeks
* 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-11/+7
| | | | | | | | | | | | | | | | | | 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-4/+4
|
* Ported to sparc64.jake2002-08-041-0/+362
OpenPOWER on IntegriCloud