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
Matthew Hunt
bff11a8c74
s/-300K/~300K/
...
This is an absolute (kelvin) temperature. I expect that in the original
source it was typeset as $\sim 300~{\rm K}$ or similar, meaning
"approximately 300 K". Changing it to a minus sign in the fortunes file
was clearly an error, as absolute temperatures are by definition positive.
2002-05-01 06:20:57 +00:00
Doug Barton
ab4b9024b8
More ispell fun
2002-04-30 10:13:42 +00:00
Doug Barton
9e70deb400
Fix a few more of my typos, a few others I noticed, and some ispell help.
2002-04-30 08:08:31 +00:00
Sheldon Hearn
c944cdca84
Correct typo (is -> us).
2002-04-30 07:36:44 +00:00
Juli Mallett
a85dfc0c55
Add something absurd I used one night as an example of CS overcomplication
...
of things most hackers take for granted.
2002-04-29 06:26:12 +00:00
Juli Mallett
b2d9070d05
Add one more here.
...
Submitted by: Glen "Going to be a Daddy" Neff
2002-04-29 02:00:53 +00:00
Juli Mallett
6026955eaa
Remove a Kurt Vonnegut quote that appears in fortunes.
2002-04-29 01:44:16 +00:00
Juli Mallett
d6eff954b4
Spell out the name of Hunter S. Thompson.
2002-04-29 01:38:43 +00:00
Juli Mallett
e7e84ede9c
Sort one, remove some dupes.
2002-04-29 01:22:50 +00:00
Juli Mallett
6e769de197
Add something I found amusing when overheard, and a paraphrasal of it.
2002-04-29 01:05:23 +00:00
Doug Barton
c1ca1eec09
Move the Rush Limbaugh fortunes to the offensive file, right after the
...
Anti-Reagan section. :) Apparently, people find opinions contrary to
their own to be offensive.
2002-04-29 00:41:55 +00:00
Doug Barton
3028cb907b
Sort according to ../tools/do_sort
2002-04-29 00:33:30 +00:00
Doug Barton
c1652fa4a1
* Add a quote about the differences between human and machine
...
understanding from Ellen Ullman.
* Add Rush Limbaugh's 35 Undeniable Truths of Life. The ordering
of the entries is due to the ../tools/do_sort script.
2002-04-28 23:34:25 +00:00
Doug Barton
b564d8acf1
* Add $FreeBSD$ to limerick and zippy
...
* Delete trailing white space in all its forms. In addition to being
bad style in general, it also causes formatting, and other problems
for various third party items (like xscreensaver) which use fortunes
for their own purposes.
2002-04-28 21:59:07 +00:00
Juli Mallett
3ee16cca88
Kill one version of a limerick here.
...
Approved by: The usual suspects on that IRC channel.
2002-04-28 21:16:32 +00:00
Juli Mallett
382f76926f
Kill some duplicates.
...
Kill an incorrectly duplicated Einstein limerick (thanks phk!)
2002-04-28 21:03:26 +00:00
Juli Mallett
4fa6dc65ed
Kill one exact duplicate of a Hunter S. Thompson quote. Put on peril-sensitive
...
sunglasses for great evil, too.
2002-04-27 06:14:32 +00:00
Juli Mallett
8b3a5378a0
Death to duplicate fortunes.
2002-04-27 05:46:13 +00:00
Ceri Davies
bc219a1c8b
There is no host called new.bbc.co.uk - fix url.
...
Reviewed by: jkh
Approved by: jkh, murray
MFC after: 3 days
2002-04-26 10:58:06 +00:00
Garrett Wollman
94223b38e8
Sort.
2002-04-25 19:31:43 +00:00
Garrett Wollman
cdc811cfca
Spell Fred Brooks's name right.
2002-04-25 19:27:40 +00:00
Garrett Wollman
b84cde50fc
Resort and suppress dupes.
2002-04-25 19:12:30 +00:00
Garrett Wollman
3cfabe1aef
Add a few more aphorisms.
2002-04-25 18:53:41 +00:00
Garrett Wollman
461e39085c
Add some of uncontroversial fortunes from my files.
2002-04-25 03:20:27 +00:00
Thomas Gellekum
7ad7cdff6f
Add some fortunes and re-order the Feynman problem solving algorithm.
...
Thanks to gsutter for the quotes.
Reviewed by: jkh
2002-04-24 12:15:00 +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
Peter Pentchev
7664eb8fc2
Fix a segfault if 'wear' is used without an argument or with
...
an argument that is not a valid word from the battlestar dictionary.
PR: 36992
Submitted by: Ceri Davies <ceri@FreeBSD.org>
Reviewed by: dd
Approved by: dd, silence on -audit
MFC after: 2 weeks
2002-04-15 17:27:34 +00:00
Philippe Charnier
5c0d6186d9
End of comment was missing at FreeBSD Id line. Switch to FBSDID.
2002-04-12 20:16:15 +00:00
Josef Karthauser
3db15d8edf
Add a few more tips, and tweak a couple.
...
PR: misc/34039
2002-04-01 08:53:21 +00:00
Josef Karthauser
aa1970a03f
Augment the BLOCKSIZE tip. (Based on the PR with slight changes by myself).
...
PR: misc/34039
2002-04-01 08:43:58 +00:00
John Baldwin
8c47a53d2c
Add a new fortune seen in the sig of an e-mail.
...
Submitted by: ue (indirectly)
Approved by: eivind
2002-03-29 21:32:08 +00:00
Warner Losh
35c85fe2c8
o remove __P
2002-03-24 01:09:35 +00:00
Jens Schweikhardt
7d03b11905
Remove a duplicate with a typo.
...
MFC after: 3 days
2002-03-23 22:10:02 +00:00
Dima Dorfman
ae444ae634
Assorted mechanical fixes.
...
PR: 34790
Submitted by: Mike Makonnen <mike_makonnen@yahoo.com>
2002-03-09 04:38:25 +00:00
Poul-Henning Kamp
4670ae1cea
Add one.
...
Submitted by: jedgar
Reviewed by: The usual gang of idiots in that IRC channel.
2002-02-25 21:52:34 +00:00
Bruce Evans
b4358c15a1
#include <time.h> for the definition of time functions instead of
...
depending on namespace pollution 2 layers deep in <sys/stat.h>.
Sorted includes. Removed some unused includes.
2002-02-25 01:50:43 +00:00
Bill Fumerola
1210c77166
BDECFLAGS
...
Reviewed by: md5(1)
2002-02-23 10:44:04 +00:00
Bill Fumerola
578a176b1e
KNF -> ANSI function declarations
...
Reviewed by: md5(1)
2002-02-23 10:35:25 +00:00
Bill Fumerola
d911c680ee
KNF to ANSI function declaration, silence a warning
2002-02-23 10:21:19 +00:00
Bill Fumerola
c533148aab
warning fixes, mostly type matching
2002-02-23 09:59:45 +00:00
Bill Fumerola
b30325de41
convert from KNR to ANSI function declarations
...
Reviewed by: md5(1)
2002-02-23 09:53:27 +00:00
Bill Fumerola
a48e6c8736
staticize functions and variables
...
change function declarations to ANSI
change a variable that stores sizeof() values to size_t
use return to escape the end of main(), not exit(3)
2002-02-21 18:13:31 +00:00
Bill Fumerola
a30946043b
use the typedef 'ubig' to declare pr_limit, not what ubig is typedef'd
...
to be.
PR: misc/35181
Submitted by: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>
MFC after: 3 days
2002-02-21 17:33:56 +00:00
Mike Barcroft
fd8e4ebc8c
o Move NTOHL() and associated macros into <sys/param.h>. These are
...
deprecated in favor of the POSIX-defined lowercase variants.
o Change all occurrences of NTOHL() and associated marcros in the
source tree to use the lowercase function variants.
o Add missing license bits to sparc64's <machine/endian.h>.
Approved by: jake
o Clean up <machine/endian.h> files.
o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>.
o Remove prototypes for non-existent bswapXX() functions.
o Include <machine/endian.h> in <arpa/inet.h> to define the
POSIX-required ntohl() family of functions.
o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>,
and <sys/param.h>.
o Prepend underscores to the ntohl() family to help deal with
complexities associated with having MD (asm and inline) versions, and
having to prevent exposure of these functions in other headers that
happen to make use of endian-specific defines.
o Create weak aliases to the canonical function name to help deal with
third-party software forgetting to include an appropriate header.
o Remove some now unneeded pollution from <sys/types.h>.
o Add missing <arpa/inet.h> includes in userland.
Tested on: alpha, i386
Reviewed by: bde, jake, tmm
2002-02-18 20:35:27 +00:00
Warner Losh
8654c84817
Fix last second botch of adding $FreeBSD$.
2002-02-18 05:40:54 +00:00
Warner Losh
ad64363769
Remove __P
...
Remove __STDC__ (which means we now use stdarg rather than vararg)
Remove register
Remove main prototype
2002-02-18 05:15:19 +00:00
Giorgos Keramidas
505e7511bc
Add a tip about pkg_info and checking for multiple installed versions
...
of a package/port.
2002-02-11 03:45:29 +00:00
Bruce Evans
c1e954d14a
Don't declare our own common version of the library variable `ospeed'.
...
Include <termcap.h> to get its declaration. Our initialization of it
is still dubious, but it agrees with ncurses' documentation of it
(none) and with ncurses' recently fixed internals for it (old speeds
from <sys/ttydev.h>) and with the 4.4Lite documentation for it.
2002-02-02 09:50:45 +00:00
Bruce Evans
b8483c75e1
Don't declare the library variable `ospeed' without even getting its
...
type correct. Include <termcap.h> to get its declaration. Our
initialization of it is still dubious, but it agrees with ncurses'
documentation of it (none) and with ncurses' recently fixed internals
for it (old speeds from <sys/ttydev.h>) and with the 4.4Lite
documentation for it.
2002-02-02 09:37:20 +00:00
Bruce Evans
2d042c9bb9
Don't declare our own common version of the library variable `ospeed'
...
without even getting its type correct. Include <termcap.h> to get its
declaration. Our initialization of it is still dubious, but it agrees
with ncurses' documentation of it (none) and with ncurses' recently
fixed internals for it (old speeds from <sys/ttydev.h>) and with the
4.4Lite documentation for it.
2002-02-02 09:32:09 +00:00
Thomas Gellekum
b051995c7f
Clean up G. B. Shaw quotes:
...
- fix missing punctuation,
- remove duplicates in fortunes2,
- don't abbreviate first names.
Remove duplication of Shaw's principle in fortunes2.
2002-01-07 13:47:22 +00:00
Greg Lehey
eb8d2682ce
Correct typo.
2002-01-01 00:50:30 +00:00
Peter Pentchev
ca33a43ede
Fix a typo. While 'iff' might make sense in a mathematics-related text,
...
'if and only iff' does not.
PR: 33242
Submitted by: Eric Yu <ericyu@mail2000.com.tw>
2001-12-27 13:33:10 +00:00
Wilko Bulte
9e33f9cfe0
A case of ninfo (non-info)
...
Submitted by: Hans.VanSluis@compaq.com
MFC after: 1 month
2001-12-20 17:25:45 +00:00
Ruslan Ermilov
b8ffbbf1c1
Install files via FILES.
2001-12-17 15:23:57 +00:00