]> git.cameronkatri.com Git - bsdgames-darwin.git/log
bsdgames-darwin.git
11 years agoError and typo fixes from OpenBSD and FreeBSD via Henning Petersen
wiz [Wed, 11 Dec 2013 11:24:56 +0000 (11:24 +0000)]
Error and typo fixes from OpenBSD and FreeBSD via Henning Petersen
in PR 48442.

11 years agoWARNS=5
dholland [Sat, 7 Dec 2013 02:24:12 +0000 (02:24 +0000)]
WARNS=5

11 years agohals_end(6) outputs the last words of the supercomputer HAL 9000 aboard
mbalmer [Tue, 12 Nov 2013 17:46:20 +0000 (17:46 +0000)]
hals_end(6) outputs the last words of the supercomputer HAL 9000 aboard
the spaceship in Stanley Kubrick's famous film "2001 - A Space Odissey".
The source code and output of this program were used to illustrate
an article in the book "Total Interaction".  How this looks in print can
be at http://www.netbsd.org/~mbalmer/hals_end.jpg.

11 years agofix unused variable warnings
christos [Sat, 19 Oct 2013 17:19:30 +0000 (17:19 +0000)]
fix unused variable warnings

11 years agoUntabify the header definition to avoid misaligned comment on
uwe [Thu, 19 Sep 2013 00:58:11 +0000 (00:58 +0000)]
Untabify the header definition to avoid misaligned comment on
str_delim in PostScript output.

11 years agoUse .Fa instead of .Ar to refer to header fields.
uwe [Thu, 19 Sep 2013 00:53:55 +0000 (00:53 +0000)]
Use .Fa instead of .Ar to refer to header fields.

11 years agoNow that we use "nbtool_config.h" we can use __dead again and drop
uwe [Thu, 19 Sep 2013 00:34:00 +0000 (00:34 +0000)]
Now that we use "nbtool_config.h" we can use __dead again and drop
local attempts to define its equivalent.

Also drop the comment that warns this file is a tool; use of
"nbtool_config.h" makes it evident.

11 years agoDon't define TRUE/FALSE, which may conflict with host headers.
uwe [Thu, 19 Sep 2013 00:18:52 +0000 (00:18 +0000)]
Don't define TRUE/FALSE, which may conflict with host headers.
TRUE is unused anyway.  Replace all instances of FALSE with 0.

11 years ago#include "nbtool_config.h" to pull in getprogname() declaration.
uwe [Wed, 18 Sep 2013 23:18:14 +0000 (23:18 +0000)]
#include "nbtool_config.h" to pull in getprogname() declaration.

11 years agoGC descr and helpm.
joerg [Fri, 13 Sep 2013 20:46:50 +0000 (20:46 +0000)]
GC descr and helpm.

11 years agohook cgram to the build
dholland [Sun, 1 Sep 2013 18:37:06 +0000 (18:37 +0000)]
hook cgram to the build

11 years agoWARNS=5
dholland [Sun, 11 Aug 2013 03:44:27 +0000 (03:44 +0000)]
WARNS=5

11 years agotypo in comment
dholland [Sun, 11 Aug 2013 03:34:48 +0000 (03:34 +0000)]
typo in comment

11 years agothis already passes WARNS=5
dholland [Sun, 11 Aug 2013 03:27:02 +0000 (03:27 +0000)]
this already passes WARNS=5

11 years agoAdd RCS Id.
wiz [Sun, 4 Aug 2013 07:55:09 +0000 (07:55 +0000)]
Add RCS Id.

11 years agoAdd a curses gizmo for solving Sunday-paper-type cryptograms based on
dholland [Sun, 4 Aug 2013 05:42:47 +0000 (05:42 +0000)]
Add a curses gizmo for solving Sunday-paper-type cryptograms based on
substitution ciphers. It gets the cleartext from fortune. I wrote this
some years ago for my own amusement; a couple people have suggested
that I should import it.

Approved only by groo, so I'm going to wait a couple days to hook it
to the build in case anyone demands it be removed again...

11 years agoFix typo.
wiz [Wed, 24 Jul 2013 06:57:09 +0000 (06:57 +0000)]
Fix typo.

