]> git.cameronkatri.com Git - bsdgames-darwin.git/log
bsdgames-darwin.git
24 years agoAdd missing initialisers (avoid gcc -W warnings) and comments giving
jsm [Mon, 18 Sep 2000 06:14:31 +0000 (06:14 +0000)]
Add missing initialisers (avoid gcc -W warnings) and comments giving
room numbers.

24 years agoClean up formatting; partly from OpenBSD.
jsm [Sun, 17 Sep 2000 23:04:17 +0000 (23:04 +0000)]
Clean up formatting; partly from OpenBSD.

24 years agoPatches from OpenBSD: add verbs "open"/"unlock" (essentially a no-op),
jsm [Sun, 17 Sep 2000 23:03:43 +0000 (23:03 +0000)]
Patches from OpenBSD: add verbs "open"/"unlock" (essentially a no-op),
and "verbose"/"brief" (in verbose mode, always show long room
descriptions), and synonyms "papaya" for "papayas" and "coconut" for
"coconuts".

24 years agoBased on OpenBSD: spelling, punctuation, grammar and line length
jsm [Sun, 10 Sep 2000 10:52:56 +0000 (10:52 +0000)]
Based on OpenBSD: spelling, punctuation, grammar and line length
adjustments, and support for '=' in room descriptions meaning a
literal '-'.

24 years agoWording, punctuation and line length improvements. Also adjust test
jsm [Sun, 10 Sep 2000 10:51:16 +0000 (10:51 +0000)]
Wording, punctuation and line length improvements.  Also adjust test
for killing nonsensical things to fix crash with "kill door".  From
OpenBSD.

24 years agoMake spacing nicer and add explicit NULL initializers.
jsm [Sat, 9 Sep 2000 18:03:58 +0000 (18:03 +0000)]
Make spacing nicer and add explicit NULL initializers.

24 years agoStore copy of username with strdup rather than using a fixed length
jsm [Sat, 9 Sep 2000 09:37:58 +0000 (09:37 +0000)]
Store copy of username with strdup rather than using a fixed length
buffer.  Also make initialization functions and arrays static.

24 years agoPut prototypes in alphabetical order.
jsm [Sat, 9 Sep 2000 09:36:23 +0000 (09:36 +0000)]
Put prototypes in alphabetical order.

24 years agoSpelling and punctuation corrections or improvements from OpenBSD.
jsm [Fri, 8 Sep 2000 17:25:31 +0000 (17:25 +0000)]
Spelling and punctuation corrections or improvements from OpenBSD.

24 years agoMake code clearer; add a macro ROOMDESC for the number of times a room
jsm [Fri, 8 Sep 2000 17:22:01 +0000 (17:22 +0000)]
Make code clearer; add a macro ROOMDESC for the number of times a room
should be visited for the short description only to be used, and don't
increment beenthere[position] beyond this value.  From OpenBSD.

24 years agoManpage improvements based on OpenBSD.
jsm [Fri, 8 Sep 2000 17:18:36 +0000 (17:18 +0000)]
Manpage improvements based on OpenBSD.

24 years agoIf we install limerick-o.dat, we should also install limerick-o to make it
abs [Thu, 17 Aug 2000 16:54:28 +0000 (16:54 +0000)]
If we install limerick-o.dat, we should also install limerick-o to make it
usable.

24 years agoSplit netbsd fortunes into offensive and non offensive.
abs [Thu, 17 Aug 2000 16:48:52 +0000 (16:48 +0000)]
Split netbsd fortunes into offensive and non offensive.
Split could be considered somewhat arbitrary.

24 years agoNetBSD: A pmap for every occasion
abs [Thu, 17 Aug 2000 16:27:38 +0000 (16:27 +0000)]
NetBSD: A pmap for every occasion

24 years agoCorrected quote. It was totally missing its (well-known) equivalent of
mason [Sat, 12 Aug 2000 23:04:15 +0000 (23:04 +0000)]
Corrected quote. It was totally missing its (well-known) equivalent of
a punch line.

