Commit Graph

1064 Commits

Author SHA1 Message Date
Greg Lehey
8af732d13c Use a random number to seed the random number generator. Goodby, Rush
Limbaugh.

This should have already worked properly if random(4) has been
initialized correctly, but it seems that this is frequently not the
case.  Instead, use the microsecond part of the current time as the
seed.
2005-07-23 01:46:50 +00:00
John Baldwin
59c2bcbae9 Correct an error in the previous revision. RAND_MAX is the maximum value
for rand(3), not random(3).  random(3) is defined to return values between
0 and 2^31-1, so add a local RANDOM_MAX constant to this file that is
defined as 2^31-1 and use that in place of RAND_MAX.

Reviewed by:	bde
Approved by:	re (dwhite)
MFC after:	1 week
2005-06-22 15:24:00 +00:00
Poul-Henning Kamp
6dded714b5 Snoopy in quality of life. 2005-06-10 08:58:44 +00:00
Ruslan Ermilov
73a1c67d03 Fix markup nits. 2005-06-07 21:43:16 +00:00
Joerg Wunsch
bc48d6e6c9 Add Farnsworth support to morse(6).
(For those interested: this is intented to extend the space between
characters to help people learning morse code by giving the brain some
extra time for acoustical pattern recognition.)

Note: I slightly cleaned up the submitted patch for minor stylistic
issues, and changed the default for the new -c option to be identical
to -w.

Submitted by:	"Stephen P. Cravey" <cravey@gotbrains.org> N5UUU
MFC after:	2 weeks
PR:		bin/81831
2005-06-07 19:01:41 +00:00
Wilko Bulte
41fa5b81d2 When operating the diopter adjustment knob with your eye to the view-
finder, be careful not to put your fingers or fingernails in your eye.
                -- found in the users manual of the Nikon D2x camera,
                   a camera for professional photographers
%
2005-06-06 15:43:00 +00:00
Poul-Henning Kamp
98500a3693 Hand it to spaff, he knows how to say it:
Using encryption on the Internet is the equivalent of arranging
an armoured car to deliver credit card information from someone
living in a cardboard box to someone living on a park bench.
		-- Gene Spafford, Purdue University.
2005-05-29 19:29:19 +00:00
John Baldwin
b0a7bd8e88 Fix for 64-bit platforms. random() returns values between 0 and RAND_MAX,
and RAND_MAX != LONG_MAX on 64-bit platforms.

PR:		amd64/81279
Submitted by:	Vivek Khera vivek at khera dot org
Submitted by:	Adriaan de Groot groot at kde dot org
MFC after:	1 week
2005-05-27 15:29:01 +00:00
Poul-Henning Kamp
e1f74f27c1 Remove duplicate and attribute Weinbergs second law to the right weinberg. 2005-05-13 15:51:56 +00:00
Jens Schweikhardt
4f2795ff0e Nuke a corrupted duplicate.
Some white space and punctuation fixes.
2005-05-07 17:56:50 +00:00
Stefan Farfeleder
b484917d53 Make caesar and pom WARNS 6 clean. While there, use prototypes everywhere.
PR:	62456
2005-05-01 19:34:22 +00:00
Jens Schweikhardt
c770569c74 s/which/witch 2005-04-24 15:31:11 +00:00
Tom Rhodes
d5f93c9179 Enforce style.Makefile(5).
Glanced at by:	ru (some time ago).
2005-04-22 18:57:32 +00:00
Poul-Henning Kamp
e9a1a34366 Data is not information;
Information is not knowledge;
	Knowledge is not wisdom
			-- Gary Flake
2005-04-13 06:11:49 +00:00
Jens Schweikhardt
6f3997749c s/self-distruction/self-destruction 2005-04-10 10:53:26 +00:00
Poul-Henning Kamp
ebf3f2a194 He who receives ideas from me, receives instruction himself without
lessening mine; as he who lights his taper at mine receives light
without darkening me.
       -- Thomas Jefferson on patents on ideas.
2005-03-22 07:41:22 +00:00
Murray Stokely
7803a8a051 Typo.
PR:		conf/77178
Submitted by:	Andras Jako <jako.andras@eik.bme.hu>
MFC after:	1 week
2005-03-19 02:44:41 +00:00
Philip Paeps
f5ba17d43b These words, while not spoken about anything even slightly related, are very,
very applicable when waiting for world to compile *grin*