11 years agoadd an Oscar Wilde quote
jnemeth [Wed, 24 Jul 2013 04:41:49 +0000 (04:41 +0000)]
add an Oscar Wilde quote

11 years agoUse Mt for email addresses.
wiz [Sat, 20 Jul 2013 21:39:55 +0000 (21:39 +0000)]
Use Mt for email addresses.

11 years agoFix sendmail section (8 -> 1) in xrefs.
njoly [Tue, 9 Jul 2013 09:41:30 +0000 (09:41 +0000)]
Fix sendmail section (8 -> 1) in xrefs.

11 years agoDon't expect fairings.
dholland [Sun, 12 May 2013 03:29:07 +0000 (03:29 +0000)]
Don't expect fairings.

11 years agoFix same typo in the other file in which it occurs
pgoyette [Sun, 17 Feb 2013 13:39:51 +0000 (13:39 +0000)]
Fix same typo in the other file in which it occurs

11 years agoFix minor typo
pgoyette [Sun, 17 Feb 2013 13:36:01 +0000 (13:36 +0000)]
Fix minor typo

11 years agorename target paper.${PRINTER} to paper.ps -- PRINTER isnt defined anywhere!
jmcneill [Sun, 17 Feb 2013 12:17:40 +0000 (12:17 +0000)]
rename target paper.${PRINTER} to paper.ps -- PRINTER isnt defined anywhere!

11 years agoWorkaround a toolchain issue by renaming the 'setup' host tool to 'mkdata' to make...
jmcneill [Sat, 16 Feb 2013 17:00:21 +0000 (17:00 +0000)]
Workaround a toolchain issue by renaming the 'setup' host tool to 'mkdata' to make UAC happy when building with Cygwin. As described here -- http://msdn.microsoft.com/en-us/library/windows/desktop/bb756960.aspx -- 32-bit executables whose filenames include the strings 'install', 'setup', 'update', 'patch', etc. by default will request admin privileges unless an application manifest is provided.

11 years agoWorkaround a toolchain issue by renaming the 'setup' host tool to 'mkdata' to make...
jmcneill [Sat, 16 Feb 2013 16:30:28 +0000 (16:30 +0000)]
Workaround a toolchain issue by renaming the 'setup' host tool to 'mkdata' to make UAC happy when building with Cygwin. As described here -- http://msdn.microsoft.com/en-us/library/windows/desktop/bb756960.aspx -- 32-bit executables whose filenames include the strings 'install', 'setup', 'update', 'patch', etc. by default will request admin privileges unless an application manifest is provided.

12 years agoAdd some quotes by Henry Ford, found at:
jnemeth [Sat, 8 Dec 2012 22:38:09 +0000 (22:38 +0000)]
Add some quotes by Henry Ford, found at:

http://www.goodreads.com/author/quotes/203714.Henry_Ford

