Commit Graph

1080 Commits

Author SHA1 Message Date
eadler
f368f40efc Remove extra word:
Submitted by:	many
Approved by:	cperciva (implicit)
MFC after:	3 days
2012-10-23 15:03:25 +00:00
eadler
b55c76b1b0 Free buf when its no longer used. This helps eliminate a static analysis
warning.

PR:		ports/172566
Submitted by:	Erik Cederstrand <erik@cederstrand.dk>
Approved by:	cperciva
MFC after:	3 days
2012-10-22 03:06:59 +00:00
eadler
9715a49f5d bcd isn't installed setuid.
caesar isn't installed setuid.

For the archaeologists:
it seems this call originally came from NetBSD PR 5970 and 5945

PR:		172566
Submitted by:	Erik Cederstrand <erik@cederstrand.dk>
Approved by:	cperciva
MFC after:	3 days
2012-10-22 03:06:53 +00:00
eadler
4110ecce3a Sysinstall has been removed from base.
Approved by:	cperciva
2012-10-22 03:00:43 +00:00
eadler
4519224f47 Make do_uniq work with python3
Approved by:	cperciva
MFC after:	3 days
2012-10-22 02:29:56 +00:00
eadler
ebcbf50685 Correct the tip about finding all the directories on the system
Add a tip about clearing the screen.
Make things more consistent by removing quotes around 'make search'

Approved by:	cperciva
MFC after:	3 days
2012-10-02 00:30:15 +00:00
dougb
28600196ba Add a couple of nice quotes from Edward Everett Hale 2012-07-29 01:01:35 +00:00
eadler
64ab4ef2f5 Partial revert of previous commit as some of the changes were not
newbie-friendly.

Requested by:	jhb, gcooper
Approved by:	cperciva (implicit)
MFC after:	3 days
X-MFC-With:	r235209
2012-05-10 12:46:12 +00:00
eadler
1d7eb4dfbb Add a few new tips and update some old ones to more modern commands
MFC after:	1 week
2012-05-09 22:13:56 +00:00
eadler
1ef5fe44d3 Remove trailing whitespace per mdoc lint warning
Disussed with:	gavin
No objection from:	doc
Approved by:	joel
MFC after:	3 days
2012-03-29 05:02:12 +00:00
maxim
d697d490c5 o Preserve argv[0] to use it later in usage().
PR:		bin/164570
Submitted by:	Klaus Aehlig
MFC after:	1 week
2012-01-28 15:29:43 +00:00
uqs
a3cd50e586 Reencode morse.c to UTF-8. This does not make it Unicode aware.
No changes in resulting object file. Moved user-visible symbols into
comment table, so you can see all chars, not just the ones matching your
(fallback) locale.
2012-01-15 13:23:01 +00:00
ed
e7e5b53bf1 Replace index() and rindex() calls with strchr() and strrchr().
The index() and rindex() functions were marked LEGACY in the 2001
revision of POSIX and were subsequently removed from the 2008 revision.
The strchr() and strrchr() functions are part of the C standard.

This makes the source code a lot more consistent, as most of these C
files also call into other str*() routines. In fact, about a dozen
already perform strchr() calls.
2012-01-03 18:51:58 +00:00
dougb
96d2ec96a9 1. Correct capitalization of the nobility particle for
Francois de La Rochefoucauld introduced in r228909 [1],[2]

2. Change c-cedilla introduced in the same commit to ASCII c since
   non-UTF-8 terminals will choke on the non-ASCII text. [2],[3]

Pointed out by:	bf [1]
Reviewed by:	French-speakers on #bsdcode [2]
Requested by:	uqs [3]
2011-12-28 22:18:53 +00:00
uqs
68c3cd3b7e Prefer ASCII apostrophes over Unicode ones like the rest of the file. 2011-12-28 19:37:03 +00:00
dougb
f982f04def 1. Remove a bunch of duplicates. Usually this means removing them from
fortunes, but occasionally remove them from the other 2 files when
   they are not offensive, or not murphy'ish enough.

   Where the version in fortunes had better attribution and/or formatting,
   copy it over.

2. Fix a few typos

