Commit Graph

53 Commits

Author SHA1 Message Date
wiz
c91d8d6b9b Lots of minor fixes resulting from reading these man pages in detail. 2002-09-26 18:31:58 +00:00
wiz
0d22e30cd0 New sentences begin on new lines.
Patch from Richard Elz, slightly improved by yours truly.
2002-09-26 16:12:39 +00:00
ross
dc5571b22e Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
christos
fc92c2f743 Be more verbose about teleports, and fix a minor problem in autobot mode. 2002-01-31 17:35:52 +00:00
blymn
d82bd70ce6 Change deprecated curses function to new equivalent. 2001-12-06 12:17:57 +00:00
wiz
834bb1b3ab Whitespace and/or punctuation fixes. 2001-04-02 22:42:37 +00:00
christos
1b1c2fdcec fix nested externs 2001-02-05 01:02:45 +00:00
cgd
d594ce939b comment or delete text after CPP directives. 2001-01-16 02:50:27 +00:00
mycroft
f9eca6973d Use setgid(), not setregid(). 2000-05-08 07:55:59 +00:00
thorpej
64d8df2f33 Cast pointer diffs to long for printing with %ld. 2000-04-27 19:31:23 +00:00
jdc
d6d7f0531f Fix arguments to *printw(). 2000-04-27 00:30:51 +00:00
mycroft
1f8979f4f7 Don't insert leading 0s in the score display. (HI CHRISTOS!) 2000-04-09 23:02:52 +00:00
jsm
be7d4de5f0 Report scores as auto-bot or not correctly.
Bug report and fix from Malcolm Parsons <malcolm@bits.bris.ac.uk>.
2000-01-20 13:24:11 +00:00
jsm
5c54ba1b0d 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>.
2000-01-19 19:43:42 +00:00
jsm
a645bf0f29 Typo fix in unknown option message (from Malcolm Parsons
<malcolm@bits.bris.ac.uk>).
2000-01-19 19:19:43 +00:00
jsm
27bcd0d70a Remove definition of __cputchar. 2000-01-19 19:02:27 +00:00
lukem
88d3d7c59e update after change to return value of tputs() third argument 1999-10-04 23:26:59 +00:00
jsm
ce5670f70f Fix uses of namespaces reserved by ISO C or POSIX.1. 1999-09-30 18:01:31 +00:00
jsm
20e3305006 Fix -Wsign-compare warnings. 1999-09-18 19:38:46 +00:00
jsm
5367f3400c Security improvements for games (largely from or inspired by OpenBSD).
Games which run setgid from dm, but don't need to, should drop their
privileges at startup.

Games which have a scorefile should open it at startup, then drop all
privileges leaving just the open writable file descriptor.  If the
game can invoke subprocesses, this should be made close-on-exec.

Games with scorefiles should make sure they do not get a file
descriptor < 3.  (Otherwise, they could get confused and corrupt the
scorefile when using stdin, stdout or stderr.)

Some old setuid revokes from the days of setuid games change into gid
revokes.
1999-09-12 09:02:20 +00:00
jsm
5fb18dd9da Use the symbolic names SEEK_SET' and O_RDONLY' where appropriate in
the games.
1999-09-08 21:57:16 +00:00
jsm
b03d4fa882 Add __noreturn__' and __unused__' attributes where appropriate to
the games.

This merges in all such remaining changes from the Linux port of the
NetBSD games, except in hunt (where substantial changes from OpenBSD
need to be looked at).

Most noreturn attributes were previously added in bin/6144, with some
others that were missed then in bin/8082.  Previous `unused'
attributes were covered in bin/6557, bin/8058 and other PRs (all these
PRs have already been handled and closed).
1999-09-08 21:45:25 +00:00
jsm
092d313019 Add use of `const' where appropriate to the games.
This merges in all such remaining changes from the Linux port of the
NetBSD games, except in hunt (where substantial changes from OpenBSD
need to be looked at).

Some such changes were previously covered in PRs bin/6041, bin/6146,
bin/6148, bin/6150, bin/6151, bin/6580, bin/6660, bin/7993, bin/7994,
bin/8039, bin/8057 and bin/8093.
1999-09-08 21:17:44 +00:00
christos
605ec8abd1 Fixi uninit vars warnings. 1999-05-16 00:15:46 +00:00
christos
4cb49d76cc Add missing prototypes 1999-05-16 00:03:35 +00:00
christos
18dfb39e84 Add -A for automatic playing mode.
Make the score file MI
1999-05-15 23:56:35 +00:00
hubertf
1c9494f62b mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>) 1998-09-13 15:27:25 +00:00
hubertf
25ef982569 Fix for compiling with -DFANCY, as per PR 5832 by Joseph Myers <jsm28@cam.ac.uk> 1998-07-24 23:28:02 +00:00
jtc
2065ddb3da Simply include -lcurses instead of -lcurses -ltermcap 1998-02-18 22:37:30 +00:00
christos
85ca961d87 Use -ltermcap instead of -ltermlib 1998-02-05 12:25:48 +00:00
mikel
80d955570b don't clobber /var/games/robots_roll on install; from
NAKAJIMA Yoshihiro in PR bin/4657.
1997-12-18 05:56:18 +00:00
veego
e9e298fe14 We need a FILESMODE=660 for dm which is now setgid games. 1997-11-29 19:32:30 +00:00
mrg
6074e1b476 install games that need it setgid. 1997-11-20 00:12:30 +00:00
lukem
009fbbc126 use CPPFLAGS instead of CFLAGS 1997-10-22 05:05:21 +00:00
lukem
130a514f31 deprecate bzero, rindex, etc. use symbolic constants in open() 1997-10-12 14:16:26 +00:00
lukem
9007937fbb WARNSify 1997-10-12 14:09:55 +00:00
jtc
5570dfb8bc Remove calls to flushok(). That function doesn't really do anything in
our curses implementation, and it doesn't even exist in others...
1997-05-23 23:40:16 +00:00
christos
d59123b39b - Makefile cleanups 1997-03-24 22:15:37 +00:00
mouse
412433b44c alternate -> alternative, per PR 2643 1997-03-08 13:26:20 +00:00
thorpej
943e25b8bf Use ${INSTALL}. 1996-10-18 02:48:24 +00:00
mycroft
53eb389b37 Use POSIX tty semantics. 1995-04-28 23:01:45 +00:00
cgd
c4816c32b3 Various changes to make games compile w/o warnings on the alpha:
Include appropriate includes, delete bogus function declarations,
change sizes of variables and casts.
1995-04-24 12:21:37 +00:00
cgd
6045e6e034 clean up import 1995-04-22 10:08:46 +00:00
cgd
c4c01d75b2 specify man pages the new way. 1994-12-22 09:31:26 +00:00
mycroft
cf433c1aac Really fix exit code. 1993-08-10 15:39:40 +00:00
mycroft
46b7faea15 Rewrite grody exit code and eliminate use of _putchar(). 1993-08-10 02:40:55 +00:00
jtc
1535a45779 Update to -mandoc macros. 1993-08-05 02:29:28 +00:00
mycroft
8542364e07 Add RCS identifiers. 1993-08-01 18:49:50 +00:00
mycroft
b1bd4afedc Add RCS indentifiers. 1993-08-01 07:42:49 +00:00
mycroft
cda4f8f6ee Add RCS identifiers. 1993-08-01 05:37:30 +00:00