Impatience award to:	philip
2005-03-14 21:50:25 +00:00
Christian Brueffer
abe57788f7 Remove dublicate entries and correct apostrophe abuse.
Submitted by:	Christoph Mallon <christoph.mallon@gmx.de>
2005-03-13 13:20:07 +00:00
Yaroslav Tykhiy
f92907365d Add a story about confusing information theory with thermodynamics. 2005-03-07 06:05:14 +00:00
Poul-Henning Kamp
eabf308004 Another good Dijkstra quote. 2005-03-04 09:47:22 +00:00
Poul-Henning Kamp
ed4d64dbf7 Add missing quote. 2005-03-03 18:32:50 +00:00
Poul-Henning Kamp
52b9f7a5b1 Wisdom from 1972. 2005-03-03 18:07:23 +00:00
Yaroslav Tykhiy
53365f4b43 Give a better advice on how to convert DOS text to UNIX text.
The former tip used `col -bx', which would not only discard
CR's, but also expand TAB's and remove BS'en.  This effect is
not always wanted.

MFC after:	1 week
2005-02-28 17:05:00 +00:00
Yaroslav Tykhiy
02d5d57aba Add a neat remark on the popular belief that the universe is a safe
the man ought to break open and rob.
2005-02-26 12:49:03 +00:00
Ruslan Ermilov
423120f127 Fixed warnings and bump WARNS to 6. 2005-02-23 20:59:03 +00:00
Ruslan Ermilov
8b8984d523 Bump WARNS to 6. 2005-02-23 20:42:47 +00:00
Ruslan Ermilov
be2ff1d140 Make the on-disk format of .dat files produced by strfile(8)
architecture independent.  Besides the fixed-width types in
the header, the offsets are now stored as 64-bit off_t (also
in big endian format).

Tested on:	i386, amd64, sparc64, ia64
2005-02-17 18:06:37 +00:00
Ruslan Ermilov
36a142c455 Expand contractions. 2005-02-13 23:45:54 +00:00
Ruslan Ermilov
0227791b40 Expand *n't contractions. 2005-02-13 22:25:33 +00:00
Ruslan Ermilov
6324f7db72 Sync program's usage() with manpage's SYNOPSIS. 2005-02-09 18:22:15 +00:00
Ruslan Ermilov
f83442ac87 Keep only one style of Pittsburgh driver's tests.
Noticed by:	Pawel Worach
2005-02-08 10:42:22 +00:00
Ruslan Ermilov
0b4978b4ea An aggressive little script I used to trim out duplicate fortunes. 2005-02-07 21:15:16 +00:00
Ruslan Ermilov
6325a5d282 Trim more cookies, by playing with different hash functions,
e.g., by trimming all non-alphabet characters and whitespace,
converting to lowercase, and considering only first (or last)
N letters (maybe only consonants).  The fortune editor then
displays all fortunes that have the same hash, and allows to
remove one of them.  The rest is written to stdout.
2005-02-07 21:00:20 +00:00
Jens Schweikhardt
fb7b9592c7 s/worman/woman/ 2005-02-03 22:48:29 +00:00
Ruslan Ermilov
12e13d5f73 Ignore consonants, and remove more duplicates. 2005-02-03 10:54:07 +00:00
Ruslan Ermilov
70ffe5d36d Removed more duplicates (forgot to ignore underscore). 2005-02-03 09:44:30 +00:00
Ruslan Ermilov
f6f56f8b95 Keep the fortune above this.
Reviewed by:	sheldonh
2005-02-03 09:28:45 +00:00
Ruslan Ermilov
653dbafed5 Remove more duplicates. 2005-02-03 09:27:01 +00:00
Ruslan Ermilov
760542ba2e Ignore vowels, and remove more duplicates, mostly due to typos. 2005-02-03 09:13:02 +00:00
Dag-Erling Smørgrav
1f95f872ae Trim some obnoxious warlording. 2005-02-03 08:47:14 +00:00
Ruslan Ermilov
57bc1cfb15 Removed more duplicates, by ignoring "i", "you", "we",
"an", "is", "are", "will", "'ll", "is", "'s" to find
them.  More to follow...
2005-02-03 08:40:08 +00:00
Ruslan Ermilov
3aa9a20802 Merged fortunes with fortunes2.
Sort fortunes (except for the first entry).
2005-02-03 00:20:37 +00:00
Ruslan Ermilov
1269b8ed60 Fix bugs.
Due to one of the bugs (^C was the first character of each line
when sorting), the -b option of sort(1) didn't take any effect,
so stay bug-compatible, and remove the -b option.
2005-02-03 00:18:06 +00:00
Ruslan Ermilov
5896d2bb13 Removed 1695 fortunes also found in fortunes2. 2005-02-02 10:24:11 +00:00
Ruslan Ermilov
150ea19c8e Ignore case and all non-word characters, and remove more duplicates. 2005-02-01 16:34:38 +00:00
Pav Lucistnik
647273571c - Add few lines from my personal signature file
Suggested by:	Florent Thoumie
Approved by:	mux
2005-02-01 16:22:44 +00:00
Sean Kelly
6eb48b5f02 Remove another duplicate fortune. 2005-02-01 15:48:48 +00:00
Ruslan Ermilov
ec28d17dba Removed full duplicates that only differ in amount of whitespace
and line breaks.
2005-02-01 15:15:33 +00:00
Dag-Erling Smørgrav
8d347b59e1 Remove a duplicate. 2005-02-01 14:10:41 +00:00
Wilko Bulte
0447ccf320 s/principals/principles/
Fortune was duplicated, remove one copy.
2005-01-22 20:00:50 +00:00
Greg Lehey
9322e0f841 Add comment on current state of hardware documentation.
Submitted by: philip
2005-01-19 23:34:25 +00:00
Poul-Henning Kamp
55bf0e4475 Remove committer-specific entry. 2005-01-18 11:52:19 +00:00
Ruslan Ermilov
70c55092de Sort sections. 2005-01-18 08:57:18 +00:00
Poul-Henning Kamp
0763230837 Minor bit of advice. 2005-01-17 10:06:12 +00:00
Doug Barton
f01bcd33ff 1. s/women/woman/ when the singular is intended
2. Remove some duplicates
3. Slightly improve a punch line, "and then cut off her head"
instead of "and cut her head off."
2005-01-11 00:25:38 +00:00
Jens Schweikhardt
60c658a7ff Correct two typos in almost identical fortunes. 2005-01-10 12:03:32 +00:00
Josef El-Rayes
87695ac7ae There is a better way to find out whether a port is installed or not. 2005-01-03 14:17:23 +00:00
Jens Schweikhardt
895e960f4c Correct two typos; remove a duplicate. 2004-12-30 12:18:30 +00:00
Wilko Bulte
5f7c5b5db6 "3 hands" 2004-12-24 12:59:26 +00:00
Ruslan Ermilov
a216173556 NOCRYPT -> NO_CRYPT 2004-12-21 10:16:04 +00:00
Ruslan Ermilov
e653b48c80 Start the dreaded NOFOO -> NO_FOO conversion.
OK'ed by:	core
2004-12-21 08:47:35 +00:00
Diomidis Spinellis
86e3437258 From Richard W. Hamming ``You and Your Research''
Transcription of the Bell Communications Research Colloquium Seminar
7 March 1986 by J. F. Kaiser:

        There are wavelengths that people cannot see, there are
sounds that people cannot hear, and maybe computers have thoughts
that people cannot think.
2004-12-11 21:57:27 +00:00
Diomidis Spinellis
f86495e781 The Ken Thompson school of thought on expert systems:
there's table lookup, fraud, and grand fraud.
                -- Andrew Hume

USENIX'04 Technical Conference, reported by Adam S. Moskowitz
;Login: 29(5):49, October 2004.
2004-11-27 08:28:58 +00:00
Jens Schweikhardt
cc00e79feb s/Here about/Hear about/ and sort accordingly. 2004-11-12 10:15:43 +00:00
Wilko Bulte
20441b2ec2 Never be afraid to try something new. Remember, amateurs built the ark.
Professionals built the Titanic.
2004-10-27 20:28:56 +00:00
Ruslan Ermilov
a35d88931c For variables that are only checked with defined(), don't provide
any fake value.
2004-10-24 15:33:08 +00:00
Poul-Henning Kamp
6373a876a4 Improve accuracy of last addition, as best Google advices me. 2004-10-22 19:59:37 +00:00
Poul-Henning Kamp
c99726d396 I'm surprised this one was not here yet.
To save you all a trip to CVSWEB:

Experts have correctly predicted nine out of the last five recessions.
               -- Paul Samuelson,  Nobel laureate in economics.
2004-10-22 16:18:15 +00:00
Stefan Farfeleder
5618536d0b Properly initialise 'filename' so that random -l doesn't try to open NULL.
Const-qualify 'filename' to avoid a strdup() call due to -Wwrite-strings
silliness.
2004-10-03 15:34:15 +00:00
Wilko Bulte
fa38f371c8 The state that separates its scholars from its warriors will have its
thinking done by cowards, and its fighting by fools. - Thucydides
2004-09-29 19:52:19 +00:00
Marc Fonvieille
aaa7f2858e Fix make search entries.
PR:		docs/70899
Submitted by:	Marc Silver <marcs@draenor.org>
2004-08-24 11:30:28 +00:00
Marc Fonvieille
196d7a9b0c s/the on/on the/
PR:		misc/70842
Submitted by:	Sean C. Farley <sean-freebsd@farley.org>
2004-08-23 11:00:20 +00:00
Dag-Erling Smørgrav
0f81131e63 Immortalize the words of a -current reader. 2004-08-20 13:39:28 +00:00
Robert Watson
e10d31a8f2 Add a useful snippet on limitations of inductive reasoning by Bertrand
Russell.
2004-08-15 19:24:17 +00:00
Jens Schweikhardt
29cf807a18 Correct grammo. 2004-08-14 06:29:17 +00:00
Stefan Farfeleder
e71c114c97 Include <stdlib.h> for exit(), use prototypes and bump WARNS to 6. 2004-08-01 18:52:40 +00:00
Dag-Erling Smørgrav
d453d5bc01 The name of the landlord in Shaw's _The Man of Destiny_ is Giuseppe (not
Guiseppe) Gandi.

Submitted by:	Massimiliano Stucchi <stucchi@willystudios.com>
MFC after:	3 days
2004-07-26 21:18:58 +00:00
Lukas Ertl
3e7ee83cbd Make this WARNS=3 clean.
PR:            bin/38931
Submitted by:  Giorgos Keramidas <keramida@freebsd.org>
2004-07-23 11:36:35 +00:00
Lukas Ertl
e231995bb9 Fix typos.
PR:            misc/67586
Submitted by:  Paul A. Hoadley <paulh@logicsquad.net>
2004-07-20 08:32:42 +00:00
Lukas Ertl
2a5395ddef Fix whitespace and punctuation.
PR:            misc/49967
Submitted by:  Sean C. Farley <sean-freebsd@farley.org>
2004-07-20 08:28:28 +00:00
Lukas Ertl
efd0e5f49e Remove duplicate fortunes and fix some typos.
PR:            misc/45839
Submitted by:  Philipp Mergenthaler
               <philipp.mergenthaler@stud.uni-karlsruhe.de>
2004-07-20 08:19:51 +00:00
Stefan Farfeleder
2e96a4c68b Resolve a couple of warnings and bump WARNS to 6. 2004-07-11 17:26:18 +00:00
Ruslan Ermilov
248ad594ab Mechanically kill hard sentence breaks. 2004-07-02 21:16:38 +00:00
Ruslan Ermilov
a7bbcd9a7d mdoc(7): Correct the type of the display. 2004-07-02 21:15:48 +00:00
Garrett Wollman
e60883c5a2 Add a Nicollism. 2004-06-24 03:08:44 +00:00
Poul-Henning Kamp
07c1e2e1de Discontinue use of old libcompat regexp routines. 2004-06-21 16:07:30 +00:00
Jens Schweikhardt
cad27670ff Correct assorted typos and grammos. 2004-06-10 21:03:34 +00:00
Dag-Erling Smørgrav
fb86d10eff Consistently credit President Truman as Harry S. Truman. 2004-06-01 09:45:16 +00:00
Doug Barton
f4d7361ecf Update the "All I really need to know I learned in kindergarten" entry
by using the text from the Villard Books edition (1989, pages 6 through
8) and formatting to fit in 72 columns.
2004-06-01 05:00:46 +00:00
Doug Barton
afe8bb313c * Reformat several attributions according to ../Notes (mostly whitespace)
* Spell out some names that were pointlessly abbreviated
* Remove a couple of incidental duplicates
* Harry Truman had no actual middle name. The initial "S" was added to his
name to make him appear more statesmanlike. Therefore it's not usually punctuated.
* Format a couple of actual fortunes to fit into 72 columns
2004-06-01 04:32:11 +00:00
Doug Barton
7934cbe0d3 Remove duplicates of the "wherever you go, there you are" fortune,
quote directly from the movie, and give a better attribution (with
correct spelling) for Buckaroo Banzai.
2004-06-01 00:16:32 +00:00
Garrett Wollman
7aab90d5f7 Definition of recursion. 2004-05-25 19:15:02 +00:00
Jens Schweikhardt
3231abbd6d Added forgotten quotes for citations. 2004-05-20 08:15:58 +00:00
Ruslan Ermilov
fc583d20af Markup fixes. 2004-05-16 21:52:48 +00:00
Ruslan Ermilov
6c1a40fc90 Really add -l to the usage output. 2004-05-16 21:49:23 +00:00
Tony Finch
a27113d965 I *knew* it would be a bad idea to touch the fortunes. *sigh*
Submitted by:	Kevin Oberman <oberman@es.net>
Pointy hat to:	me, again
2004-05-11 17:43:36 +00:00
Tony Finch
00b1a2a12f Pedantry.
Submitted by:	njl@
2004-05-11 17:26:16 +00:00
Diomidis Spinellis
c3cd9d1f90 Add Greek character encoding suport.
MFC after:	2 weeks
2004-05-11 11:11:14 +00:00
Tony Finch
aa0bdecb75 On the signs of network congestion.
Submitted by:	Simon Tatham <anakin@pobox.com>
2004-05-11 10:00:14 +00:00
Tony Finch
fffbf07a36 Re-sort 2004-05-10 23:02:07 +00:00
Tony Finch
7475c308d4 Moore's law vs. Nethack
Submitted by:   Simon Tatham <anakin@pobox.com>
2004-05-10 23:00:26 +00:00
Colin Percival
9a34ab29f0 Fix grammar to make it correctly wrong. 2004-04-29 06:14:00 +00:00
Sean Kelly
57268cd141 Add a new fortune from petef.
Obtained from: petef
2004-04-29 04:36:36 +00:00
Warner Losh
4bb464ddb9 Add jerk city commentary on C++. 2004-04-27 22:32:02 +00:00
Greg Lehey
6a9114196c Add a Dijkstra comment on programming languages. 2004-04-21 22:39:46 +00:00
Ceri Davies
14f166b706 Don peril-sensitive sunglasses and correct the spelling of ukulele.
"Ukulele" is the canonical term, with "ukelele" being a derivation.
Also there is some evidence that the original appearance of the quote
had the spelling "ukulele", although anyone who has a copy of Esquire
from March 1967 is welcome to prove me wrong.

PR:		bin/65626
Submitted by:	Gavin Atkinson <gavin@ury.york.ac.uk>
2004-04-20 19:20:17 +00:00
Greg Lehey
b0487aaa20 Add an observation by Dijkstra software engineering. 2004-03-22 05:02:01 +00:00
Bruce Evans
ca7c255049 Fixed a mispelling of 0 as NULL. 2004-03-14 05:28:29 +00:00
Tony Finch
bb7b96678f Label @ as being AC (since it's constructed like a prosign).
Submitted by:	des
2004-02-20 13:46:39 +00:00
Tony Finch
ac5940be9d Add some missing punctuation symbols, in particular @ which (according to
a recent Press Association release) was added to Morse code by the ITU in
December. @ was previously used for the SK prosign, which is now spelt &.

Obtained from:  http://en.wikipedia.org/wiki/Morse_code
2004-02-20 11:55:38 +00:00
Colin Percival
25f718f0b7 Fix misspellings in the freebsd-tips fortunes. The same PR has
a patch to mention portupgrade in freebsd-tips as well; I'm not
sure if that belongs here, so I'll leave it for someone else.

PR:		misc/37073
Submitted by:	Sean Chittenden <sean@chittenden.org>
Approved by:	rwatson (mentor)
2004-02-18 05:18:27 +00:00
Wes Peters
b2cbee8f60 Too good to miss.
Wisdumb by:	Danno Coppock <danno@ipinc.com>
2004-02-09 18:45:25 +00:00
Ruslan Ermilov
47d7e8a96f Fixed style of DPADD and LDADD assignments as per style.Makefile(5). 2004-02-05 22:44:25 +00:00
Jens Schweikhardt
9c83887e23 "The Aged Aged Man" was not a word doubling.
Spotted by:	grog
2004-01-19 21:22:21 +00:00
Poul-Henning Kamp
e65046462a typo, duh! 2004-01-13 08:00:55 +00:00
Poul-Henning Kamp
6b073ad98d This is simply too true to not become a fortune.
Wisdom by:	wes
2004-01-13 07:36:17 +00:00
Marc Fonvieille
cf8dceeb43 Add a tip on how to print a manual page.
PR:		docs/61033
Submitted by:	mi@
2004-01-07 19:49:12 +00:00
Ceri Davies
5aad4fa276 Stop "fortune -l" from looping forever.
PR:		bin/58730
Submitted by:	pak <pak@cns.utoronto.ca>
2003-12-27 16:04:41 +00:00
Jens Schweikhardt
d910ed771d Fix all cases of unintended word doublings (the the, and and, ...) and a
few typos.
2003-12-26 21:32:47 +00:00
Dag-Erling Smørgrav
76e762998c Use WARNS level 2 instead of setting CFLAGS explicitly to -Wall. 2003-12-07 17:34:52 +00:00
Poul-Henning Kamp
41ea5e4b77 A too good Feynman quote to pass up. 2003-12-07 10:03:20 +00:00
Poul-Henning Kamp
5645e50570 Add a card carryring member of the Pointless Comparison Collection. 2003-11-12 20:08:47 +00:00
Wilko Bulte
094e585d1c reformat HP eng. mgr quote
Requested by: nate
2003-11-10 23:08:39 +00:00
Peter Pentchev
92797e8470 Fix a typo: 'in cloud' -> 'in a cloud'.
PR:		58909
Submitted by:	Chris Pepper <pepper@rockefeller.edu>
MFC after:	1 week
2003-11-04 09:21:59 +00:00
Poul-Henning Kamp
d06b3f6b2a Add a '-l' option suitable for use with /dev/led/* lamps. 2003-11-03 11:05:43 +00:00
Poul-Henning Kamp
b6f0aad2fb Addition. 2003-10-20 21:22:41 +00:00
Tony Finch
32f3fff9ac A comment about spam and cockroaches.
Suggested by:	dwmalone
2003-10-16 15:25:19 +00:00
Thomas Gellekum
f8aa6f0c29 Fix typo. 2003-10-15 10:25:31 +00:00
Jens Schweikhardt
9301f38e84 Correct a typo (s/And/An/) 2003-10-12 11:37:15 +00:00
Jens Schweikhardt
3319e41ce0 Removed "Gerat" which is a typo of "Great".
Added FreeBSD ID.
2003-10-08 16:49:19 +00:00
Garrett Wollman
b3b86d2929 Retrocomputing alternate history.... 2003-10-07 15:09:19 +00:00
Wilko Bulte
bebbcc8ef8 Polish last fortune.
Suggested by: nate
2003-10-06 22:11:03 +00:00
Wilko Bulte
e95a20fe4f 'Upon the release of the second version'
Suggested that this is fortune material: rene@tunix.nl
MFC after: 2 weeks
2003-10-06 19:34:35 +00:00
Eivind Eklund
2b4226712d Fix spelling/grammar errors and remove a duplicate 2003-09-13 15:46:35 +00:00
Doug Barton
461722f0f2 * Fix a duplicate "how how"
* Fix pedstals -> pedestals
2003-08-31 23:05:39 +00:00
Ceri Davies
994d89af83 Correct a grammatical error.
PR:		misc/54967
Submitted by:	Paul A. Scott <pscott@the-frontier.org>
MFC After:	4 weeks
2003-08-25 20:08:16 +00:00
Andrey A. Chernov
90862ca23d LANG->LC_ALL
Pointed by:     ru
2003-08-04 21:31:53 +00:00
Andrey A. Chernov
ca87b783b5 Use LANG=C before tr to be shure that ranges are correct 2003-08-04 15:31:57 +00:00
Andrey A. Chernov
b131d40522 Rename collate_range_cmp() to stable_collate_range_cmp() to indicate
that it is not the common variant.
Remove doubtful microoptimization there.
2003-08-03 19:44:36 +00:00
Jens Schweikhardt
5ab032d6c6 Fix a tip about how to create an empty file[1].
Remove tip about retired kget(8).
Fix a typo.

PR:	conf/54334
Submitted by:	Mark Huizer <xaa+sendpr@timewasters.nl>
MFC after:	3 days
2003-08-02 20:36:28 +00:00
Maxime Henrion
42e271cf22 Remove a duplicate entry. 2003-07-25 11:14:03 +00:00
Mark Murray
ebb9f0efa8 Don't check for the existance of src/crypto/ for building items that
may contain crypto. The days of ITAR paranoia are over, and the simple
macro tests that remain are sufficient.
2003-07-24 18:30:25 +00:00
Matthew Hunt
87956a4441 Eliminate a duplicate. 2003-07-14 22:22:56 +00:00
John Baldwin
12008234da Add a quote of wpaul@ explaining the importance of including requested
content when replying to an e-mail.
2003-07-14 22:08:14 +00:00
Kris Kennaway
8a4b3625b6 Correct some typos.
Submitted by:	pscott@the-frontier.org
PR:		misc/51909
MFC After:	The average lifetime of a Star Trek redshirt
2003-07-13 03:49:43 +00:00
Will Andrews
17527010e2 Handle 12-hour clocks properly: when the time is 00:00-00:59, adjust the
hour to 12 so the time reads "12:00-12:59 AM".
2003-06-23 16:01:11 +00:00
Gregory Sutter
f55ae2fa26 Remove near-duplicate entry, keeping the better attributed one. 2003-06-19 22:52:50 +00:00
Murray Stokely
16f4e196f2 In the build process, fortune files have been randomized since at
least the 4.4-lite days.  This is pointless, since fortune(6) performs
its own randomization.  It was also problematic for binary update
systems such as ports/security/freebsd-update.  This commit simply
removes the -r option to strfile so that the datfiles are constant.

Submitted by:	Colin Percival <cperciva@sfu.ca>
2003-06-19 07:02:00 +00:00
Joerg Wunsch
0eecaa8d98 Preserve an involunteerily joke SunCheckup has been providing.
(NB: the space before the colon in the second line is authentic, please
don't remove.)
2003-06-18 12:46:20 +00:00
Tim Vanderhoek
f7f024d9cc Fixup three rather minor typos that have irked me over time. 2003-05-31 16:27:53 +00:00
Dag-Erling Smørgrav
54126046fd add a NOCRYPT check alongside the NO_OPENSSL check.
Approved by:	re (scottl)
2003-05-19 15:52:50 +00:00
Ruslan Ermilov
c8d3a56cb8 mdoc(7) police: Make SYNOPSIS match usage().
Approved by:	re (blanket)
2003-05-16 21:27:23 +00:00
Ruslan Ermilov
07e4e2cc98 mdoc(7) police: Added "rot13" to the NAME section.
Approved by:	re (blanket)
2003-05-16 21:26:39 +00:00
David E. O'Brien
e3c85e0226 Make the __FBSDID usage consistent
and protect copyright[] from Gcc 3.3's whining.
2003-05-05 09:52:25 +00:00
Maxime Henrion
37087753b2 Add an option to print the time in 12-hour format.
Submitted by:	Samy Al Bahra <samy@kerneled.com>
2003-03-28 16:37:45 +00:00
Eivind Eklund
c8190e399c Add a new chance at getting offended, having removed so many. 2003-03-24 18:59:00 +00:00
Eivind Eklund
8c75812a68 Remove duplicates 2003-03-24 18:58:16 +00:00
Eivind Eklund
b33af6fc9d Fix two more typos 2003-03-24 18:56:36 +00:00
Tim J. Robbins
954a953e8d Explain what the rot13 script does.
PR:		39044
2003-03-24 11:18:30 +00:00
Eivind Eklund
cc301fdaa5 Fix typos 2003-03-19 18:21:42 +00:00
Eivind Eklund
1587fcdce6 Fix typo 2003-03-19 18:14:47 +00:00
Eivind Eklund
b594bd6d9a Remove duplicates 2003-03-19 17:55:17 +00:00
Eivind Eklund
6ff4f27715 Fix typos 2003-03-19 17:54:22 +00:00
Eivind Eklund
68fc9ca99a Refactor two sexual jokes to murphy-o 2003-03-19 17:50:59 +00:00
Daniel C. Sobral
331fce2ee7 Improved version of Unix sex.
Submitted by: Chris Wasser <cwasser@shaw.ca>
2003-03-17 20:59:50 +00:00
Greg Lehey
11b8cdf76c Add long-term view of astronomy.
Submitted by:	newton

The attribution appears to be correct according to
http://emporium.turnpike.net/C/cs/sagan.htm.  Others have apparently
attributed it to Carl Sagan.
2003-03-15 02:10:53 +00:00
Tony Finch
587d9e3727 At the risk of serious physical abuse from markm, add another regex joke,
but s/regex/regular expression/g for terminological consistency.
2003-03-10 19:58:37 +00:00
Daniel C. Sobral
8f01b038f7 We were low on regex jokes. Now we are *really* low on them. 2003-03-10 13:47:43 +00:00
Garrett Wollman
17d21c5710 Fix style of recent additions and sort. 2003-02-26 04:41:58 +00:00
Mike Barcroft
f8b259a69a Add a great quote from Linus Torvalds about BDE. 2003-02-26 03:42:10 +00:00
Daniel C. Sobral
e426ee5d51 EMACS joke (no, not EMACS itself). 2003-02-24 18:04:20 +00:00
Jens Schweikhardt
5a99c48ef3 Fix a grammar bogon.
Submitted by:	Seth Hieronymus <sethh@principia.edu>
X-MFC after:	4.8 is out the door.
2003-02-24 17:52:02 +00:00
Garrett Wollman
20aef63915 Add a quote from Bob Schieffer's recent book about freedom of the press. 2003-02-23 06:14:04 +00:00
Ruslan Ermilov
2bee685c4a Fixed SYNOPSIS.
Expanded stdin/stdout definitions.
Ordered the SEE ALSO references.
Moved some chat from the BUGS section to freebsd-chat@.
Removed ``cvs log'' material from the HISTORY section.
2003-02-23 01:44:14 +00:00
Ceri Davies
a92acc1aed "Happiness" is a noun.
PR:		misc/47345
Submitted by:	Ben Rosengart <ben@narcissus.net>
2003-02-18 20:49:12 +00:00
Tony Finch
59da8bd213 Add Greenspun's Tenth Rule of Programming. 2003-02-18 20:34:13 +00:00
Jens Schweikhardt
25ef827219 Correct typos.
Submitted by:	Seth Hieronymus <sethh@principia.edu>
X-MFC after:	4.8 is out the door
2003-02-16 18:38:12 +00:00
Sean Chittenden
3f4b504568 flexlint rears its head as well as some style(9) fixes[1]. Fixed a
few bugs for a few corner cases and correctly handle the case where
read(2) is read()'ing from a non-file descriptor and could get fewer
bytes back than the buffer, but it isn't EOF[2].  random(6) extensively
tested and believed to be bug free (save performance for large files).

Submitted by:	mkm [1], tjr[2]
2003-02-15 10:26:10 +00:00
Robert Drehmel
571c3db70d Remove the suggestion to try `hangman', because it does not exist
in the base system anymore.
2003-02-15 09:11:25 +00:00
Wes Peters
24860c5a80 Add Warner Losh quote.
Submitted by:	Alexandr Kovalenko <never@nevermind.kiev.ua>
2003-02-11 21:38:02 +00:00
Sean Chittenden
a3b3a1cf6c Update random(6) to have the ability to randomize a file/stdin based
off of lines or words.  See the man page for details.