3. Use the full name of François De La Rochefoucauld, fix one of his
   quotes, and remove the duplicate of it.
2011-12-27 10:21:57 +00:00
dim
d01916530c In games/factor/factor.c, fix a warning about a format string not being
a literal.

MFC after:	1 week
2011-12-16 21:24:11 +00:00
ed
af1e42f366 Add static keywords to variables and functions where possible in games/.
This allows us to detect unused functions and variables and allows the
compiler to do a better job at optimisation.
2011-11-05 07:18:53 +00:00
dougb
903461fc0b Fix the text and attribution of the poem "Youth" by Samuel Ullman.
Our copy was a bastardization of the "older" (probably original?) and
shorter version of the poem; and the "newer" version that is better
known, and arguably more popular. Standardize on the latter.

Cf. http://www.bartleby.com/73/2099.html
2011-10-29 06:33:12 +00:00
dougb
19ee445add Minor typo, fix 2 attributions 2011-06-09 06:10:39 +00:00
uqs
387ef87903 Convert a file to UTF-8. This only changes a character in the
copyright section and will not require UTF-8 for fortune(6).
2011-05-14 19:03:54 +00:00
uqs
a60c79bc44 fortune(6): fix typos and misspellings.
While here, drop words in the spelling files that are no longer used
anywhere.

Speling errors found via:	codespell from Lucas De Marchi
2011-05-14 19:03:45 +00:00
uqs
a79eafddc3 morse(6): fix typos and space-before-tabs 2011-05-14 19:03:30 +00:00
nwhitehorn
a8c9f18299 Improve the distributeworld target in Makefile.inc1 and update the release
infrastructure to use it. make distributeworld can now be used without
preparing its environment first and installs games into its distribution
using the regular make distribute logic instead of post-processing with
a script.

Also add two new targets, packageworld and packagekernel, that tar up the
results of distributeworld and distributekernel (also new), respectively.
2011-03-02 14:39:26 +00:00
brucec
15edba98d5 Move potentially offensive fortune to fortunes-o.
PR:	bin/137702
MFC after:	3 days
2011-02-13 18:18:56 +00:00
uqs
755da7b81e factor(6): Check return values of BN_* functions.
Coverity Prevent:	CID 4862, 8771, 8772, 8773
2010-12-20 19:07:56 +00:00
uqs
e166421f4d Drop advertising clause in manpages. It was done a long time ago
for the source code.

Discussed with:	core
2010-12-06 19:12:51 +00:00
uqs
8ae3afcfad mdoc: drop redundant .Pp and .LP calls
They have no effect when coming in pairs, or before .Bl/.Bd
2010-10-08 12:40:16 +00:00
cperciva
5cb9bcbf09 Add advice to new fathers from Thomas Ptacek.
Suggested by:	wilko
Approved by:	Thomas Ptacek
Security:	New parents often feel very insecure.
2010-09-29 23:47:06 +00:00
jmg
dea7e7503e fix the move so that it matches what the rest of the internet
says about this game...  This move also makes more sense...

MFC after:	1 week
2010-09-03 03:20:34 +00:00
fjoe
855b4d34ca "whereis netscape" gives empty output for quite a long time already.
Suggest to use "whereis firefox" instead.
2010-08-09 09:26:17 +00:00
uqs
25440e11e9 grdc(6): de-obfuscate the timekeeping of now/delay
- 'now' only contains current time readings
- delay is only used as parameter to nanosleep
- prev_sec contains the time_t of the previous loop iteration

Submitted by:	bde
MFC after:	2 weeks
2010-08-03 20:56:23 +00:00
uqs
5a360d60e9 grdc(6): Partial backout of r210755
The previous revision was flawed in numerous ways:
- the if condition would depend on garbage stack values
- grdc(6) would loop n times, not n seconds. This only makes
  a difference if it takes more than 1 second to recalculate/redraw
  the display.
- style(9) violations

The following change adds argument checking and tracks the elapsed time
between loops explicitly and will exit after roughly n seconds.

While here sort headers and remove bogus #ifndef