24 years agoUse a local implementation of htonl() called h2nl(). htonl() is not
simonb [Mon, 31 Jul 2000 11:39:00 +0000 (11:39 +0000)]
Use a local implementation of htonl() called h2nl().  htonl() is not
available in all cross-compile environments.

Patches from Chris Demetriou.

24 years agoAdd 3 from me.
ad [Mon, 31 Jul 2000 11:38:21 +0000 (11:38 +0000)]
Add 3 from me.

24 years agoDon't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros for host programs -
simonb [Mon, 31 Jul 2000 11:35:03 +0000 (11:35 +0000)]
Don't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros for host programs -
use portable ANSI constructs instead.

Patches from Chris Demetriou.

24 years agoUse a local implementation of htonl() called h2nl(). htonl() is not
simonb [Mon, 31 Jul 2000 11:32:33 +0000 (11:32 +0000)]
Use a local implementation of htonl() called h2nl().  htonl() is not
available in all cross-compile environments.

Patches from Chris Demetriou.

24 years agoDon't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros or <err.h> err
simonb [Mon, 31 Jul 2000 11:29:48 +0000 (11:29 +0000)]
Don't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros or <err.h> err
function for host programs - use portable ANSI constructs instead.

Patches from Chris Demetriou.

24 years agoDon't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros or <err.h> err/warnx
simonb [Mon, 31 Jul 2000 11:28:48 +0000 (11:28 +0000)]
Don't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros or <err.h> err/warnx
functions for host programs - use portable ANSI constructs instead.

Patches from Chris Demetriou.

24 years agoDon't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros or <err.h> err/errx
simonb [Mon, 31 Jul 2000 11:25:50 +0000 (11:25 +0000)]
Don't use <sys/cdefs.h> __COPYRIGHT/__RCSID macros or <err.h> err/errx
functions for host programs - use portable ANSI constructs instead.

Patches from Chris Demetriou.

24 years agoRename move() to moveplayer() to avoid clashing with libcurses.
mycroft [Sun, 23 Jul 2000 23:57:23 +0000 (23:57 +0000)]
Rename move() to moveplayer() to avoid clashing with libcurses.

24 years agoprintf() pedant - do not pass variable alone, use %s.
itojun [Mon, 10 Jul 2000 10:19:25 +0000 (10:19 +0000)]
printf() pedant - do not pass variable alone, use %s.
idea from openbsd.  after looking at freebsd commit msgs from kris@freebsd.

24 years agoremove extra period in SEE ALL section
msaitoh [Wed, 5 Jul 2000 15:45:28 +0000 (15:45 +0000)]
remove extra period in SEE ALL section

24 years agoAfter weeding out duplicate, modify entry to be mathematically
mjl [Mon, 3 Jul 2000 18:51:45 +0000 (18:51 +0000)]
After weeding out duplicate, modify entry to be mathematically
correct at least. (Yes, both were wrong. People can't integrate
nowadays anymore :)

24 years agoRemove duplicate (and incorrect) entry. From Anton Berezin
mjl [Mon, 3 Jul 2000 17:23:37 +0000 (17:23 +0000)]
Remove duplicate (and incorrect) entry. From Anton Berezin
<tobez@tobez.org> in FreeBSD PR/19670

24 years agoMore include additions for exit, abs, strcmp, etc.
matt [Mon, 3 Jul 2000 03:57:39 +0000 (03:57 +0000)]
More include additions for exit, abs, strcmp, etc.

24 years agoOffered horse brutality to a previously incorrect RHPS quote.
mason [Fri, 30 Jun 2000 04:04:09 +0000 (04:04 +0000)]
Offered horse brutality to a previously incorrect RHPS quote.

24 years agoMake this produce local objects with .lo suffix.
matt [Tue, 20 Jun 2000 16:07:04 +0000 (16:07 +0000)]
Make this produce local objects with .lo suffix.

24 years agoNetBSD: Ports to * boards.
scw [Wed, 14 Jun 2000 08:10:06 +0000 (08:10 +0000)]
NetBSD: Ports to * boards.

24 years agoDon't make /var/games/sail here.
mycroft [Sun, 11 Jun 2000 15:37:51 +0000 (15:37 +0000)]
Don't make /var/games/sail here.