Reviewed by:	markm
MFC after:	3 days
2003-02-11 19:32:18 +00:00
Mike Barcroft
961ce4ff77 Immortalize a Robert Watson quote. 2003-02-10 17:34:32 +00:00
Tony Finch
77e48fe336 Add an explanation of why indirection is good. Remove an indirection
filk that also appears in fortunes2.
2003-01-23 19:23:52 +00:00
Jens Schweikhardt
d447a23756 s/Kank/Kang/ (the klingon)
PR:	misc/45012
Submitted by:	Steve Coltrin <spcoltri@omcl.org>
2003-01-04 17:08:23 +00:00
Jens Schweikhardt
9d5abbddbf Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
especially in troff files.
2003-01-01 18:49:04 +00:00
Jens Schweikhardt
d64ada501a Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/
Add FreeBSD Id tag where missing.
2002-12-30 21:18:15 +00:00
Ruslan Ermilov
051bb54bd3 mdoc(7) police: Added the missing .Os call; it's not strictly
necessary nowadays, but is documented as "required", and may
become so again in the future.

Approved by:	re
2002-12-11 15:55:29 +00:00
Ruslan Ermilov
8fea899f6b mdoc(7) police: sweep. 2002-11-29 16:21:33 +00:00
Jens Schweikhardt
a17eb04b82 Fix a typo. Add FreeBSD ID in a %% comment.
MFC after:	3 days
2002-11-17 09:53:11 +00:00
Joerg Wunsch
398fba8499 set watch in tcsh requires an equal sign after the variable name.
MFC after:	1 day
2002-11-16 13:24:44 +00:00
Daniel C. Sobral
c2c821be56 Add gerrold.limerick to the building process. 2002-11-10 23:41:01 +00:00
Daniel C. Sobral
e8fa871053 Finished at last. 2002-11-10 23:37:25 +00:00
Daniel C. Sobral
40276eb1ea Filling this file at last (now check when I first committed it and see how
long certain people take to return books...).