Submitted by:	bde
MFC after:	2 weeks
2010-08-03 16:02:57 +00:00
uqs
7c961933f9 grdc(6): fix timekeeping for user-supplied value n
- Keep timespec 'now' and 'delay' separate to avoid confusion
- Increase user-supplied n to run _at least_ n seconds, not max n

PR:            bin/149130 (based on)
Submitted by:  Andy Farkas
MFC after:     2 weeks
2010-08-02 12:15:22 +00:00
uqs
d5b10f78d9 Fix indention of attribution line for some recent additions.
MFC after:	3 days
2010-07-30 20:20:14 +00:00
uqs
213ccb3efe Fix typo in pom(6) manpage
PR:		docs/148825
Submitted by:	Anatoly Borodin
MFC after:	1 week
2010-07-30 09:34:40 +00:00
dougb
0e1b75189b Correct a Cecil Beaton quote
PR:		docs/148916
Submitted by:	Rob Farmer <rfarmer@predatorlabs.net>
2010-07-25 21:35:56 +00:00
emaste
5cf2e8608d Add -p option to have pom(6) print just the percentage, without extra text.
PR:		bin/51070
Submitted by:	Matt Koivisto mkoivisto sandvine com
MFC after:	1 week
2010-07-15 00:16:04 +00:00
dougb
96f7f6794f Taken from actual police videos ... 2010-06-26 07:02:31 +00:00
uqs
da0290f8d3 random(6): avoid dead assignments
Found by:	clang static analyzer
2010-06-14 13:03:25 +00:00
uqs
d88f969fdd mdoc cleanup
Garbage collect unused sections, macros and arguments. Fix prologue and
remove empty lines.

Found by: mdocml
2010-06-02 10:20:23 +00:00
uqs
b9a504725e Sync fortunes with other *BSDs
- Spelling errors
- Typographical fixes
- Consistent attributions
- Use Jr. more consistently
- Capitalization of dictionary-like entries
- Sorting using tools/do_sort
- Remove duplicate fortunes
- Style according to the Notes file
- Reflect correct default fortune name in Notes
- Remove some no longer needed spelling hints
- Drop latin1 characters (sorry Mårten)

This is a partial sync against the DragonflyBSD sources, where a lot of
fixes from Free, Net and OpenBSD were merged previously. Only about 50%
of the changes originate from there, the rest was done by dougb and
yours truly.

Partial review by:	wilko (earlier version), ed (dito)
In collaboration with:	dougb
Approved by:		ed (co-mentor)
2010-03-31 18:21:25 +00:00
uqs
8f141f1a13 Fix several typos in macros or macro misusage.
Found by:	make manlint
Reviewed by:	ru
Approved by:	philip (mentor)
2010-03-12 10:01:06 +00:00
wilko
2c2b4cb0e3 s/all ready/already/
Submitted by:	ru@, gj@
2010-02-26 16:27:11 +00:00
wilko
709c06294d On the (non)sense of legal disclaimers in emails. 2010-02-25 15:03:57 +00:00
uqs
74cf8088e7 Prefer exit(0) from main over return(0).
Although not explicitly mentioned in style(9), it allows for easier
grepping of exit points. This reverts part of r203926.

Requested by:	des
Approved by:	philip (mentor)
2010-02-21 21:03:15 +00:00
imp
7c458552b0 Remove the third clause for the Berkeley parts of games, per the
letter in /COPYRIGHT.
2010-02-15 18:46:02 +00:00
uqs
6dbf26d197 fortune(6) switch to 3-clause BSDL; style(9)
This reduces the diff to other *BSD and makes it possible to actually
see the code differences.

Approved by:	ed (Co-mentor)
2010-02-15 15:10:21 +00:00
uqs
23cb4f332d games: make WARNS=6 the default, remove overrides
This also bumps factor, fortune, primes, and random to WARNS=6.

Approved by:	ed (Co-mentor)
2010-02-15 14:32:00 +00:00
uqs
9dc5fb429a fortune(6) make WARNS=6 clean
Fixes taken mostly from DragonflyBSD.

Approved by:	ed (Co-mentor)
2010-02-15 14:31:30 +00:00