mdodd
582f479cac
Remove an unnecessary cast.
2002-08-07 11:35:18 +00:00
mdodd
d20661ba22
- Use time.h not sys/time.h.
...
- Fix printf format errors.
Submitted by: bde
2002-08-06 12:46:14 +00:00
mdodd
e46b84ca00
Remove extra space in output.
2002-08-05 14:56:20 +00:00
mdodd
a4b3e13b54
Diff reduction.
2002-08-05 13:23:41 +00:00
mdodd
2ba9baa8d3
Use timespec not timeval.
2002-08-05 12:22:55 +00:00
jake
38c44f7803
Ported to sparc64.
2002-08-04 17:57:01 +00:00
bde
4418f4740b
Include <sys/time.h> for the declaration of struct timeval. Do not
...
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.)
2002-08-04 10:57:41 +00:00
mdodd
c3ab10b179
Add options to print the argument and environment string parameters to
...
execve().
This could be done in a more general manner but it still wouldn't
be very pretty.
MFC after: 3 weeks
2002-08-04 02:24:21 +00:00
mdodd
b4aa304f72
Add a "FreeBSD ELF32" entry to ex_types[].
2002-08-04 02:20:06 +00:00
mdodd
ca2c836450
Terminate the output line when a non-returning syscall is printed.
2002-08-04 01:28:13 +00:00
mdodd
3cb287247d
Add options to print absolute and relative timestamps.
...
PR: bin/25587 (in part)
MFC after: 3 weeks
2002-08-04 01:27:31 +00:00
mdodd
65f8611398
Allow tracking fork()ed children.
...
PR: bin/25587 (in part)
MFC after: 3 weeks
2002-08-04 01:02:52 +00:00
mdodd
357fc6060d
Parameterize globals.
...
PR: bin/25587 (in part)
MFC after: 3 weeks
2002-08-04 00:46:48 +00:00
markm
7b9c43466d
s/inline/__inline/
2002-07-19 13:49:37 +00:00
peter
7fc284ffb7
OOPS! rev 1.16 accidently changed the default outfile from stderr to
...
stdout. Unfortunately, DES mfc'ed this change in 1.15.2.1 (this
part probably should not have been) so it is broken there too.
truss is documented to use stderr, and other implementations use stderr.
Submitted by: Arne Dag Fidjestøl <adf@idi.ntnu.no>
2002-05-16 21:58:57 +00:00
peter
22e8a6eda2
Do not bother with #include <machine/psl.h> since it is just a stub file
...
that says something like "/* Not used on Alpha */".
2002-05-01 06:23:48 +00:00
dwmalone
4c92f1efea
Use fseeko and uintptr_t to make sure that we get a sensible offset
...
when trying to read from the stack.
PR: 37104
Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org>
MFC after: 3 weeks
2002-04-21 19:04:26 +00:00
charnier
ad8a79e6a5
Use `The .Nm utility'
2002-04-20 12:18:28 +00:00
ru
ff35a38e49
I now don't seem to be able to reproduce the -DNOCLEAN buildworld
...
breakage with ioctl.c. The .depend file should track dependencies
just fine, and the worst we can have is to miss new ioctls.
But I still think it's a good idea to have -DNOCLEAN build produce
the same ioctl.c as it would without -DNOCLEAN.
Prodded for a long time by: bde
2002-04-11 14:49:32 +00:00
markm
31d81e4fbc
Remove NO_WERRORs and WARNS=n's. To be revisited after GCC3.
2002-02-08 23:07:37 +00:00
des
3592b29f5e
Fix the code that selects the default binary type if the actual type can't
...
be determined.
PR: bin/34698
Submitted by: (in part) Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
MFC after: 1 weeks
2002-02-08 12:42:55 +00:00
alfred
275bf1142e
Print open(2) flags in hex instread of decimal for clarity.
2001-12-30 23:11:52 +00:00
markm
87c4eaeeed
Partial WARNS=1 fizes with NO_WERROR set to prevent world breakage.
...
Use __FBSDID().
2001-12-11 23:34:02 +00:00
des
69c40b2704
Print the correct return code for successful Linux syscalls.
...
Submitted by: Vitezslav Novy <vita@fio.cz>
PR: 32036
MFC after: 1 week
2001-11-17 17:18:36 +00:00
green
b9c07fd74b
Add missing include for <ctype.h>
...
Make sockaddr printing code unbad.
Always copy in sizeof(sockaddr_un) bytes for an AF_UNIX sockaddr,
despite what the length may be.
2001-11-06 19:26:51 +00:00
des
7a633d0499
Back out part of previous commit: remove #include <sys/proc.h>.
2001-10-22 15:32:12 +00:00
des
18f9515264
#include <sys/proc.h> where needed (for the stop event definitions) and
...
reorder includes everywhere to conform to style(9).
2001-10-22 02:02:00 +00:00
des
90be41ff5d
Teach truss(1) to display sockaddrs. It currently knows about AF_INET,
...
AF_INET6 and AF_UNIX sockaddrs, and will recognize accept(), bind(),
connect(), getpeername() and getsockname() as syscalls taking sockaddr
arguments. Some enterprising soul might want to add (and test) support
for the send() / recv() family of syscalls as well.
MFC after: 1 week
2001-10-21 21:57:10 +00:00
joerg
c9d495ceb8
In get_string(), 0-terminate the contents of buf ``just in case'';
...
otherwise, if the very first fgetc() already yielded EOF, the returned
string won't get terminated at all.
MFC after: 1 day
2001-08-28 21:27:36 +00:00
peter
abfe61de7f
Initialize outfile in main()
2001-08-13 21:59:04 +00:00
dd
911ca14c87
Remove whitespace at EOL.
2001-07-15 08:06:20 +00:00
ru
36f138439b
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 14:16:33 +00:00
ru
e6cfc0711d
Prepare for mdoc(7)NG.
2000-12-19 16:00:12 +00:00
ru
ee79097019
mdoc(7) police: use canonical form of .Dd macro.
2000-12-11 15:47:53 +00:00
ru
0d1334ca0c
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 19:21:22 +00:00
jkh
eeb064d69c
cc -O -pipe -I/usr/src/usr.bin/kdump/../ktrace -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>
2000-09-14 18:53:08 +00:00
jkh
2a8c03de9e
remove .PHONY to avoid gratuitous rebuild of ioctl.c each time.
...
Approved by: sef
2000-09-14 06:20:19 +00:00
ru
1b4cdf40dc
Make auto-generated ioctl.c to be always considered out of date
...
since it could potentially depend on any ${DESTDIR}/usr/include
preprocessor file. This fixes the broken -DNOCLEAN world build
I experienced yesterday.
2000-08-01 10:21:13 +00:00
sef
855f88c9ee
Change the output of truss to more closely resemble SysV's. (Yes, it
...
really is much nicer looking.)
Submitted by: "Matthew N. Dodd" <winter@jurai.net>
2000-03-18 08:49:41 +00:00
sef
0446e158ad
Fix a leak. (Thanks Bruce, this was a bonehead mistake on my part :).)
...
Submitted by: Bruce Evans
2000-02-15 20:25:47 +00:00
mpp
8efad4996b
Fxi various man pages to stop abusing the .Bx macro to generate
...
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.
2000-01-23 01:48:16 +00:00
sef
31b9ca1819
Handle the case where we truss an SUGID program -- in particular, we need
...
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>
2000-01-10 04:09:05 +00:00
marcel
5d3899446e
Fix for the new usage of mkioctls
1999-12-03 17:35:34 +00:00
marcel
17ed6e05da
${MACHINE} -> ${MACHINE_ARCH}
...
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
1999-11-14 13:54:44 +00:00
mpp
59a037c52b
Add $FreeBSD$ lines to man pages that are missing them to make it
...
easier for translation teams.
PR: docs/13418
Submitted by: Alexey Zelkin <phantom@cris.net>
1999-08-28 23:23:38 +00:00
peter
3b842d34e8
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
des
6b0342e396
Teach truss to print symbolic signal names (e.g. SIGHUP instead of 0x01).
1999-08-10 16:57:37 +00:00
des
4df48d07f1
Add access(2) to the list of recognized syscalls.
1999-08-05 12:03:50 +00:00
msmith
131312c0d6
Flush the output file before exiting; short-lived programs don't even fill
...
the stdio buffer.
1998-12-21 06:34:50 +00:00
sef
9e0aee1ff0
Add lstat() as a known system call.
1998-10-15 04:31:44 +00:00