Still more to go.
2002-11-09 22:22:52 +00:00
Tony Finch
34faf20fae The future's bright: the future's Ballard... 2002-10-30 01:00:48 +00:00
Poul-Henning Kamp
6baff12cf5 Add a fortune for people who have read their classics. 2002-10-29 10:16:06 +00:00
Mark Murray
e9680a4d80 Remove old build glue for removed games. 2002-10-21 10:05:14 +00:00
Mark Murray
8800149214 Deorbit complete. We dont build these anymore, so into the attic they go. 2002-10-21 07:40:27 +00:00
Tom Hukins
7031dac23d Minor grammatical correction 2002-10-20 13:41:44 +00:00
Mark Murray
dc2f663b39 Do not build the majority of the games. Remaining are the
"utility-like" games and everyone's favourite, fortune(6).
2002-10-20 11:18:56 +00:00
Marc Fonvieille
7d23144bd5 Fix the path to the make.conf example file.
PR:		docs/44278
Submitted by:	Chris Pepper <pepper@rockefeller.edu>
2002-10-19 21:34:50 +00:00
Tony Finch
078b5daef7 So a positive time zone offset is west, right? or is it east? Um.
What is the standard for this, anyway? Ah, we get to choose. I see.

This commit is brought to you by the numbers 2001 and 2822 and the
letters P, O, S, I, X and R, F, C.
2002-10-19 04:49:10 +00:00
Tony Finch
d34adef8a0 Last commit was slightly hasty: #include <string.h> is required on
-CURRENT to be WARNS-safe (but not -STABLE for some reason)
2002-10-09 20:42:40 +00:00
Tony Finch
ad8222269e Kill obsolete #include <memory.h> which I didn't spot earlier because
it's still in the NetBSD version.
2002-10-09 20:30:57 +00:00
Tony Finch
bc71591d79 Mdocify and fix a load of errors dating back to the dawn of time.
Don't mention hard limits for factor(6) since it now has bignum support.