24 years agoRemove one of mine that really wasn't very good, and add:
jwise [Wed, 7 Jun 2000 14:04:45 +0000 (14:04 +0000)]
Remove one of mine that really wasn't very good, and add:

NetBSD: abandon all hype, oh ye who enter here.

24 years agoFix core dump.
blymn [Wed, 24 May 2000 14:43:00 +0000 (14:43 +0000)]
Fix core dump.

24 years agoFix coredump on start.
blymn [Wed, 24 May 2000 14:20:29 +0000 (14:20 +0000)]
Fix coredump on start.

24 years agoConverted games to use the new termcap interface.
blymn [Mon, 22 May 2000 12:42:46 +0000 (12:42 +0000)]
Converted games to use the new termcap interface.

24 years ago* Fix termcap handling to use the new interface to avoid buffer
blymn [Sat, 20 May 2000 14:01:42 +0000 (14:01 +0000)]
* Fix termcap handling to use the new interface to avoid buffer
  overflows with extended termcap entries.
* Made delay_output use usleep instead of the grungy tgoto hack it had.

24 years agoFix typo, pointed out by seebs@plethora.net in PR bin/10131.
hubertf [Wed, 17 May 2000 02:30:25 +0000 (02:30 +0000)]
Fix typo, pointed out by seebs@plethora.net in PR bin/10131.

24 years agoUse setgid(), not setregid().
mycroft [Mon, 8 May 2000 07:55:59 +0000 (07:55 +0000)]
Use setgid(), not setregid().

24 years agoNetBSD - because Unix isn't just #include <linux.h>, i386, ELF, ...!
pooka [Tue, 2 May 2000 11:41:24 +0000 (11:41 +0000)]
NetBSD - because Unix isn't just #include <linux.h>, i386, ELF, ...!

24 years agoCast pointer diffs to long for printing with %ld.
thorpej [Thu, 27 Apr 2000 19:31:23 +0000 (19:31 +0000)]
Cast pointer diffs to long for printing with %ld.

24 years agoCast pointer difference to long when printing w/ %ld.
thorpej [Thu, 27 Apr 2000 17:49:15 +0000 (17:49 +0000)]
Cast pointer difference to long when printing w/ %ld.

24 years agoClear to end of line on the correct window.
jdc [Thu, 27 Apr 2000 00:33:49 +0000 (00:33 +0000)]
Clear to end of line on the correct window.

24 years agoFix arguments to *printw().
jdc [Thu, 27 Apr 2000 00:30:51 +0000 (00:30 +0000)]
Fix arguments to *printw().

24 years agoWhile everyone's beating up on rot13 - use 'exec' to loose the shell
simonb [Mon, 24 Apr 2000 15:42:40 +0000 (15:42 +0000)]
While everyone's beating up on rot13 - use 'exec' to loose the shell
process.

24 years ago$* -> "$@", not that it does anything. yet.
perry [Mon, 24 Apr 2000 15:37:32 +0000 (15:37 +0000)]
$* -> "$@", not that it does anything. yet.

24 years agokeep it simple.
perry [Mon, 24 Apr 2000 15:30:34 +0000 (15:30 +0000)]
keep it simple.

24 years agoHOST_CC -> HOST_LINK.c
pk [Mon, 24 Apr 2000 15:15:05 +0000 (15:15 +0000)]
HOST_CC -> HOST_LINK.c

24 years agoDon't rely upon /usr/games being in PATH, include it explicitly.
hubertf [Mon, 24 Apr 2000 13:21:26 +0000 (13:21 +0000)]
Don't rely upon /usr/games being in PATH, include it explicitly.

Fixes PR 9968 by yyrkoo@imrryr.org.

24 years agoDon't declare 'extern opt*' getopt variables.
simonb [Fri, 14 Apr 2000 05:58:01 +0000 (05:58 +0000)]
Don't declare 'extern opt*' getopt variables.

24 years agoGreatly simplify these by using <bsd.hostprog.mk>. Should do the same
simonb [Fri, 14 Apr 2000 04:12:18 +0000 (04:12 +0000)]
Greatly simplify these by using <bsd.hostprog.mk>.  Should do the same
for games/hack and games/monop and a few other places, but that requires
making subdirs for the tools.  One day...

