Commit Graph

2637 Commits

Author SHA1 Message Date
Jens Schweikhardt
2b239dd118 Fix typos; each file has at least one s/seperat/separat/
(I skipped those in contrib/, gnu/ and crypto/)
While I was at it, fixed a lot more found by ispell that I
could identify with certainty to be errors. All of these
were in comments or text, not in actual code.

Suggested by:	bde
MFC after:	3 days
2002-08-11 13:05:30 +00:00
Juli Mallett
89d22e2f06 As of revision 1.38 of make/parse.c, our make(1) will warn too. Note that
this isn't just for the sake of testing behaviour, and that things really
do break if this regression occurs.
2002-07-28 03:57:08 +00:00
Poul-Henning Kamp
5fc8ac9eb8 Update to current reality: change COMPILEDIR and work on "R"ead-only-data
symbols as well.
2002-07-19 10:29:07 +00:00
Tim J. Robbins
54411faf6f Update another mention of <CR><CR> I missed the first time around (rev 1.2) 2002-07-04 05:16:19 +00:00
Tim J. Robbins
bfed7b6485 Note that two carriage returns aren't required after entering the
initial setup anymore (since process.c rev. 1.25). Add $FreeBSD$.

MFC after:	2 weeks
2002-07-03 14:42:53 +00:00
Julian Elischer
92fd482f2b KSE test program 2002-06-29 17:39:07 +00:00
Juli Mallett
7588db83d2 The wrong y/// output got spammed into this file; from green@ indirectly. 2002-06-27 16:07:51 +00:00
Brian Feldman
e6acea8d1b Correct the psl regression test for sed(1)'s now-fixed newline
behavior.  Add the bcb regression test which checks for failures due
to a backslash ('\') coinciding with the very last character of the
command buffer.  The regression test is cf. this PR (which I did not
know about) and has a different fix for the bug.

PR:		bin/22351
Submitted by:	Stefan Duerholt <stefan.duerholt@t-online.de>
2002-06-27 15:58:59 +00:00
Juli Mallett
806893862d Erk, I forgot that regress.in has an ending newline, so change the test for
transliterate to use echo -n to supress newline and a simple string.
2002-06-26 16:57:36 +00:00
Juli Mallett
7afbc0985e Reduce internal code duplication, add REGRESSION_PASSFAIL([testname]) to
handle printing of the PASS/FAIL messages.  Suffix PASS/FAIL/FATAL with the
string (in $directory) where $directory is ${.CURDIR} from make(1), to
make it easier to use grep(1) and a bit of sed/awk to do statistics of
failure for some utilities over time, etc.
2002-06-25 12:40:04 +00:00
Juli Mallett
8c08ccea29 Add a regression test for transliterate which happens to match characters
at an EOL/EOF, and therefore should catch the broken behaviour fixed by
Tim J. Robbins in sed(1) recently.

Suggested by:	obrien
2002-06-25 12:10:09 +00:00
Juli Mallett
f0030ec090 I explicitly meant to not move any of this over to the new m4(1) framework,
even slightly.  Grrr CVS.
2002-06-24 14:29:19 +00:00
Juli Mallett
fa9fbb5f01 Move all remaining tests except for:
make(1):	Does not work like the other tests.  Its Makefile is
			self-testing.
	m4(1):		It uses complex voodo to test GNU m4(1) features.

To the new framework.  I had worried about passing the binary data that
uudecode(1)'s test passes to diff(1) might give a user something nasty,
but this is unlikely to happen as even with an unmodified old nasty
diff(1) which doesn't recognise many binary files, these binary files
are recognised.  Using $DIFF instead of `diff' in the library and making
it possible to override this with `cmp -s' might be nice some day, but
as of this second, there's no immediate need.
2002-06-24 14:22:44 +00:00
Juli Mallett
e51cc505de Add two new mostly freeform types of regression tests, and a macro for dying
ungracefully.
2002-06-24 14:19:57 +00:00
Juli Mallett
265056cbaa Comments to describe what these macros do, so that someone other than me
might be able to figure out how to write some of these tests (hint hint).
2002-06-24 13:58:20 +00:00
Juli Mallett
c178c79dd8 Convert straightforward regression tests to use regress.m4.
Goodbye, duplicated code, you will certainly not be missed.
2002-06-24 13:52:28 +00:00
Juli Mallett
d54336bd0d Add a simple (to be expanded) library of functions for the regression tests,
to handle the ones which output to stdout and have output in regress.$test.out,
etc.  More freeform macros should and will be written, but these are the most
prominent and most straightforward sort of tests we have around, so it makes
sense to try to accomodate them.
2002-06-24 13:51:30 +00:00
Juli Mallett
6d5fda5fd5 Grrr, make the test for embedded variables in the left-hand-side actually do
the right thing in every case.  Yuck.
2002-06-20 03:08:20 +00:00
Juli Mallett
0aa9e01c51 Add a test for what was fixed in revision 1.27 and 1.28 of make(1)'s var.c,
expansion of embedded variables in the left-hand-side of an assignment
expression, using the simplest case - hiding recursion using nil-expanded
variables.
2002-06-19 18:57:04 +00:00
Poul-Henning Kamp
7aca952dca Catch up with kernel. 2002-06-09 10:59:04 +00:00
Juli Mallett
80ad7ca938 Describe ia64_unaligned and geom directories. I hope I got these right. 2002-06-07 05:41:15 +00:00
Juli Mallett
cac5b46828 Add the m4(1) regression test. 2002-06-07 05:32:00 +00:00
Juli Mallett
ca982dadd5 Add a regression test for m4(1).
This checks the behaviour of changecom() in both GNU and BSD modes of our m4.
2002-06-07 05:31:32 +00:00
Ruslan Ermilov
f898af652d Fixed typos. 2002-06-06 14:08:04 +00:00
Ruslan Ermilov
c2968c8831 Tidy up. 2002-06-06 14:07:45 +00:00
Jens Schweikhardt
21dc7d4f57 Fix typo in the BSD copyright: s/withough/without/
Spotted and suggested by:	des
MFC after:	3 weeks
2002-06-02 20:05:59 +00:00
Ruslan Ermilov
a040962b89 Update for current /usr/src. 2002-05-28 08:25:29 +00:00
Dag-Erling Smørgrav
a82b0a83af Mutex statistics script. 2002-05-26 12:02:36 +00:00
Poul-Henning Kamp
a05068c0d6 Update to match kernel side.
Sponsored by: DARPA & NAI Labs.
2002-05-21 20:42:51 +00:00
Poul-Henning Kamp
425b005dba Catch up with recent events.
Sponsored by:	DARPA & NAI Labs.
2002-05-19 18:57:03 +00:00
Juli Mallett
b30e60d8b4 Regenerate with new output grouping in uuencode -m. 2002-05-17 12:27:31 +00:00
Tom Rhodes
9b51759707 file system > filesystem 2002-05-16 05:03:56 +00:00
Juli Mallett
a9b736ad72 Add a regression test for bin/5297, regarding sysv substitution with a nil
left-hand-side.
2002-05-05 19:02:30 +00:00
Juli Mallett
de8541ffe6 Add a test for the -R option. 2002-05-03 18:44:43 +00:00
Juli Mallett
af2c59f62e Regenerate -I output since an argument bogon in the -I code was fixed, among
other things.
2002-05-03 14:31:28 +00:00
Poul-Henning Kamp
c2ca8f13d4 Modernize 2002-05-02 20:09:14 +00:00
Poul-Henning Kamp
dafa52b753 Un-rot the VOP_ table generator. 2002-05-02 13:51:04 +00:00
Juli Mallett
4b7f276dfd Redirect stdin from the input file, rather than passing the input file to
uuencode(1), and set a umask, so that the mode in the header is predictable.

If it varies, then the test is right to fail.

Remove the note about this test falsely failing, with that in mind.
2002-04-27 03:11:33 +00:00
Juli Mallett
624abf8519 Prefix tests with PASS and FAIL, to make grepping easier, and note this in
the README.

This affects only the base-system regression tests, of course.
2002-04-27 02:26:23 +00:00
Poul-Henning Kamp
ec15613777 Update the test-case reference vectors to match the new XML format.
Sponsored by:	DARPA & NAI Labs.
2002-04-24 21:03:26 +00:00
Poul-Henning Kamp
629d50078d Add -DKERNELSIM so the test cases compile with the kernel simulation.
Sponsored by: DARPA & NAI Labs.
2002-04-24 21:00:50 +00:00
Poul-Henning Kamp
fdc34af09a Improve the output in case of inserts or deleted.
Sponsored by: DARPA & NAI Labs.
2002-04-24 20:59:31 +00:00
Poul-Henning Kamp
00d1e0f678 Prepare the .conf XML comparator for a more kosher XML format.
Sponsored by:	DARPA & NAI Labs.
2002-04-24 20:33:04 +00:00
Dag-Erling Smørgrav
d397408818 Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
2002-04-22 13:44:47 +00:00
Juli Mallett
151740b470 For the P function, the newline must be considered a part of the pattern
space, so when printing it, don't let the pattern space and the output run
into eachother by omitting the \n when printing.
2002-04-21 01:27:05 +00:00
Juli Mallett
dd281fa589 Add sed(1) tests for proper behaviour of the G option as fixed in PR 26152,
and for proper behaviour of some sed functions given a nil pattern space,
as fixed in PR 34813.

The test for G was based on the test in the PR.  The nil pattern space test
is slightly different as we need to get *some* output, as the core dump will
also produce no output (old behaviour) and turn up falsely that the utility
is working fine.
2002-04-21 01:04:03 +00:00
Juli Mallett
6d3ca9de2c Check to see if make(1)'s handling of doubly-defined targets is busted or
not.  A lot relies on this.
2002-04-21 00:41:37 +00:00
Juli Mallett
533e28dbe1 Only exit at the end of a test, exit with the last value of $? that was not 0.
This way the entire regression test is looked at as a pass/fail, not just one
sub-test.
2002-04-21 00:18:29 +00:00
Juli Mallett
6541d27cad Add a test of variable evaluation and substitution for make(1), as a start
of tests for it.
2002-04-20 20:57:00 +00:00
Juli Mallett
3f288cae2d Add a test for jot(1). 2002-04-20 19:41:30 +00:00
Juli Mallett
3df2cd2cc9 A simple test for join(1) based on tjr's test case for -o 0.
Partially based on:	PR standards/36072
2002-04-20 19:33:23 +00:00
Juli Mallett
64928717a3 Add an exceedingly simple regression test for the file2c program. One would
hope that it would never regress, but this is a straightforward test, so add
it.
2002-04-20 19:01:21 +00:00
Juli Mallett
f8b175feba Add regression tests for parts of xargs(1). 2002-04-20 18:46:33 +00:00
Juli Mallett
2cf0f79dcb Add a comment regarding the file header, and the mode that the file is created
with.

This should be fixed shortly by adding the (desirable) option to set the file
creation mode on the command line.
2002-04-20 18:44:54 +00:00
Juli Mallett
4de8dc48de Add uuencode(1) and uudecode(1) regression test input and output. 2002-04-20 17:58:13 +00:00
Juli Mallett
88ef037391 Start adding framework for userland regression tests, and tests for
uuencode and uudecode.
2002-04-20 17:20:21 +00:00
Poul-Henning Kamp
6fe599457d update the reference vector. 2002-04-16 16:11:29 +00:00
Poul-Henning Kamp
3db8420666 Forgot to commit the updates to the regression test suite.
Sponsored by:	DARPA & NAI labs.
2002-04-16 11:42:13 +00:00
Dag-Erling Smørgrav
96671974e1 Long-forgotten patch: warn if a closed PR has no "closed by" 2002-04-15 06:36:22 +00:00
Dag-Erling Smørgrav
d4f5290e7d Long-forgotten patch: list prstats 2002-04-15 06:35:36 +00:00
Ruslan Ermilov
4d8bba465e Add a tool (and the first application of it) that could be used
to automate building of libraries.

Prodded by:	bde
2002-04-12 19:46:25 +00:00
Poul-Henning Kamp
fead6f3f5b Play catch up with the kernel.
Sponsored by:	DARPA & NAI Labs
2002-04-04 16:40:11 +00:00
Josef Karthauser
57e778ac14 We might as well show the log message if we're going to produce the patch. 2002-04-01 17:51:27 +00:00
Josef Karthauser
0b6b585a31 Take an option flag to specify that we'd like a patch generated too. 2002-04-01 16:17:12 +00:00
Poul-Henning Kamp
1cd429e807 Add testcase #14: PC98 label. 2002-03-28 21:42:38 +00:00
Poul-Henning Kamp
153ce220d6 Record the physical geometry in this disk-image, PC98 needs it. 2002-03-28 21:42:14 +00:00
Poul-Henning Kamp
00de520ed9 Ignore the <FreeBSD> element in XML files. 2002-03-28 21:41:44 +00:00
Poul-Henning Kamp
ddc8f3b00b Add the relevants sectors from a PC98 disk to our beastiarium.
Submitted by:	imp
2002-03-28 21:09:30 +00:00
Poul-Henning Kamp
0a079a986d Add another two alpha disks to this testcase. 2002-03-27 21:23:06 +00:00
Poul-Henning Kamp
a0dd8cc079 Add another couple of alpha disklabels. 2002-03-27 21:21:29 +00:00
Poul-Henning Kamp
3355fbf025 Track changes in sys/geom 2002-03-26 22:08:04 +00:00
Poul-Henning Kamp
a9ce7dc604 Another bow for tradition s/method/class/g 2002-03-26 21:40:36 +00:00
Ruslan Ermilov
6239d3aebd Finish style fixes. 2002-03-26 13:02:15 +00:00
Poul-Henning Kamp
42c159fe38 Modernize my email address. 2002-03-25 14:12:49 +00:00
Poul-Henning Kamp
c252d16969 Link testcase 13 in. 2002-03-24 14:40:15 +00:00
Poul-Henning Kamp
f72048de0e Add a testcase for the alpha BSD label from beast. 2002-03-24 14:29:39 +00:00
Poul-Henning Kamp
6ecdfd62c6 Add a copy of the bsd-label from beast.freebsd.org 2002-03-24 13:54:01 +00:00
Poul-Henning Kamp
06bce47d34 Update to reflect new contents of sys/geom 2002-03-24 11:22:06 +00:00
Poul-Henning Kamp
6de2a2e8a5 Some necesary fixups to cope with new location and FreeBSD CVS keyword. 2002-03-17 19:16:14 +00:00
Poul-Henning Kamp
31304807c1 Add the GEOM regression test framework.
This is a set of userland shims in which GEOM can be run through simple
tests.

The simulation of kernel synchronization primitives is very primitive
and consequently some times tests will fail because of races.

Data/ contains a number of files in XML format which describe the
key sectors for a number of disk images

This is a very handy tool for people developing GEOM methods.  The
"simdisk" method can be told to read from a "real disk" and afterwards
dump the accessed sectors in XML format for further use.

I hope future method writes will see the benefit of this test
collection and add to it when they write methods for GEOM.

You will need ports/textproc/expat for the XML parser.

Sponsored by:   DARPA, NAI Labs.
2002-03-17 18:53:58 +00:00
Robert Watson
cd7aba4057 NAI DBA update. 2002-03-14 20:08:51 +00:00
Josef Karthauser
49ae32af4f Add a tool that I've written to help with finding what other
files/revisions were changed with a particular commit.
2002-02-28 20:12:52 +00:00
Alexey Zelkin
b5ed0bcd23 Complete '_' hack. 2002-02-07 19:32:40 +00:00
Alexey Zelkin
dca7443ba8 . add a hack dedicated to n_himba (or correctly to say problem with his nick
in docbook environment)
. clarify comments
. mention that this script is dedicated to freefall's environment
. add bsd style copyright
2002-02-07 19:27:29 +00:00
Alexey Zelkin
99349513d0 This script has served its purpose. Now its function is one of subfunctions
of recently added cknames.pl.
2002-02-07 19:13:06 +00:00
Alexey Zelkin
d97a65d2a1 Add script to check integrity between access/authors.ent/passwd@freefall 2002-02-07 19:09:49 +00:00
Alexey Zelkin
7658e887d3 Fix sentence in comment 2002-02-06 18:00:11 +00:00
Alexey Zelkin
e0738f01ca Update description of 'ac' subdirectory 2002-02-06 17:50:05 +00:00
Alexey Zelkin
1afcdc8a91 Add descirptions of scripts in this directory 2002-02-06 17:49:13 +00:00
Alexey Zelkin
f1c3a0188c Add script that checks contents of .ent files (sorting and addresses) 2002-02-06 17:47:18 +00:00
Alexey Zelkin
d6d290cbca List of committers was moved out of handbook. Teach 'ac' about new location.
Also teach it about complex entries in access file (or correctly to say
simplify them)
2002-02-06 17:09:08 +00:00
Alexey Zelkin
364a805b9f * fix some warnings
* set WARNS
* few style/whitespace fixes

Submitted by:	ru
2002-02-04 16:17:19 +00:00
Alexey Zelkin
df3cc3c14d describe localeck
plus some capitalization/whitespace fixes
2002-02-04 14:00:29 +00:00
Alexey Zelkin
ac6e0aed98 Add simple diagnostic utility to checking for invalid/incomplete
locales
2002-02-04 13:59:16 +00:00
Kelly Yancey
adeb92a24c Remove broken attempt to compile libc's malloc source directly; this
allows this tool to compile again. Albeit, now to test a new malloc
implementation one has to install the new libc which may have bad
consequences (i.e. if the new malloc implementation were buggy).

Add logic to workaround malloc's current behaviour of returning an
invalid non-NULL pointer for 0 byte allocation requests; this prevents the
tool from coring during the NOPS loop.

Add $FreeBSD$ tags.
2002-01-02 06:42:34 +00:00
Kelly Yancey
f1d24f0dfd Include definition for struct namecache (it isn't exported via any header)
so this builds again. Replace hardcoded name length magic with NAME_MAX.
2002-01-02 06:25:39 +00:00
Jordan K. Hubbard
61404abce8 Add Apple's filesystem exercising tool.
Submitted by:   Conrad Minshall <conrad@apple.com>
Obtained from:  Apple Computer
2001-12-20 04:15:57 +00:00
Sheldon Hearn
41bab7c80f Correct misattribution of the Hart list, which I had mistakenly
attributed to Heckenbach.
2001-12-01 13:08:20 +00:00
Sheldon Hearn
a320ca2f9a Add the script that will be used to maintain src/share/misc/pci_vendors.
The script written and used originally by msmith has been lost.

This version takes the Boemler and Heckenbach lists and produces merged
output.  It defaults to ignoring any entries from Heckenbach already
found in Boemler but the -l option causes it to take the entry with the
longest description where an entry appears in both lists.

If this script is replaced, care should be taken to

1) Always use upper-case hexidecimal tokens in device ids.

2) Always keep device lists sorted within vendor lists, which must also
   be sorted.