Obtained from:	NetBSD (mdoc only -- their man page is still mostly wrong)
2002-10-09 20:00:25 +00:00
Tony Finch
63f7eaa932 Factorize bignums using the Pollard Rho algorithm. The code comes
from NetBSD, altered to retain the FreeBSD -h feature and various
stylistic improvements and avoid regressions. In the absence of
OpenSSL (and therefore bignums) the old code is used.

PR:		43831
Reviewed by:	kris, markm, obrien
Obtained from:	NetBSD
MFC after:	2 weeks
2002-10-09 19:55:04 +00:00
Tony Finch
9a171f4fc4 Style fixes to: #include ordering; use const and static; ANSI functions;
various usage synopses; bogus and/or unnecessary casting; exit values;
use LINE_MAX instead of magic numbers; declare extern variables in a
header; add $FreeBSD$ where missing.

Reviewed by:    markm, obrien
Obtained from:  NetBSD | fanf
2002-10-09 19:38:55 +00:00
Juli Mallett
ce0d6fa464 As back-out requests must be followed, back out the removal of wargames(6)
at mike@'s request.
2002-10-09 01:46:37 +00:00
Juli Mallett
3685096edb Remove the wargames(6) novelty [and not the fun kind]:
1) It never was very funny.
	2) It was a N line shell script where N is less than
	   X, where X is the number of lines of the Berkeley
	   copyright and license.
	3) I rewrote it in C with the intention of making it
	   more interactive, ala the movie, but never did.
	4) Because it really is possible for at least some
	   parts of a distribution to shrink between releases.