24 years agoCurses works - define USE_CURSES for BSD44 and don't try to do our own
simonb [Thu, 13 Apr 2000 06:07:06 +0000 (06:07 +0000)]
Curses works - define USE_CURSES for BSD44 and don't try to do our own
thing (using curses internal data structures anyway!).

24 years agoMissing word. From Paul Janzen.
soren [Tue, 11 Apr 2000 03:45:40 +0000 (03:45 +0000)]
Missing word. From Paul Janzen.

24 years agoDon't insert leading 0s in the score display. (HI CHRISTOS!)
mycroft [Sun, 9 Apr 2000 23:02:52 +0000 (23:02 +0000)]
Don't insert leading 0s in the score display.  (HI CHRISTOS!)

24 years agoCorrect capital of the Philippines, allow usual spelling of Jakarta
jsm [Sun, 9 Apr 2000 22:37:40 +0000 (22:37 +0000)]
Correct capital of the Philippines, allow usual spelling of Jakarta
and prefer the usual name of Cambodia to Khmer.

Problems reported by Robert Vollmert <rvollmert@gmx.net>.

24 years agoTyop fix.
jwise [Thu, 6 Apr 2000 02:19:23 +0000 (02:19 +0000)]
Tyop fix.

24 years agoFix two ubiquitous operator precedence error of type
jdolecek [Thu, 30 Mar 2000 11:01:13 +0000 (11:01 +0000)]
Fix two ubiquitous operator precedence error of  type
bar = foo + (cond) ? x : y.
Patch sent by John Darrow in bin/9698.

24 years agoUse an equal probability single draw algorithm to get card from deck.
tron [Tue, 28 Mar 2000 19:37:54 +0000 (19:37 +0000)]
Use an equal probability single draw algorithm to get card from deck.
Patch supplied by John Darrow in PR bin/9651.

24 years agoFix doubled 'the'.
soren [Mon, 13 Mar 2000 23:57:23 +0000 (23:57 +0000)]
Fix doubled 'the'.

24 years agoFix doubled 'the's.
soren [Mon, 13 Mar 2000 22:55:05 +0000 (22:55 +0000)]
Fix doubled 'the's.

24 years agoFix doubled 'the'.
soren [Mon, 13 Mar 2000 22:53:22 +0000 (22:53 +0000)]
Fix doubled 'the'.

24 years agoFix doubled 'the' in comment.
soren [Mon, 13 Mar 2000 22:46:59 +0000 (22:46 +0000)]
Fix doubled 'the' in comment.

24 years agoInclude <sys/param.h> for MAXHOSTNAMELEN.
kleink [Thu, 2 Mar 2000 18:22:31 +0000 (18:22 +0000)]
Include <sys/param.h> for MAXHOSTNAMELEN.

24 years agoPOSIX.2: Ignore a null PAGER as well.
kleink [Thu, 2 Mar 2000 18:19:06 +0000 (18:19 +0000)]
POSIX.2: Ignore a null PAGER as well.

24 years agoFix .Nm usage.
enami [Thu, 2 Mar 2000 13:27:53 +0000 (13:27 +0000)]
Fix .Nm usage.

24 years agoFix wrong reference to trek documentation
hubertf [Wed, 1 Mar 2000 23:38:51 +0000 (23:38 +0000)]
Fix wrong reference to trek documentation
Submitted in PR bin/9514 by Thilo.Manske@HEH.Uni-Oldenburg.DE

24 years agofix tyop
jwise [Sun, 27 Feb 2000 05:40:36 +0000 (05:40 +0000)]
fix tyop

24 years agoNetBSD: We come in peace. We offer reliability.
pooka [Tue, 15 Feb 2000 13:56:02 +0000 (13:56 +0000)]
NetBSD: We come in peace. We offer reliability.
+ correct a typo

24 years agoNetBSD: We don't negotiate with terrorists.
pooka [Sat, 12 Feb 2000 10:12:58 +0000 (10:12 +0000)]
NetBSD: We don't negotiate with terrorists.