12 years agoFix misspelling of acceptible (it's only acceptable with an 'a', not an 'i').
mbalmer [Sat, 1 Dec 2012 11:37:26 +0000 (11:37 +0000)]
Fix misspelling of acceptible (it's only acceptable with an 'a', not an 'i').

12 years agoFix two quotes from "The Tao of Programming". From FreeBSD.
mbalmer [Thu, 22 Nov 2012 11:32:19 +0000 (11:32 +0000)]
Fix two quotes from "The Tao of Programming".  From FreeBSD.

12 years agoPR/47178 from Bug Hunting
abs [Tue, 20 Nov 2012 12:40:54 +0000 (12:40 +0000)]
PR/47178 from Bug Hunting

src/games/wtf/wtf:
- Correct `usage' (to match new `SYNOPSIS' from man page);
- augment comment on quering pkgsrc's help facility;
- correct interpretation of pkgsrc' help facility query result.

src/games/wtf/wtf.6:
- enhance `SYNOPSIS', document description (`.Dd'), and overal
  program description;
- augment description about quering pkgsrc's help facility;
- improve wording;
- augment `HISTORY' section;
- bump date.

12 years agoAttribute "The STAR WARS Song" to "Weird Al" Yankovic under the proper title,
jakllsch [Mon, 22 Oct 2012 14:33:27 +0000 (14:33 +0000)]
Attribute "The STAR WARS Song" to "Weird Al" Yankovic under the proper title,
"Yoda".  Correct said lyrics.

Correct lyrics to "Weird Al" Yankovic's "One Of Those Days".

12 years agoPass -Wstrict-overflow
dholland [Sat, 13 Oct 2012 21:03:09 +0000 (21:03 +0000)]
Pass -Wstrict-overflow

12 years agoPass -Wstrict-overflow; while here, use curses TRUE and FALSE only with
dholland [Sat, 13 Oct 2012 21:01:13 +0000 (21:01 +0000)]
Pass -Wstrict-overflow; while here, use curses TRUE and FALSE only with
curses.

12 years agoPass -Wstrict-overflow... mostly.
dholland [Sat, 13 Oct 2012 20:57:35 +0000 (20:57 +0000)]
Pass -Wstrict-overflow... mostly.

12 years agoPass -Wstrict-overflow.
dholland [Sat, 13 Oct 2012 20:42:56 +0000 (20:42 +0000)]
Pass -Wstrict-overflow.

12 years agoPass -Wstrict-overflow, and while here, don't read from index -1 of
dholland [Sat, 13 Oct 2012 20:36:06 +0000 (20:36 +0000)]
Pass -Wstrict-overflow, and while here, don't read from index -1 of
an array.

12 years agoFactor out some common code; pass -Wstrict-overflow.
dholland [Sat, 13 Oct 2012 20:12:18 +0000 (20:12 +0000)]
Factor out some common code; pass -Wstrict-overflow.

12 years agoPass -Wstrict-overflow.
dholland [Sat, 13 Oct 2012 19:58:53 +0000 (19:58 +0000)]
Pass -Wstrict-overflow.

12 years agoMove scratch variables of main to main, instead of having them be
dholland [Sat, 13 Oct 2012 19:44:36 +0000 (19:44 +0000)]
Move scratch variables of main to main, instead of having them be
file-static.

12 years agoAdd strategic assertion, now passes -Wstrict-overflow.
dholland [Sat, 13 Oct 2012 19:39:57 +0000 (19:39 +0000)]
Add strategic assertion, now passes -Wstrict-overflow.

12 years agoRemove ifdefs for V7 (as opposed to older) unix.
dholland [Sat, 13 Oct 2012 19:25:22 +0000 (19:25 +0000)]
Remove ifdefs for V7 (as opposed to older) unix.

12 years agoPass the move info around instead of using it as a global.
dholland [Sat, 13 Oct 2012 19:19:38 +0000 (19:19 +0000)]
Pass the move info around instead of using it as a global.

12 years agoCrack down on global variables with single-letter names.
dholland [Sat, 13 Oct 2012 18:44:14 +0000 (18:44 +0000)]
Crack down on global variables with single-letter names.

12 years agofix previous, thanks asau@
dholland [Fri, 12 Oct 2012 15:41:10 +0000 (15:41 +0000)]
fix previous, thanks asau@

12 years agoDon't use ++ to set flags to true. Now passes -Wstrict-overflow.
dholland [Fri, 12 Oct 2012 10:44:20 +0000 (10:44 +0000)]
Don't use ++ to set flags to true. Now passes -Wstrict-overflow.

12 years agoPass -Wstrict-overflow.
dholland [Fri, 12 Oct 2012 10:38:53 +0000 (10:38 +0000)]
Pass -Wstrict-overflow.

12 years agoif 0 is used for the dimensions, compute the maximum size.
christos [Sat, 6 Oct 2012 19:39:51 +0000 (19:39 +0000)]
if 0 is used for the dimensions, compute the maximum size.

12 years agoBump date for previous.
wiz [Wed, 3 Oct 2012 19:50:43 +0000 (19:50 +0000)]
Bump date for previous.

12 years ago- improve wording and overall program description (notably for `-f');
wiz [Wed, 3 Oct 2012 19:50:11 +0000 (19:50 +0000)]
- improve wording and overall program description (notably for `-f');
- improve macro usage;
- bump date.

From Bug Hunting.

12 years ago- correct `usage' message;
wiz [Wed, 3 Oct 2012 19:50:06 +0000 (19:50 +0000)]
- correct `usage' message;
- improve wording.

From Bug Hunting.

12 years agoAdd a remarkably percipient fortune cookie.
riastradh [Wed, 3 Oct 2012 19:41:46 +0000 (19:41 +0000)]
Add a remarkably percipient fortune cookie.

12 years agoFix formatting of Churchill quote on declarations of war.
riastradh [Wed, 3 Oct 2012 19:04:55 +0000 (19:04 +0000)]
Fix formatting of Churchill quote on declarations of war.

12 years ago- improve wording
wiz [Sun, 12 Aug 2012 17:30:03 +0000 (17:30 +0000)]
- improve wording
- sort option list
- add argument names in option list and descriptions and adjust table width
- improve punctuation
- bump date

From Bug Hunting.

12 years agosrc/games/fortune/fortune/fortune.6:
jdf [Sat, 4 Aug 2012 22:29:58 +0000 (22:29 +0000)]
src/games/fortune/fortune/fortune.6:
 * reference strfile(8) in `SEE ALSO' section.

src/games/fortune/strfile/strfile.8:
 * remove redundant argument to (successive) `.Nm' macros.

src/games/fortune/datfiles/fortunes2:
 * remove (the least complete variant of a) double fortune.

Patch submitted by Bug Hunting.

12 years agoWARNS=5, and make WARNS=5 the default for src/games.
dholland [Tue, 19 Jun 2012 05:46:08 +0000 (05:46 +0000)]
WARNS=5, and make WARNS=5 the default for src/games.

12 years agoWARNS=5
dholland [Tue, 19 Jun 2012 05:45:00 +0000 (05:45 +0000)]
WARNS=5

12 years agoWARNS=5
dholland [Tue, 19 Jun 2012 05:30:43 +0000 (05:30 +0000)]
WARNS=5

12 years agoTypo. Reported by I-forget-who-but-they'd-probably-rather-not-be-credited,
dholland [Tue, 19 Jun 2012 04:59:19 +0000 (04:59 +0000)]
Typo. Reported by I-forget-who-but-they'd-probably-rather-not-be-credited,
during the -6 freeze, and then forgotten until now.

12 years agoRemove unused fields
joerg [Fri, 15 Jun 2012 10:51:25 +0000 (10:51 +0000)]
Remove unused fields

12 years agoConsistently use major/minor for NetBSD version.
njoly [Sat, 9 Jun 2012 23:15:13 +0000 (23:15 +0000)]
Consistently use major/minor for NetBSD version.

12 years agoAdd missing terminfo
martin [Sat, 9 Jun 2012 09:22:21 +0000 (09:22 +0000)]
Add missing terminfo

12 years agorcsid, warns
christos [Wed, 6 Jun 2012 00:34:32 +0000 (00:34 +0000)]
rcsid, warns

12 years agoSort sections; remove trailing whitespace.
wiz [Wed, 6 Jun 2012 00:28:02 +0000 (00:28 +0000)]
Sort sections; remove trailing whitespace.

12 years agoadd colorbars
christos [Wed, 6 Jun 2012 00:16:01 +0000 (00:16 +0000)]
add colorbars

12 years agonew colorbars program from Nathanial Sloss
christos [Wed, 6 Jun 2012 00:13:36 +0000 (00:13 +0000)]
new colorbars program from Nathanial Sloss

12 years agoAttribute the `Consequences, Schmonsequences...' quote to Daffy Duck.
riastradh [Tue, 5 Jun 2012 19:35:44 +0000 (19:35 +0000)]
Attribute the `Consequences, Schmonsequences...' quote to Daffy Duck.

12 years agouse modern shell constructs
christos [Thu, 26 Apr 2012 03:16:13 +0000 (03:16 +0000)]
use modern shell constructs

12 years agoallow multiple '-f acronyms' arguments to be given, which makes this behave
jschauma [Thu, 26 Apr 2012 01:55:14 +0000 (01:55 +0000)]
allow multiple '-f acronyms' arguments to be given, which makes this behave
more consistently with ACRONYMSDB, which may also point to multiple files

12 years agoAdd capfile(5) to describe the termcap format.
roy [Sat, 21 Apr 2012 12:27:24 +0000 (12:27 +0000)]
Add capfile(5) to describe the termcap format.
Adjust various man pages and other documentation to point to capfile(5)
instead of termcap(5).
Remove getcap(3) as curses hasn't been building it for a long time.
Punt wrterm.c as tset no longer uses it.

12 years agoFix various format string mismatches.
joerg [Wed, 29 Feb 2012 23:39:53 +0000 (23:39 +0000)]
Fix various format string mismatches.

12 years agoMan page and usage cleanups from Bug Hunting in PR 46103.
wiz [Sun, 26 Feb 2012 21:06:59 +0000 (21:06 +0000)]
Man page and usage cleanups from Bug Hunting in PR 46103.

12 years agoFix conflicting variable definitions
matt [Sat, 18 Feb 2012 06:57:23 +0000 (06:57 +0000)]
Fix conflicting variable definitions

13 years agoPR/45842: Henning Petersen: compare fgets with NULL not 0
christos [Mon, 16 Jan 2012 17:38:16 +0000 (17:38 +0000)]
PR/45842: Henning Petersen: compare fgets with NULL not 0

13 years agogrumble.
dholland [Sun, 8 Jan 2012 18:17:41 +0000 (18:17 +0000)]
grumble.

13 years agoOops, I forgot to actually implement the checksumming code for the new
dholland [Sun, 8 Jan 2012 18:16:00 +0000 (18:16 +0000)]
Oops, I forgot to actually implement the checksumming code for the new
savefile format, so any savefiles generated yesterday can be tampered
with. Oh well. While here, tidy up the crc code.

13 years agoRedo save file handling. The old save files were unportable, had no
dholland [Sat, 7 Jan 2012 22:23:16 +0000 (22:23 +0000)]
Redo save file handling. The old save files were unportable, had no
magic number or versioning, relied on random(3) never changing to a
different implementation, and were also saving pointers to disk and
reading them back again. It *looks* as if the pointers thus loaded
were reset before being used, but it's not particularly clear as the
main loop of this thing is goto-based FORTRAN translated lightly to C.
I've changed the logic to null these pointers instead of saving and
loading them, and things seem to still work.

The new save files have a header, support versioning, write only sized
types in network byte order, and for the toy encryption to discourage
cheating do something self-contained instead of using random(3) as a
stream cipher.

Because between the original import from 4.4 until earlier today
trying to save would result in SIGSEGV on most platforms, it's
unlikely anyone has a save file, but just in case (since the pointer
issue appears to be nonlethal) I've kept compat code for old save
files.

13 years agoMake this not crash on machines that are (a) 64 bit, or (b) have signed
dholland [Sat, 7 Jan 2012 18:08:35 +0000 (18:08 +0000)]
Make this not crash on machines that are (a) 64 bit, or (b) have signed
chars by default (i.e., almost all machines). Makes it possible to save
the game. This has been broken since 4.4 and probably ever since the
FORTRAN -> C translation.

Crash reported by Petri Laakso in private mail.

13 years agoPer [1] the speed of light in a vaccum is exactly 299792458 m/s.
jakllsch [Tue, 6 Dec 2011 19:41:03 +0000 (19:41 +0000)]
Per [1] the speed of light in a vaccum is exactly 299792458 m/s.
Per [2] a furlong is 220 yards and a yard is exactly 0.9144 m.
Per [3] a fortnight is 14 days.

As I didn't find a good authority for what definition of a day a fortnight is
measured in, I'll assume here a day is 86400 SI seconds.

Thus, the speed of light in a vaccum is approximately
1.80*10^12 furlongs per fortnight.

1.80*10^12 = 299792458*86400*14/(220*0.9144)

[1] Resolution 1 of the 17th meeting of the CGPM (1983)
http://www.bipm.org/en/CGPM/db/17/1/
[2] Weights and Measures Act 1985
http://www.legislation.gov.uk/ukpga/1985/72
[3] The Concise Oxford Dictionary, 5th Edition, 1964, p. 480

13 years agohandle EOF in input
ahoka [Thu, 1 Dec 2011 07:05:52 +0000 (07:05 +0000)]
handle EOF in input

13 years agogrammar fix
jnemeth [Sat, 19 Nov 2011 20:44:58 +0000 (20:44 +0000)]
grammar fix

13 years agoremove duplicated #defines (in a usually unused part of the code)
drochner [Wed, 9 Nov 2011 20:17:44 +0000 (20:17 +0000)]
remove duplicated #defines (in a usually unused part of the code)

13 years agoUse tiparm instead of vtparm.
roy [Mon, 3 Oct 2011 12:32:15 +0000 (12:32 +0000)]
Use tiparm instead of vtparm.

13 years agoreinstate NULL cast by request, where the NULL was being passed as a vararg
plunky [Thu, 1 Sep 2011 07:18:50 +0000 (07:18 +0000)]
reinstate NULL cast by request, where the NULL was being passed as a vararg

13 years agoNULL does not need a cast
plunky [Wed, 31 Aug 2011 16:24:54 +0000 (16:24 +0000)]
NULL does not need a cast

13 years agoNo need to cast double to ubig (aka uintmax_t) through int.
jakllsch [Tue, 30 Aug 2011 02:58:04 +0000 (02:58 +0000)]
No need to cast double to ubig (aka uintmax_t) through int.

This change prevents a modulo by zero in a invocation such as:
primes 18446744073709551000 18446744073709551615
on a LP64 machine.

13 years agoUse __dead
joerg [Mon, 29 Aug 2011 20:30:36 +0000 (20:30 +0000)]
Use __dead

13 years agoMark error() as dead, so that validation for setclipped works correctly.
joerg [Sat, 27 Aug 2011 23:42:33 +0000 (23:42 +0000)]
Mark error() as dead, so that validation for setclipped works correctly.

13 years agoAvoid non-literal format strings.
tron [Fri, 26 Aug 2011 09:01:07 +0000 (09:01 +0000)]
Avoid non-literal format strings.

13 years agoUse __dead and __printflike instead of __attribute__.
dholland [Fri, 26 Aug 2011 06:18:16 +0000 (06:18 +0000)]
Use __dead and __printflike instead of __attribute__.

13 years agoadd printf attributes.
christos [Thu, 25 Aug 2011 16:18:28 +0000 (16:18 +0000)]
add printf attributes.

13 years agoUses non-literal format strings
joerg [Thu, 25 Aug 2011 15:50:45 +0000 (15:50 +0000)]
Uses non-literal format strings

13 years ago-Wno-shadow is no longer needed for HAVE_PCC, here
plunky [Wed, 24 Aug 2011 17:39:32 +0000 (17:39 +0000)]
-Wno-shadow is no longer needed for HAVE_PCC, here

13 years agouse const char [] for format.
christos [Sun, 21 Aug 2011 08:50:08 +0000 (08:50 +0000)]
use const char [] for format.

13 years agoRemove redundant set of prototypes for local functions, exposed by
dholland [Wed, 17 Aug 2011 18:17:40 +0000 (18:17 +0000)]
Remove redundant set of prototypes for local functions, exposed by
previous.

13 years agoMove some things around so declarations appear in a reasonable order.
dholland [Wed, 17 Aug 2011 18:16:51 +0000 (18:16 +0000)]
Move some things around so declarations appear in a reasonable order.

13 years agoUse __dead instead of __attribute__((__noreturn__)).
dholland [Tue, 16 Aug 2011 19:53:03 +0000 (19:53 +0000)]
Use __dead instead of __attribute__((__noreturn__)).

13 years agodocument non-literal string formats
christos [Tue, 16 Aug 2011 11:28:18 +0000 (11:28 +0000)]
document non-literal string formats

13 years agoavoid non-literal format string
christos [Tue, 16 Aug 2011 11:26:16 +0000 (11:26 +0000)]
avoid non-literal format string

13 years agoeliminate/document non-literal format strings
christos [Tue, 16 Aug 2011 11:19:41 +0000 (11:19 +0000)]
eliminate/document non-literal format strings

13 years agoeliminate non-literal format strings
christos [Tue, 16 Aug 2011 11:14:04 +0000 (11:14 +0000)]
eliminate non-literal format strings