X-No-MFC:	This game will remain in RELENG_4 and previous.
X-Bikesheds-To:	markm@
Approved by:	The #bsdcode cabal.
Obtained from:	Professor Falken
2002-10-08 20:19:26 +00:00
Juli Mallett
172043e91d We're missing none of these games, they just aren't here. 2002-10-08 20:15:30 +00:00
Jens Schweikhardt
334a0d61e1 Correct the description of what fortunes get installed (by default, also the
offensive ones). Make it clear that datfiles/Makefile needs to be edited in
case someone wants it otherwise.

PR:		misc/36153
Submitted by:	Nick Jennings <nick@namodn.com>
X-MFC after:	4.7 is out the door.
2002-09-24 19:00:52 +00:00
Jens Schweikhardt
6563eb85ee s/seems to thing/seems to think
X-MFC after:	4.7 is out the door
2002-09-21 16:13:20 +00:00
Thomas Gellekum
dd549a74d0 Fix spelling of Bismarck's name and remove duplicate
Bertrand Russell quotations.
2002-09-11 11:21:36 +00:00
Juli Mallett
d946bf7892 Add a tip about using sed(1)'s FreeBSD-specific -i option.
MFC after:	42 days
2002-09-04 23:28:35 +00:00
David Malone
a5fe067b05 Spell Ken Olsen's name the same way everywhere.
PR:		7434
2002-08-31 23:15:41 +00:00
Juli Mallett
6bb1d8eec5 Rewrite wargames(6) in C. A program in C in the public domain is better than
a shell script with a big copyright.  Or maybe just a good way to spend an hour
after watching a Matthew Broderick flick.
2002-08-30 07:14:42 +00:00
Juli Mallett
1f7bb90c29 Wargames was PG-13, not PGP 13. I just watched it with my girlfriend, and
there was no mention of PGP, despite what the manpage said!  Total let down!