24 years agoavoid failure on "make install" when /var/games/sail already exists.
itojun [Sat, 12 Feb 2000 10:03:30 +0000 (10:03 +0000)]
avoid failure on "make install" when /var/games/sail already exists.

24 years agoAdd Chris Baird's email address per his request
pooka [Thu, 10 Feb 2000 13:10:43 +0000 (13:10 +0000)]
Add Chris Baird's email address per his request

24 years agoFix insecure /tmp usage in sail.
jsm [Wed, 9 Feb 2000 22:27:55 +0000 (22:27 +0000)]
Fix insecure /tmp usage in sail.

Essentially concludes the merge into NetBSD of those changes in the
Linux port of the NetBSD games which it is fairly clear to me should
be so merged.

24 years agoAdd NetBSD slogans for fortune database.
pooka [Sun, 6 Feb 2000 11:59:29 +0000 (11:59 +0000)]
Add NetBSD slogans for fortune database.

24 years agoDon't initialise curses until after the initial non-curses setup (the
jsm [Mon, 31 Jan 2000 11:08:53 +0000 (11:08 +0000)]
Don't initialise curses until after the initial non-curses setup (the
choice of scenario uses puts() rather than curses functions).

24 years agoneed an ${.OBJDIR} now
drochner [Tue, 25 Jan 2000 21:41:18 +0000 (21:41 +0000)]
need an ${.OBJDIR} now

24 years agoMore .mk file fallout. *sigh*
mycroft [Sun, 23 Jan 2000 22:10:52 +0000 (22:10 +0000)]
More .mk file fallout.  *sigh*

24 years agoGet the build ordering right for dependall.
mycroft [Sun, 23 Jan 2000 22:10:22 +0000 (22:10 +0000)]
Get the build ordering right for dependall.

24 years agoMore .mk file fallout. *sigh*
mycroft [Sun, 23 Jan 2000 21:55:44 +0000 (21:55 +0000)]
More .mk file fallout.  *sigh*

24 years agoAdd manpage wargames(6), contributed by Joey Hess <joeyh@kitenet.net>.
jsm [Sun, 23 Jan 2000 21:04:55 +0000 (21:04 +0000)]
Add manpage wargames(6), contributed by Joey Hess <joeyh@kitenet.net>.

No special formatting used for the movie name for now, following
discussion on tech-userlevel suggesting that at present there's
nothing really appropriate.

