History log of /freebsd-10-stable/usr.bin/ktrace/ktrace.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 226504 18-Oct-2011 des

Make ktrace(1) build cleanly at WARNS level 6 by completely rethinking the
way in which it handles the -C, -c, -g and -p options.

MFC after: 3 weeks


# 223493 24-Jun-2011 kevlo

Remove duplicated header files


# 219043 25-Feb-2011 dchagin

Teach kdump to understand sv_flags records in the trace files.

MFC after: 1 Month.


# 216370 11-Dec-2010 joel

Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with: imp, rwatson


# 177856 02-Apr-2008 ru

Spell -t option's argument by name.


# 177446 20-Mar-2008 des

Fix usage string.


# 166679 12-Feb-2007 mpp

Allow the -c -f file options to actually execute.


# 156715 14-Mar-2006 rwatson

When opening a trace file, open O_NONBLOCK so that ktrace doesn't stall
if the target is a fifo. After opening a trace file, check that it is a
regular file, and if not, return an error.

MFC after: 3 days
Reported by: kris
PR: 94278


# 110401 05-Feb-2003 charnier

Do not start err(3) strings with uppercase nor dot terminate them.
Standard sccsid[] area according to style(9).


# 99112 30-Jun-2002 obrien

Consistently use FBSDID


# 95649 28-Apr-2002 markm

Warnings fix; ANSIfy, constify, mark unused function parameter(s).


# 93523 01-Apr-2002 dwmalone

1) Clean up vendor and ID strings.
2) include stdlib.h for atoi.
3) staticise and constify.
4) add some missing prototypes.
5) add some parens to keep gcc happy.


# 92920 21-Mar-2002 imp

remove __P


# 78864 27-Jun-2001 mikeh

Sync manpage and usage. Also fix bug that would always interpret a -c as a
process clear.

PR: bin/15456
MFC after: 2 weeks


# 65428 04-Sep-2000 imp

getopt and friends are declared in <unistd.h>
getopt returns -1 not EOF.


# 62894 10-Jul-2000 kris

Don't call err() with no format string.


# 50477 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 27472 17-Jul-1997 charnier

Cosmetic in usage string.


# 24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# 23894 15-Mar-1997 joerg

Fix a security problem where the ktrace.out file could have been written
over a file owned by someone else.

Pointed out by: wosch
Reviewed by: sef, imp, proff@suburbia.net, bde


# 23012 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 18399 19-Sep-1996 phk

The userland change to the utrace(2) call.


# 16844 30-Jun-1996 joerg

Do always create ktrace.out with mode 0600, to prevent it from
accidentally compromising information confidential to the user running
ktrace.


# 16509 19-Jun-1996 jraynard

Merged in 4.4Lite2 versions, added $Id$'s. The ktrace changes should
fix the garbage error messages printed out under certain circumstances.


# 8874 30-May-1995 rgrimes

Remove trailing whitespace.


# 2354 28-Aug-1994 ats

Reviewed by:
Submitted by:
Put in a signal handler to catch the SIGSYS signal that indicates that
ktrace was not built into the kernel and prevent ktrace to core dump
somewhere.


# 1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.


# 1590 27-May-1994 rgrimes

BSD 4.4 Lite Usr.bin Sources