MFC After:	65456665556666545666655654 DTMF tones.
2002-08-29 04:07:20 +00:00
Philippe Charnier
7fed38d0a0 Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:10:45 +00:00
Jens Schweikhardt
84bd1082cb Fix typos (s/seperat/separat/ et al); add FreeBSD ID.
Suggested by:	bde
MFC after:	3 days
2002-08-12 10:04:32 +00:00
Tony Finch
a2c4d39d54 Remove some Dijkstra quotes from fortunes that are duplicated in fortunes2.
Move the single remaining one across to fortunes2 to join its friends.
Spell his name consistently. Remove a couple of other duplicate fortunes.
2002-08-09 20:37:01 +00:00
Tony Finch
37609309c2 Re-sort. 2002-08-09 19:54:11 +00:00
Tony Finch
6ad860e1cf Remove spurious quotes. 2002-08-09 19:31:27 +00:00
Tony Finch
868052707a Correctly sort previous addition. 2002-08-09 19:30:20 +00:00
Tony Finch
7ce9cc80b4 Some more advice from Dijkstra. 2002-08-09 19:08:02 +00:00
Tony Finch
e3b282d990 Fix a couple of typos in a Dijkstra quote. 2002-08-09 19:00:10 +00:00
Ruslan Ermilov
d2893b161b Drop support for COPY, -c has been the default mode of install(1)
for a long time now.