25 years agoNuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
mycroft [Fri, 21 Jan 2000 17:08:33 +0000 (17:08 +0000)]
Nuke `extern int errno;' in code we compile with -Wstrict-prototypes.  We get
the correct definition from errno.h.

25 years agoClean up error reporting in tetris.
jsm [Fri, 21 Jan 2000 02:10:56 +0000 (02:10 +0000)]
Clean up error reporting in tetris.

25 years agoFix high score table formatting bug.
jsm [Fri, 21 Jan 2000 00:54:53 +0000 (00:54 +0000)]
Fix high score table formatting bug.

Bug report and fix from Malcolm Parsons <malcolm@bits.bris.ac.uk>.

25 years agoImprove snscore error handling.
jsm [Fri, 21 Jan 2000 00:27:03 +0000 (00:27 +0000)]
Improve snscore error handling.

25 years agoReport scores as auto-bot or not correctly.
jsm [Thu, 20 Jan 2000 13:24:11 +0000 (13:24 +0000)]
Report scores as auto-bot or not correctly.

Bug report and fix from Malcolm Parsons <malcolm@bits.bris.ac.uk>.

25 years agoEnsure correct prompt asking about another game is given at the end of
jsm [Wed, 19 Jan 2000 19:43:42 +0000 (19:43 +0000)]
Ensure correct prompt asking about another game is given at the end of
each game.

Bug report and fix from Malcolm Parsons <malcolm@bits.bris.ac.uk>.

25 years agoTypo fix in unknown option message (from Malcolm Parsons
jsm [Wed, 19 Jan 2000 19:19:43 +0000 (19:19 +0000)]
Typo fix in unknown option message (from Malcolm Parsons
<malcolm@bits.bris.ac.uk>).

25 years agoRemove definition of __cputchar.
jsm [Wed, 19 Jan 2000 19:02:27 +0000 (19:02 +0000)]
Remove definition of __cputchar.

25 years agoDefine and use MAXRANDOM instead of LONG_MAX.
jsm [Tue, 18 Jan 2000 16:12:25 +0000 (16:12 +0000)]
Define and use MAXRANDOM instead of LONG_MAX.

25 years agoRemove unnecessary casts, and add necessary ones for printf arguments.
jsm [Thu, 13 Jan 2000 16:22:10 +0000 (16:22 +0000)]
Remove unnecessary casts, and add necessary ones for printf arguments.

25 years agoChange __GCC__ to __GNUC__.
jsm [Thu, 13 Jan 2000 16:20:27 +0000 (16:20 +0000)]
Change __GCC__ to __GNUC__.

25 years agoRemove obsolete NO_VOID conditional.
jsm [Thu, 13 Jan 2000 16:19:36 +0000 (16:19 +0000)]
Remove obsolete NO_VOID conditional.

25 years agoUse err(1, NULL) and warn(NULL) for `out of memory' error messages.
jsm [Sun, 9 Jan 2000 17:17:19 +0000 (17:17 +0000)]
Use err(1, NULL) and warn(NULL) for `out of memory' error messages.

25 years agoDeclare variables as extern in headers rather than using linker commons.
jsm [Sat, 1 Jan 2000 10:15:17 +0000 (10:15 +0000)]
Declare variables as extern in headers rather than using linker commons.

25 years agoDon't use <err.h>. Use ANSI prototypes (no dependance on the __P()
simonb [Thu, 30 Dec 1999 01:40:08 +0000 (01:40 +0000)]
Don't use <err.h>.  Use ANSI prototypes (no dependance on the __P()
macro).  Add new fwrite_be_offt() function which writes out a big-endian
64bit number regards of the size of off_t on the host machine.

Also fix ``bug'' in previous - even though the off_t pointers were
stored big-endian, the individual card lenghs were in host-order.  The
cards.pck files are now identical when make on a big- or little-endian
machine.

Now builds a correct cards.pck file on non-NetBSD machines as well
- tested on Ultrix and Solaris (but Solaris needs -lsocket to get
htonl()).

25 years agoDon't use any NetBSD specific features (<err.h> and friends mainly
simonb [Thu, 30 Dec 1999 01:32:33 +0000 (01:32 +0000)]
Don't use any NetBSD specific features (<err.h> and friends mainly
- replaiced with local die() and dieperror() routines).  Use ANSI
prototypes (no dependance on the __P() macro).  Add new fwrite_be_offt()
function which writes out a big-endian 64bit number regards of the size
of off_t on the host machine.  Remove unused unctrl() function.

Now builds correct fortune .dat files on non-NetBSD machines as well
- tested on Ultrix and Solaris (but Solaris needs -lsocket to get
htonl()).

25 years agoNo need to include <sys/endian.h> here - <sys/types.h> includes
simonb [Thu, 30 Dec 1999 01:26:44 +0000 (01:26 +0000)]
No need to include <sys/endian.h> here - <sys/types.h> includes
<machine/endian.h> which DTRT.

25 years agoUse separate definitions and extern declarations of variables rather
jsm [Tue, 28 Dec 1999 18:05:24 +0000 (18:05 +0000)]
Use separate definitions and extern declarations of variables rather
than linker commons.

25 years agoFix capital of Monaco. It should be Monaco rather than Monte Carlo;
jsm [Thu, 16 Dec 1999 14:13:23 +0000 (14:13 +0000)]
Fix capital of Monaco.  It should be Monaco rather than Monte Carlo;
checked with CIA World Factbook.

Problem reported by <capo@writeme.com>.

25 years agoMake quiz use POSIX.2 pager handling.
jsm [Thu, 16 Dec 1999 13:45:48 +0000 (13:45 +0000)]
Make quiz use POSIX.2 pager handling.

25 years agoPrint a space character on the tape between each command line argument.
jsm [Thu, 16 Dec 1999 13:38:28 +0000 (13:38 +0000)]
Print a space character on the tape between each command line argument.

Bug fix from OpenBSD.