ru
b67068895d
mdoc(7) police: markup polishing.
...
Approved by: re
2002-11-26 17:33:37 +00:00
marcel
9400cb3a69
Port to ia64. It builds, but usability is very limited.
2002-11-10 00:59:13 +00:00
dwmalone
24262691d4
Various cleanups of truss:
...
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.
2002-11-09 22:46:51 +00:00
dwmalone
7fa8d22f67
Check if name is NULL before we strcmp the syscall name. This was
...
sometimes triggered if you began trussing a process while it was
in a syscall, as the name is filled in when the syscall is made.
2002-11-09 22:28:38 +00:00
mike
d72c913927
Don't depend on <signal.h> to include <sys/time.h>, instead include
...
<sys/time.h> directly. This is mostly bogus since CLOCK_REALTIME
should be defined in <time.h>, which these files already include.
2002-10-06 21:46:04 +00:00
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