Approved by:	bde
2002-07-29 09:40:17 +00:00
Ruslan Ermilov
0b87f79976 s/${INSTALL} -c/${INSTALL} ${COPY}/ 2002-07-18 12:07:49 +00:00
David Malone
f895acf90f Fix a typo.
PR:		40539
Submitted by:	Munish Chopra <mchopra@engmail.uwaterloo.ca>
2002-07-14 22:50:12 +00:00
David Malone
ffaa6f7c38 Fix a typo.
PR:		40523
Submitted by:	Andrew Stevenson <andrew@ugh.net.au>
2002-07-14 15:28:01 +00:00
Peter Wemm
744c5368b2 Fix whitespace botch in previous commit. 2002-07-09 06:47:29 +00:00
Peter Wemm
518b7839f2 Add C code that counts the bits in a 32 bit word, right next to the C code
that reverses the bits in a 32 bit word.  Who thinks up this stuff?
2002-07-09 02:56:10 +00:00
Mark Peek
a5499ad829 Paraphrase a quote to remove year specific references.
PR:		40291
Submitted by:	Pierre-Paul Lavoie <ppl@nbnet.nb.ca>
2002-07-07 16:13:48 +00:00
Juli Mallett
38764bffcf Use varargs for syserr().
Pointed out by:	snapshots.jp.freebsd.org warnings log.
2002-06-23 18:30:29 +00:00
Juli Mallett
54f3395319 syserr()'s first argument is not exit status, avoid dereferencing (char *)0
in printf(3).
2002-06-23 18:29:52 +00:00
Mike Barcroft
cb263c3594 Use POSIX macros for wait(2)-style status information instead of the
deprecated 4.2/4.3BSD wait union.  Fix some nearby pid_t/int
confusion.
2002-06-03 23:13:11 +00:00
Jens Schweikhardt
8f53a66abc Backout recent typo "fix". I've been enlightened that it's an obsolete
and rare synonym for indomitable (from the French indomptable)

Requested by:	"Jacques A. Vidrine" <nectar@FreeBSD.org>
2002-05-31 14:36:45 +00:00
Jens Schweikhardt
55847cbc30 Typo: s/Indomptable/Indomitable/
MFC after:	3 weeks
2002-05-31 13:26:56 +00:00
Garrett Wollman
7453f3df01 Add used include of <stdlib.h>, copying style bugs from adjacent lines. 2002-05-30 21:28:58 +00:00
Garrett Wollman
75aa1830f8 Fix preprocessor directive syntax (text after #endif). 2002-05-30 21:04:11 +00:00
Alfred Perlstein
14e5925796 Make almost WARNS=5 compliant:
ANSI'fy function declarations.
Constify some globals and function paramters.
Remove unsused arguments.
Fix (rename) shadowed variables.
2002-05-28 21:41:02 +00:00
Alfred Perlstein
064b20e506 Comment out comments after #endif directives 2002-05-28 21:06:03 +00:00
Alfred Perlstein
a82bbc730e Assume __STDC__, remove non-__STDC__ code.
Submitted by: keramida
2002-05-28 17:03:12 +00:00
Bruce Evans
6298150014 Fixed lossage of the prototype for usage() in previous commit.
Fixed higher WARNS levels while I was here (missing prototype for main(),
and missing const poisoning).
2002-05-28 12:20:15 +00:00
Kris Kennaway
556fc0b7e4 Quiet some format string warnings by marking prototypes with
__printflike()

MFC After:	1 week
2002-05-28 06:12:31 +00:00
Dag-Erling Smørgrav
656511fbfa Comment out extra tokens after #else and #endif. 2002-05-23 00:38:07 +00:00
Peter Wemm
1f777d8747 Do not guess what a bool is, just use it. 2002-05-21 08:34:18 +00:00
Doug Barton
99bb09292c Correctly attribute a Douglas Adams quote, and remove a duplicate of
the same quote.
2002-05-15 04:35:27 +00:00
Alfred Perlstein
ec3cd764a8 Fix warnings by commenting out text after #else/#endif. 2002-05-11 04:40:13 +00:00
David E. O'Brien
895567ca47 It is not clear if "#endif FOO" is allowed by ANSI. Gcc 3.1 complains
loudly, so don't do it.
2002-05-08 20:39:10 +00:00
David E. O'Brien
716c6e1fdd It is not clear if "#endif FOO" is allowed by ANSI.
Gcc 3.1 complains loudly, so don't do it.
2002-05-08 20:37:48 +00:00