3) Do not try to include input from the previous pci_vendors file, since
   bogus ids seem to be removed from both the Boemler and Heckenbach
   lists from time to time.
2001-11-22 14:26:30 +00:00
Dag-Erling Smørgrav
e568548eee Now it gets interesting... 2001-11-13 00:51:00 +00:00
Dag-Erling Smørgrav
21dc7ada34 Use a slightly less predictable temp file name, remove a stale list of PRs
with corrupted submission dates (they were fixed on freefall a while ago),
and uncomment the code that removes the temp file when we're done.
2001-11-13 00:07:21 +00:00
Dag-Erling Smørgrav
89090fe2ba This is a PR statistics-gathering script I wrote a while ago. It currently
doesn't do much of interest except produce graphs similar to phk's.
2001-11-12 23:59:56 +00:00
Poul-Henning Kamp
c8ac4faa0b Update. 2001-11-05 22:07:44 +00:00
Poul-Henning Kamp
ddc38af27b This is long since unused. 2001-11-05 22:06:33 +00:00
Poul-Henning Kamp
c64a712a37 This simple shell-script tries to find *.c files under /sys
which are not in some way used or referenced somewhere.
2001-11-05 22:06:09 +00:00
Doug Rabson
9c2de1cd14 Make a start at a regression test for the unaligned trap handler. 2001-10-19 22:10:13 +00:00
Bill Fenner
b9d45cebf4 The interface index space may be sparsely populated (e.g. when an
interface in the middle is if_detach()'d).  Return (and handle)
 ENOENT when the ifmib(4) is accessed for a nonexistent interface.

MFC after: 14 days
2001-10-17 04:12:29 +00:00
Jeroen Ruigrok van der Werven
59b9066490 Add $FreeBSD$.
Describe the other two directories in here.
2001-10-08 12:28:31 +00:00
Robert Watson
abc9a36083 o Fix two eaccess() checks -- in one case, the wrong test file
was used, resulting in a regression failure, and in the other,
  the test on an error return was inverted.

Obtained from: TrustedBSD Project
2001-09-21 21:28:43 +00:00
Robert Watson
884748cf55 o Regression test to check that appropriate parts of the process
credential are used in the access() and new eaccess() system calls.

Obtained from:	TrustedBSD Project
2001-09-20 20:03:58 +00:00
Andrey A. Chernov
c09ed64a72 ISO_ -> ISO 2001-06-11 01:29:40 +00:00
Ruslan Ermilov
2c745214f2 Added support for all new install(1) options.
Removed -c from the actual call as -p implies "copy".
2001-05-28 16:53:01 +00:00
Poul-Henning Kamp
cbfc3f7c5c Update this to reflect changes in config(8) usage.
It finds 639 hits on kernel source from before the <sys/mount.h>
change earlier today.
2001-04-23 17:31:16 +00:00
Robert Watson
361515d909 o Add a comment identifying the "privileged on privileged" scenario.
Obtained from:	TrustedBSD Project
2001-04-13 16:38:34 +00:00
Robert Watson
8f6fee753c o Add inter-process authorization uid regression testing for ktrace().
Obtained from:	TrustedBSD Project
2001-04-13 16:25:25 +00:00
Robert Watson
72919d5f6d o s/debug/ptrace/ since shortly there will be tests involving other
forms of debugging.

Obtained from:	TrustedBSD Project
2001-04-13 16:09:40 +00:00
Robert Watson
bacff58c0e o Expand inter-process authorization regression test to include
signalling with sigsegv as one of the tests.
o Teach errno_to_string() about ENOTSUPP.

Obtained from:  TrustedBSD Project
2001-04-12 17:46:20 +00:00
Robert Watson
3ceef0c3d7 o Enable -DSETSUGID_SUPPORTED in inter-process authorization regression
test by default, as setugid() is now part of the base kernel (assuming
  (options REGRESSION) has been enabled for the running kernel).

Obtained from: TrustedBSD Project
2001-04-11 20:23:23 +00:00
Robert Watson
274f7445fd o First pass at an inter-process authorization regression testing suite.
This test utility attempts to evaluate the current kernel policy
  for authorization inter-process activities, currently ptrace(),
  kill(, SIGHUP), getpriority(), and setpriority().  The utility creates
  pairs of processes, initializes their credential sets to useful
  cases, and reports on whether the results are in keeping with hard-coded
  safety expectations.

o Currently, this utility relies on the availability of __setugid(),
  an uncomitted system call used for managing the P_SUGID bit.  Due to
  continuing discussion of optional regression testing kernel components
  ("options REGRESSION") I'll hold off on committing that until the
  discussion has reached its natural termination.

o A number of additional testing factors should be taken into account
  in the testing, including tests for different classes of signals,
  interactions with process session characteristics, I/O signalling,
  broadcast activities such as broadcast signalling, mass priority
  setting, and to take into group-related aspects of credentials.
  Additional operations should also be taken into account, such as ktrace,
  debugging attach using procfs, and so on.

o This testing suite is intended to prevent the introduction of bugs
  in the upcoming sets of authorization changes associated with the
  introduction of process capabilities and mandatory access control.

Obtained from: TrustedBSD Project
2001-04-11 17:21:14 +00:00
Jeroen Ruigrok van der Werven
d7d97eb0aa Preceed/preceeding are not english words. Use precede and preceding. 2001-02-18 10:43:53 +00:00
Poul-Henning Kamp
5683c3dd1f Look for modules in /boot/kernel these days. 2001-01-18 22:36:34 +00:00
Poul-Henning Kamp
a1b75a424f The latest & greatest unused #include spotter. Faster, one-pass and
more precise than ever.

1230 hits on the current kernel.
2000-10-28 21:44:05 +00:00
Poul-Henning Kamp
0b4ff393d4 Teach kerninclude to check <machine/*> #includes as well.
Currently it finds 2072 supposedly unneeded #includes in the first pass.
2000-10-13 12:03:01 +00:00
Poul-Henning Kamp
8aa6458645 Use "make LINT" to create our LINT config 2000-09-25 12:40:39 +00:00
Garrett Wollman
c2bb3a3e02 Fix compilation problems and bounds-checking bug in `ifinfo'.
PR:		21177
Submitted by:	Craig Leres <leres@ee.lbl.gov>
2000-09-13 19:53:54 +00:00
Poul-Henning Kamp
8b2a388086 Make this work with current makefiles again. 2000-08-21 14:42:48 +00:00
Alexander Langer
4edde70858 - Add $FreeBSD$
- Refer to the README files in the subdirs.
2000-08-13 14:46:31 +00:00
Jake Burkholder
e39756439c Back out the previous change to the queue(3) interface.
It was not discussed and should probably not happen.

Requested by:		msmith and others
2000-05-26 02:09:24 +00:00
Jake Burkholder
740a1973a6 Change the way that the queue(3) structures are declared; don't assume that
the type argument to *_HEAD and *_ENTRY is a struct.

Suggested by:	phk
Reviewed by:	phk
Approved by:	mdodd
2000-05-23 20:41:01 +00:00
Poul-Henning Kamp
83354dc7f2 Use profiling on LINT.
cosmetics.
2000-04-27 19:58:57 +00:00
Garrett Wollman
8c3f05ad1d Add a little test program to demonstrate POSIX Shared Memory Objects. 2000-04-22 15:29:21 +00:00
Sheldon Hearn
21edc5f5c8 Correct grammar in the synoptic comment.
Submitted by:	ru
2000-03-03 09:25:00 +00:00
Sheldon Hearn
d72d02311f Use double-quotes instead of single-quotes when displaying the usage
so that the shell interpolates $0.

PR:		17121
Submitted by:	Peng HaiJie <phj@cn.FreeBSD.org>
2000-03-02 15:00:53 +00:00
Peter Dufault
e5f1b1b180 These are regression tests for the P1003.1B scheduler.
Approved by:	jkh
2000-02-16 14:28:42 +00:00
Marcel Moolenaar
24066d3209 Don't use -C internally. Use -c. For some reason files are not copied
with -C, although they should.
1999-12-15 18:08:56 +00:00
Marcel Moolenaar
168f8d1648 Use install -C -p instead of cp -p.
Pointed out by: bde
1999-12-10 10:14:06 +00:00
Marcel Moolenaar
d33ed1111a install(1) lookalike that can be used during a build. Any options
are ignored and the remaining is passed on to cp(1). This allows
a build to be run as non-root without forcing any user/group
setting and also prevents setting any file flags.

This may not be the right place for buildtools.
1999-12-08 13:40:44 +00:00
Wolfram Schneider
6c36ecd55c Include BSD-license.
PR:		misc/15262
Submitted by:	 alex@big.endian.de
1999-12-06 22:33:40 +00:00
Alexey Zelkin
3fcae27b92 Bring ``ac'' into reality. This great tools now works correctly (for
current state of the tree)
1999-11-04 08:45:02 +00:00
Alexey Zelkin
d4dee594a4 Add short description of dumpvfscache 1999-11-04 08:42:29 +00:00
Poul-Henning Kamp
456b2f8063 Add the machine that goes "BINGO" every time an potentially
unused #include is spotted in the kernel sources.

(This commit message celebrates Monty Pythons 30year aniversary)
1999-10-11 19:43:44 +00:00
Archie Cobbs
32e29e4547 Remove the "diffburst" tool, because equivalent functionality is now available
via "split -p". Leave a note to this effect in the README file.
1999-09-22 23:48:58 +00:00
Alexey Zelkin
d5cbae93d2 mdoc(7) style fixes.
PR:		docs/13408
Reviewed by:	mpp
1999-09-05 06:02:03 +00:00
Mike Pritchard
229494cb51 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:10:20 +00:00
Peter Wemm
c3aac50f28 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
Bruce Evans
8665be266d Look for symbols in /modules/*.ko, not in /lkm/*.o. 1999-07-29 07:12:01 +00:00
Jordan K. Hubbard
29fcf344ff Move the proper set of libraries. 1999-04-05 21:41:56 +00:00
Jordan K. Hubbard
a83aea7558 Do a better job of finding the default root device. 1999-02-15 02:22:24 +00:00
Joerg Wunsch
5db5c8f19d Fix a typo describing the filename of cvt-wtmp.
Submitted by:	Ruslan Ermilov <ru@ucb.crimea.ua>
1999-02-07 20:30:56 +00:00
Jordan K. Hubbard
cf9f8234bb Make directories unconditionally to deal with the empty directory
case.

Submitted by:	Ruslan Ermilov <ru@ucb.crimea.ua>
1999-02-01 12:45:03 +00:00
Jordan K. Hubbard
b6c8511860 Make building the kernel conditional. 1999-01-27 03:18:33 +00:00
Jordan K. Hubbard
8573fbf238 1. Properly chflags libraries before moving (otherwise they don't).
2. Add my helper script for upgrades; not enabled yet.
1999-01-26 04:13:03 +00:00
Archie Cobbs
740e54be27 Add the 'diffburst' tool, which does the following:
Reads the output of 'diff -r' and splits it into separate
    patch files, one per file. The files are named 'patch-XX'
    where XX is aa, ab, ac, ... Useful when creating ports.
1999-01-07 19:28:57 +00:00
Martin Cracauer
36cabb9282 Actually document my last addition.
General cosmetics.
Add a note that scsi-defects has not been ported to CAM.
Submitted by:	BDE
1998-12-17 12:21:20 +00:00
Martin Cracauer
37fcb38764 Add some emacs code to make cc-mode almost compatible to style(9).
Sort entries in toplevel README.
1998-12-15 16:51:49 +00:00
Archie Cobbs
915ffe6c6f Automatically detect a.out vs. elf kernel 1998-12-08 08:14:37 +00:00
Archie Cobbs
20ec02b38c Add "-aout" flag to nm until the kernel is ELF'd. 1998-12-06 21:39:07 +00:00
Bruce Evans
fcd70874b4 Ignore objects used to build utilities (*aicasm*.o and *genassym*.o). 1998-11-27 10:18:56 +00:00
Bruce Evans
17d1bf4260 Removed all `vector xxxintr' specifications. Interrupt handlers are now
configured in drivers.
1998-10-22 15:53:06 +00:00
Peter Wemm
da942c6108 3.0-RELEASE and now the post-release 3.0-CURRENT were being declared
'too old' to run ELF.  Check the kernel version properly.
1998-10-17 05:40:46 +00:00
Poul-Henning Kamp
14d9b0c364 Prevent ldconfig from choking by creating any missing directories. 1998-09-16 17:42:53 +00:00
Warner Losh
f4627296cd getopt returns -1 not EOF 1998-09-09 17:24:31 +00:00
John Birrell
6769808313 Add a note about the upgrade tool directory. 1998-09-09 05:48:51 +00:00
John Birrell
9bade6cc80 A script for use when upgrading an installed system from aout to
elf.
1998-09-09 05:28:18 +00:00
Wolfram Schneider
e402641ee5 Add mid scripts. Mid is a tool which create a Message-ID database
for mailing lists.
1998-05-20 09:20:02 +00:00
Mike Smith
6009c5c36a Updates to support adding driver files outside the i386 area.
Submitted by:	Daniel O'Connor <doconnor@gsoft.com.au>
1998-05-06 05:45:17 +00:00
Bruce Evans
7c77052065 Install tclAppInit.c in the installhdrs step so that it isn't necessary
to build libtcl twice in `make world'.
1998-03-23 13:15:41 +00:00
Wolfram Schneider
40d75fab43 httpd-error is a shell script which print a summary about
Web files which does not exists on your host.

E.g.

	httpd-error -userhits < /var/log/httpd-error.log

print the number of errors by users, sorted by error hits.
1998-02-15 18:54:26 +00:00
Bruce Evans
ccb8bfa988 Don't install the tcl implementation headers. The tcl distribution
makefile doesn't install them, and they couldn't be used without
lots of undocumented -I's in CFLAGS.  tcl.h is still installed in
/usr/include/tcl/.  Note that rev.1.24 of tcl_bmake/mkMakefile.sh
broke all the section 3 tcl man pages by putting it there instead
of in /usr/include.
1998-01-17 15:52:32 +00:00
Bruce Evans
7eb44007dd Updated shlib version to 80.4 in the correct place.
Regenerated libtcl/Makefile.  This adds -DHAVE_ST_BLKSIZE=1 to CFLAGS.
It was broken by direct editing in rev.1.25.
1998-01-17 15:49:55 +00:00
Wolfram Schneider
9350872a4a Add html-mv script. Html-mv rename HTML generated filenames to
human readable filenames. E.g.:

$ cd FAQ
$ make FORMATS=html
$ html-mv FAQ
$ ls
FAQ_ACKNOWLEDGMENTS.html
FAQ_Any_restrictions_on_how_I_divide_the_disk_up_.html
FAQ_Are_there_any_Database_systems_for_FreeBSD_.html
FAQ_Are_there_any_commercial_high-performance_X_servers_.html
FAQ_Books_on_FreeBSD.html
FAQ_Can_FreeBSD_handle_multiport_serial_cards_sharing_irqs_.html
[...]
1997-11-09 11:23:54 +00:00
Poul-Henning Kamp
567a15c1f1 Update this little gadet to latest version. 1997-10-26 21:06:33 +00:00
Poul-Henning Kamp
246863adc2 Makes html table with all VOPs in it. 1997-10-16 12:40:58 +00:00
Wolfram Schneider
2dad7688fe Do not suppress the first 5 lines of updated ports.
Detected by: Ville Eerola <ville@vlsi.fi>
1997-10-04 12:20:16 +00:00
Poul-Henning Kamp
865d6cb1ab New shlib is 80.3 1997-10-01 13:31:29 +00:00
Wolfram Schneider
b3b892f288 Add introduction. Add updated ports. 1997-09-29 18:16:38 +00:00
Poul-Henning Kamp
c9e186fb37 A little gadget to dump the contents of the vfs name cache. 1997-09-04 08:28:55 +00:00
Bruce Evans
bf78672450 Made this compile again (getopt moved to <unistd.h>).
Fixed usage message.
1997-09-01 00:01:50 +00:00
Bruce Evans
8f45662223 Split beforeinstall target so that headers can be installed without
installing data files.
1997-08-21 16:14:34 +00:00
Peter Wemm
acc93c665e Install tcl.h into /usr/include/tcl/ so that there's less chance of it
conflicting.
1997-08-16 07:11:28 +00:00
Peter Wemm
be33d4f594 Remove the original tweaks to make tcl75 work with the ports system
before we make the same mistake with tcl8.0.  This _should_ no longer
conflict with a not-yet-imported tcl8.0 port and should allow the
system and ports versions to be updated independently of each other
(and tk) without the sky falling.
1997-08-12 18:30:34 +00:00
Poul-Henning Kamp
89b2f3fd90 Move tcl packages to libdata/pkg 1997-08-01 13:16:40 +00:00
Poul-Henning Kamp
94e8ea7dda The thing to do the trick to tcl. 1997-07-25 19:50:23 +00:00
Wolfram Schneider
e95adcc783 Support message of last database update. 1997-07-05 20:23:53 +00:00
Mike Smith
303a95ab1d Some helpful improvements :
- be smarter about locating driver description files.
 - be smarter about whether we are really looking at a kernel tree
 - fix option handling
1997-06-10 01:53:01 +00:00
Doug Rabson
6527fda589 Add a couple of test cases for mmap over NFS. 1997-05-18 10:03:48 +00:00
Wolfram Schneider
52b8453b47 Add portsinfo, which generate list of new ports for last two weeks. 1997-04-25 14:14:39 +00:00
Wolfram Schneider
caccaa9b2a Add ac which check if the FreeBSD handbook is in sync with the committers list 1997-03-28 14:40:39 +00:00
Mike Pritchard
03bbd5ccd6 Fix a couple of typos. 1997-03-07 01:48:24 +00:00
Peter Wemm
b97fa2ef50 Revert $FreeBSD$ to $Id$ 1997-02-22 14:13:04 +00:00
Joerg Wunsch
a58538e028 Add a tools to get at the primary or grown defect list of a SCSI disk.
Submitted by:	dufault
1997-02-02 11:39:51 +00:00
Jordan K. Hubbard
73b50e0416 Clean up some of the tortured english in this file. 1997-01-21 12:36:01 +00:00
Mike Smith
b878522622 Add KernelDriver. 1997-01-21 08:36:11 +00:00
Mike Smith
0d812f1bb1 This is KernelDriver, a tool for automating the addition of
third-party device-driver source to the FreeBSD kernel (at versions
2.2 and later).  It can list and remove drivers it's added too.

It can (should) be included by device-driver authors in their driver
distributions, but is perhaps a little too specific to warrant a place
in the mainstream distribution.
1997-01-21 08:34:14 +00:00
Jordan K. Hubbard
1130b656e5 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.
1997-01-14 07:20:47 +00:00
Mike Smith
fa3da92ad6 - Add a BSD-style copyright. (Should have done that before.)
- Be more intelligent about library-like objects that are actually
  symlinks.  (Suggested by Steve Price)
- Complain about nonexistent libraries referenced by executables (instead
  of creating a library called 'not' and putting them there. (oops)
- Fix a few typos.
1997-01-06 04:18:32 +00:00
Joerg Wunsch
19e5d9d8ac Add a -f (`force') option to cvt-wtmp. This might help people with
slightly bogus wtmp files (it definately helps in Jordan's case).

Also add a README explaining what all this is for.
1997-01-02 11:54:59 +00:00
Mike Smith
1b56bb4ca7 LibraryReport is a Tcl script that attempts to report on the status of
shared libraries in the system.

It locates libraries using the output of 'ldconfig -r' to find
directories containing libraries, and then performs a recursive
descent of the entire filesystem heirachy looking for dynamically
linked executables and recording the libraries that they use.

After scanning, a report is produced listing used libraries and the
executable(s) that use them, and seperately listing unused libraries.
1997-01-02 03:49:35 +00:00
Wolfram Schneider
08d366cf6b epfe - extract printing filter examples from printing.sgml
usage:
	$ cd /usr/share/examples/printing
	$ epfe < printing.sgml
1996-12-28 16:24:57 +00:00
Wolfram Schneider
fa2cedd44a add epfe and tcl_bmake 1996-12-28 16:21:52 +00:00
Peter Wemm
5ded6b34f8 Fix the 'info sharedlibextention' output in tclsh which was caused by a
missing define during the libtcl build.  This is needed to get Tclmidi 3.1
to work.

This should close PR#2006

This should also go into 2.2, like the previous commit.

Submitted by: A JOSEPH KOSHY <koshy@india.hp.com>
1996-12-17 13:08:08 +00:00
Joerg Wunsch
45802f2a8a Start collecting transition tools for upgrading a system to 3.0.
Subject to be moved elsewhere in case we decided on a more cmplete
upgrade toolset.  Right now, put it here so that people can upgrade
their wtmp files if they want.

Note that the tool is not yet fully bullet-prrof.  It tries to do its
best however.
1996-12-16 16:12:35 +00:00
Peter Wemm
a9a7d7ff2a Reverse the tcl configure's decision to "disable" the use of ranlib since
it's wrong.  It "knows" that ranlib is not used on shared libraries, this
is not a valid assumption since it exports this definition to the world
via tclConfig.sh. :-(  Hence, things like expect (to be updated) fall over
because they were using ":" instead of "ranlib" on their static libraries.
1996-12-16 11:53:50 +00:00
Peter Wemm
ad9f4e2348 Back out a little more of the previous changes. No longer change
TCL_SHLIB_SUFFIX, since some tools use it for generating the name of
shared objects for dlopen(), which do not have version numbers.  This
setting is back to "as distributed".
1996-10-31 15:57:25 +00:00
Peter Wemm
6869793758 Argh, I hate the tcl build/config environment. :-(
It seems that some tools (eg: expect-5.21) use TCL_LIB_SPEC to generate
their shared library suffix.  This should be .so.1.0, not .so as ld can't
use it.

Revert part of the previous change here, it did too much.  libtcl75.so.1.1
was bumped, but the rules to generate library names for _other_ packages
were not supposed to be. Sigh.
1996-10-30 08:44:18 +00:00
Peter Wemm
0509058ac9 Along the way, the minor version number has been bumped (newer version
of tcl with new functions in the library), but the ports-compatable
link name wasn't bumped as it should have been.

Minor cleanups while here (including preserving the $Id: line)
1996-10-29 04:31:21 +00:00
Wolfram Schneider
1822c5e572 (reverse) sync with src/lib/libtcl/Makefile rev 1.9
>Do not make symbolic links from obj directory into source tree,
	>it may break `make reinstall'. Use cp(1).
	>
	>Simplify Makefile.

Requested by: Peter
1996-10-27 12:44:44 +00:00
Poul-Henning Kamp
9ee40678bb Update this to match my version. 1996-10-26 08:22:09 +00:00
Garrett Wollman
7633b00424 Actually tell people what ifinfo is. 1996-10-11 18:27:35 +00:00
Garrett Wollman
b01aba1d41 Add my little `ifinfo' program. This is sort of a cross between a
diagnostic program for debugging the interface MIB and an example of
how to use same.  Someday, netstat should be updated to print this
information in a prettier form.
1996-10-11 15:56:41 +00:00
Bruce Evans
4fbb44ebc5 Fixed CLEANFILES. The *.3 links were missing.
Removed ugly newlines.
1996-09-20 14:12:32 +00:00
Poul-Henning Kamp
ad6e687bb7 Bump minor number to 1 1996-09-18 14:27:44 +00:00
Peter Wemm
ba60eee902 Oops, two tiny typos. Serves me right for making a "Just a tiny change!"
without testing right before committing...
Also, get rid of some extra slashes in beforeinstall.
1996-09-05 19:19:18 +00:00
Peter Wemm
d184a3fef5 Sigh. That darn tcl source tree is damn strange. I missed the fact that
the *.3 man pages are not installed with their distributed names, so all
the links were messed up. :-(
1996-09-05 19:05:57 +00:00
Peter Wemm
d6d0abc9b2 Fix the sed rule that I used to hammer out the TCL_BUILD_LIB_SPEC entry
from tclConfig.sh..  It needs to be valid for the tk41 port to use...
1996-08-29 19:30:50 +00:00
Chuck Robey
15d676aa26 Cause libtcl to install 5 include files for compibility with ports.
Also repair a small install bogon causing install of libtcl.so.0.0.
Reviewed by:	Peter Wemm
1996-08-29 16:46:14 +00:00
Peter Wemm
fac2129177 More cleanup:
- don't install nroff tcl.macros in /usr/include.... :-]
 - set $MAN3 and $MANn in one go rather than a string of MAN3+= ...
 - cosmetic tweaks to make it more readable
 - no longer copy tcl.macros to the obj dir, install it from source dir
1996-08-29 10:28:51 +00:00
Peter Wemm
949a0d68ed Arrange to have libtcl automatically pull in libm since it's dependent
on it.
1996-08-29 09:43:50 +00:00
Peter Wemm
7f5178e3b4 Revamp the generated libtcl Makefile :-
Use the MANFILTER rather than generate rules for each page
 Use .PATH to source the man pages rather than copy them for build
 Install a tclConfig.sh with build params, may need more tweeks yet.
 Install libtcl.so.75.0 *and* libtcl75.so.1.0 for ports compat.
1996-08-28 07:56:55 +00:00
Peter Wemm
e2e2cffc2d delete a mkdir of /usr/libdata/tcl, this is mtree's job. 1996-08-19 15:02:47 +00:00
Andrey A. Chernov
b7c6d4477a Make it at least semi-worked 1996-08-11 18:08:53 +00:00
Poul-Henning Kamp
e67972f57b Update to use modern make meta-variables. Fix the $Id$ both. 1996-06-30 18:02:58 +00:00
Poul-Henning Kamp
b5ca263ffc This script will help bmake tcl. 1996-06-26 17:47:14 +00:00
Bruce Evans
221f90d340 Don't look in libkern, it went away. 1995-12-29 01:51:23 +00:00
Bruce Evans
fb9406cc5c The unref and undef counts in the summary were swapped. 1995-12-15 23:54:27 +00:00
Poul-Henning Kamp
15ab265d9e Make this a real cross-ref listing.
This is now a handy tool for finding symbols in the kernel.
1995-12-15 13:29:32 +00:00
Poul-Henning Kamp
8d447bb443 Report common symbols with one reference as UNREF too. 1995-12-13 15:33:10 +00:00
Poul-Henning Kamp
807400860f Fix two nits. 1995-11-06 16:51:45 +00:00
Mark Murray
d82e286489 Add the test programs that I tested the /dev/random driver with. 1995-11-04 09:50:48 +00:00
Poul-Henning Kamp
953a3198a3 malloc.c A program to benchmark and test malloc. 1995-10-15 12:29:12 +00:00
Poul-Henning Kamp
ec6708b450 Add kernxref, a shellscript to crossreference the symbols of the LINT kernel. 1995-10-15 11:33:42 +00:00
Poul-Henning Kamp
7785b56d83 README reads:
This directory is for tools.

A tool is something which is sometimes useful, and doesn't fit any of the
other categories.

Please make a subdir per program, and add a brief description to this file.
1995-10-15 11:28:03 +00:00
Poul-Henning Kamp
fbbdcf6a4a README reads:
This directory is for test programs.

A test program is one that will excercise a particular bit of the system
and try to break it and/or measuring performance on it.

Please make a subdir per program, and add a brief description to this file.
1995-10-15 11:27:49 +00:00
Poul-Henning Kamp
9e9d8a4677 README reads:
This directory is for regression test programs.

A regression test program is one that will excercise a particular bit of the
system to check that we have not reintroduced an old bug.

Please make a subdir per program, and add a brief description to this file.
1995-10-15 11:27:40 +00:00
Poul-Henning Kamp
04022b1194 README reads:
This directory is for diagnostic programs.

A diagnostic program is one that will inform you that something is wrong
somewhere, for instance by traversing a kernel-structure and verifying
the integrity.

Please make a subdir per program, and add a brief description to this file.
1995-10-15 11:27:15 +00:00
Poul-Henning Kamp
d46b04a5f9 README reads:
This directory tree contains tools used for the maintenance of FreeBSD.
There are no Makefile structure, but possibly Makefiles in some of the
subdirs.
Nothing show be installed from here and into the running system.
This directory should contain only subdirs and this file.
1995-10-15 11:26:49 +00:00
Rodney W. Grimes
9b50d90275 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00