NetBSD/games
martin 1e94389c31 Pull up following revision(s) (requested by ast in ticket #128):
games/primes/pattern.c: revision 1.7
	games/primes/primes.h: revision 1.6
	games/primes/spsp.c: revision 1.1
	games/primes/Makefile: revision 1.8
	games/factor/factor.c: revision 1.27
	games/factor/factor.6: revision 1.13
	games/primes/primes.c: revision 1.20
	games/primes/primes.c: revision 1.21
	games/primes/pr_tbl.c: revision 1.8
	games/primes/primes.6: revision 1.4
	games/primes/primes.6: revision 1.5
Imported and adapted from FreeBSD svn r272166 and r272207; this fixes
false positives for products of primes larger than 2^16. For example,
before this commit:
  $ /usr/games/primes 4295360521 4295360522
  4295360521
but
  $ /usr/games/factor 4295360521
  4295360521: 65539 65539
or
  $ /usr/games/primes 3825123056546413049 3825123056546413050
  3825123056546413049
yet
  $ /usr/games/factor 3825123056546413049
  3825123056546413049: 165479 23115459100831
or
  $ /usr/games/primes 18446744073709551577
  18446744073709551577
although
  $ /usr/games/factor 18446744073709551577
  18446744073709551577: 139646831 132095686967
Incidentally, the above examples show the smallest and largest cases that
were erroneously stated as prime in the range 2^32 .. 3825123056546413049
.. 2^64; the primes(6) program now stops at 3825123056546413050 as
primality tests on larger integers would be by brute force factorization.
In addition, special to the NetBSD version:
. for -d option, skip first difference when start is >65537 as it is incorrect
. corrected usage to mention both the existing -d as well as the new -h option
For original FreeBSD commit message by Colin Percival, see:
http://svnweb.freebsd.org/base?view=revision&revision=272166
usage police
2014-10-05 10:21:04 +00:00
..
adventure Minor tidyup. 2014-03-22 22:04:40 +00:00
arithmetic WARNS=5, and make WARNS=5 the default for src/games. 2012-06-19 05:46:08 +00:00
atc Make the list of place types an enumeration. Use unsigned values for 2014-03-22 22:58:56 +00:00
backgammon don't declare ospeed; it's in <termcap.h> 2014-03-22 23:10:36 +00:00
banner Move scratch variables of main to main, instead of having them be 2012-10-13 19:44:36 +00:00
battlestar Use random(), not rand(). 2014-03-22 23:33:33 +00:00
bcd sprinkle static 2009-08-12 05:17:57 +00:00
boggle use size_t instead of int for a length 2014-03-22 23:39:04 +00:00
caesar Remove the \n and tabs from the __COPYRIGHT() strings. 2008-07-20 00:52:39 +00:00
canfield Use ssize_t for read() results. Don't use int for lseek() results. 2014-03-22 23:47:03 +00:00
cgram Add RCS Id. 2013-08-04 07:55:09 +00:00
ching this already passes WARNS=5 2013-08-11 03:27:02 +00:00
colorbars WARNS=5 2013-12-07 02:24:12 +00:00
countmail Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
cribbage Pass -Wstrict-overflow, and while here, don't read from index -1 of 2012-10-13 20:36:06 +00:00
dab if 0 is used for the dimensions, compute the maximum size. 2012-10-06 19:39:51 +00:00
dm remove unnecessary cast 2009-08-27 00:22:28 +00:00
factor Pull up following revision(s) (requested by ast in ticket #128): 2014-10-05 10:21:04 +00:00
fish reinstate NULL cast by request, where the NULL was being passed as a vararg 2011-09-01 07:18:50 +00:00
fortune fix typo, from Henning Petersen in PR misc/48613 2014-02-22 17:21:19 +00:00
gomoku move extern decls to .h files 2014-03-22 18:58:57 +00:00
hack WARNS=5, and make WARNS=5 the default for src/games. 2012-06-19 05:46:08 +00:00
hals_end hals_end(6) outputs the last words of the supercomputer HAL 9000 aboard 2013-11-12 17:46:20 +00:00
hangman Pass -Wstrict-overflow 2012-10-13 21:03:09 +00:00
hunt Remove unused. 2014-03-30 09:11:50 +00:00
larn WARNS=5 2012-06-19 05:30:43 +00:00
mille NULL does not need a cast 2011-08-31 16:24:54 +00:00
monop WARNS=5 2012-06-19 05:30:43 +00:00
morse WARNS=5, and make WARNS=5 the default for src/games. 2012-06-19 05:46:08 +00:00
number gratuitous (but not harmful) changes to pass gcc48's -Wconversion 2014-03-23 00:03:04 +00:00
phantasia remove remaining makefile support for GCC < 45 that i found. 2014-06-14 20:49:36 +00:00
pig WARNS=5, and make WARNS=5 the default for src/games. 2012-06-19 05:46:08 +00:00
pom Fix a few of the games to use getprogname() in their usage() functions. 2010-12-05 04:34:22 +00:00
ppt Use __dead 2011-08-29 20:30:36 +00:00
primes Pull up following revision(s) (requested by ast in ticket #128): 2014-10-05 10:21:04 +00:00
quiz fix signedness issue 2014-03-23 00:07:15 +00:00
rain When using -lcurses, you also need -lterminfo. 2010-02-06 23:45:24 +00:00
random sprinkle static 2009-08-12 08:21:41 +00:00
robots When using -lcurses, you also need -lterminfo. 2010-02-06 23:45:24 +00:00
rogue Reorg docs, part 1: 2014-07-05 19:22:41 +00:00
sail temp is a pointer, and tempmax, not sizeof(temp), is the length of 2014-03-28 17:53:47 +00:00
snake WARNS=5, and make WARNS=5 the default for src/games. 2012-06-19 05:46:08 +00:00
tetris Bump date for -c (exactly one year after previous bump) 2014-07-15 16:17:15 +00:00
trek Reorg docs, part 1: 2014-07-05 19:22:41 +00:00
wargames
worm ANSIfy 2011-05-23 23:03:38 +00:00
worms - improve wording 2012-08-12 17:30:03 +00:00
wtf PR/47178 from Bug Hunting 2012-11-20 12:40:54 +00:00
wump WARNS=5, and make WARNS=5 the default for src/games. 2012-06-19 05:46:08 +00:00
Makefile hals_end(6) outputs the last words of the supercomputer HAL 9000 aboard 2013-11-12 17:46:20 +00:00
Makefile.inc Add note cautioning against bothering with WARNS=6 until gcc improves 2014-03-23 00:17:40 +00:00