]> git.cameronkatri.com Git - bsdgames-darwin.git/log
bsdgames-darwin.git
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.

25 years agoRemoved someone's personal phone number, including area code, from a "if you
mason [Sat, 11 Dec 1999 19:13:05 +0000 (19:13 +0000)]
Removed someone's personal phone number, including area code, from a "if you
want a good time, call ###-###-####" fortune entry.

25 years agoFix a gcc -W warning (empty body in an else-statement).
jsm [Tue, 7 Dec 1999 23:07:39 +0000 (23:07 +0000)]
Fix a gcc -W warning (empty body in an else-statement).

25 years agoIf the dictionary for boggle does not include words beginning with
jsm [Tue, 7 Dec 1999 07:47:08 +0000 (07:47 +0000)]
If the dictionary for boggle does not include words beginning with
every letter, add appropriate index lines.  Problem reported by Mike
Castle <dalgoda@ix.netcom.com> against the Linux port of the NetBSD games
collection.

25 years agoCorrect wargames quote, and while we are here be a little more selective
abs [Tue, 16 Nov 1999 17:27:14 +0000 (17:27 +0000)]
Correct wargames quote, and while we are here be a little more selective
when checking if a game is valid (eg: '../../bin/csh')

25 years agoDo not match non-literals (REs).
hubertf [Mon, 15 Nov 1999 19:14:01 +0000 (19:14 +0000)]
Do not match non-literals (REs).

A slightly different patch was submitted in PR 8388 by
Antti Kantee <pooka@iki.fi>

25 years agoSince our gcc doesn't warn about NULL format strings anymore, we can
drochner [Tue, 9 Nov 1999 15:06:30 +0000 (15:06 +0000)]
Since our gcc doesn't warn about NULL format strings anymore, we can
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.

25 years agofix handling of '-t' flag, and pause for a little bit after drawing happysnake
cgd [Tue, 26 Oct 1999 06:38:31 +0000 (06:38 +0000)]
fix handling of '-t' flag, and pause for a little bit after drawing happysnake

25 years agocorrect description of representation of snake
cgd [Tue, 26 Oct 1999 06:36:53 +0000 (06:36 +0000)]
correct description of representation of snake

25 years agosupport arrow keys.
cgd [Tue, 26 Oct 1999 06:35:49 +0000 (06:35 +0000)]
support arrow keys.

25 years agoupdate after change to return value of tputs() third argument
lukem [Mon, 4 Oct 1999 23:26:59 +0000 (23:26 +0000)]
update after change to return value of tputs() third argument

25 years agoFix error in last namespace change (only relevant #ifdef DEBUG).
jsm [Fri, 1 Oct 1999 17:06:01 +0000 (17:06 +0000)]
Fix error in last namespace change (only relevant #ifdef DEBUG).

25 years agoAdd more files to FILES section of cribbage.6.
jsm [Fri, 1 Oct 1999 17:04:42 +0000 (17:04 +0000)]
Add more files to FILES section of cribbage.6.

25 years agoFix uses of namespaces reserved by ISO C or POSIX.1.
jsm [Thu, 30 Sep 1999 18:01:31 +0000 (18:01 +0000)]
Fix uses of namespaces reserved by ISO C or POSIX.1.

25 years agoUse macro NAMLEN rather than dirent->d_namlen, for easier portability.
jsm [Wed, 22 Sep 1999 18:56:32 +0000 (18:56 +0000)]
Use macro NAMLEN rather than dirent->d_namlen, for easier portability.

25 years agoUse the function usage().
jsm [Wed, 22 Sep 1999 18:55:14 +0000 (18:55 +0000)]
Use the function usage().

25 years agoDon't include terminal . in argument of err().
jsm [Wed, 22 Sep 1999 18:54:42 +0000 (18:54 +0000)]
Don't include terminal . in argument of err().

25 years agoDon't include <nlist.h>.
jsm [Wed, 22 Sep 1999 18:54:03 +0000 (18:54 +0000)]
Don't include <nlist.h>.

25 years agoRemove generated file "limerick-o" in "clean" target.
tron [Tue, 21 Sep 1999 16:34:51 +0000 (16:34 +0000)]
Remove generated file "limerick-o" in "clean" target.

25 years agoCleanup and warning fixes for phantasia/setup.c.
jsm [Sun, 19 Sep 1999 18:14:52 +0000 (18:14 +0000)]
Cleanup and warning fixes for phantasia/setup.c.

25 years agoAllow dm to ban games playing 11pm-midnight.
jsm [Sun, 19 Sep 1999 18:13:41 +0000 (18:13 +0000)]
Allow dm to ban games playing 11pm-midnight.

From OpenBSD.

25 years agoDefine variables as BOOLEAN, not bool, where the extern declarations
jsm [Sun, 19 Sep 1999 18:12:09 +0000 (18:12 +0000)]
Define variables as BOOLEAN, not bool, where the extern declarations
already use BOOLEAN.

25 years agoFurther warning fix for mkdict.
jsm [Sun, 19 Sep 1999 18:10:48 +0000 (18:10 +0000)]
Further warning fix for mkdict.

25 years agoAdd alternative style for commands at end of game (#ifdef NEW_STYLE).
jsm [Sun, 19 Sep 1999 09:42:38 +0000 (09:42 +0000)]
Add alternative style for commands at end of game (#ifdef NEW_STYLE).

25 years agoWarning cleanup for boggle's mkdict and mkindex.
jsm [Sat, 18 Sep 1999 20:50:28 +0000 (20:50 +0000)]
Warning cleanup for boggle's mkdict and mkindex.

25 years agoFix -Wsign-compare warnings.
jsm [Sat, 18 Sep 1999 19:38:46 +0000 (19:38 +0000)]
Fix -Wsign-compare warnings.

25 years agoUse strncpy() rather than strcpy() with fixed size buffer.
jsm [Sat, 18 Sep 1999 16:47:11 +0000 (16:47 +0000)]
Use strncpy() rather than strcpy() with fixed size buffer.

25 years agoAdd missing initialisers.
jsm [Sat, 18 Sep 1999 16:42:29 +0000 (16:42 +0000)]
Add missing initialisers.

25 years agoAdd FALLTHROUGH comment.
jsm [Sat, 18 Sep 1999 16:41:38 +0000 (16:41 +0000)]
Add FALLTHROUGH comment.

25 years agoGive sensible error message in a shouldn't happen case.
jsm [Sat, 18 Sep 1999 16:40:04 +0000 (16:40 +0000)]
Give sensible error message in a shouldn't happen case.

25 years agoMake word list for hangman selectable at run time.
jsm [Fri, 17 Sep 1999 20:45:48 +0000 (20:45 +0000)]
Make word list for hangman selectable at run time.

25 years agoConvert tetris to use <err.h> functions.
jsm [Fri, 17 Sep 1999 20:44:51 +0000 (20:44 +0000)]
Convert tetris to use <err.h> functions.

25 years agoFix some uses of NULL as non-pointer and 0 for null pointer.
jsm [Fri, 17 Sep 1999 17:07:11 +0000 (17:07 +0000)]
Fix some uses of NULL as non-pointer and 0 for null pointer.

25 years agoUse `extern' for header variable declarations in trek(6).
jsm [Fri, 17 Sep 1999 17:06:08 +0000 (17:06 +0000)]
Use `extern' for header variable declarations in trek(6).

25 years agoChange quiz `pres' data file to include vice-presidents, and fix some
jsm [Tue, 14 Sep 1999 20:04:02 +0000 (20:04 +0000)]
Change quiz `pres' data file to include vice-presidents, and fix some
minor errors.

From OpenBSD.

25 years agoUpdate pom to the third edition of Duffett-Smith's book, and clean it
jsm [Tue, 14 Sep 1999 20:00:07 +0000 (20:00 +0000)]
Update pom to the third edition of Duffett-Smith's book, and clean it
up somewhat.  Change time specification format to similar to that used
by date(1) - taking a command line argument in seconds since the Epoch
is silly.  Date parsing based on code from date(1).

Based on work by Paul Janzen for OpenBSD.

25 years agoDeclare variables in extern.h as extern, and add non-extern
jsm [Tue, 14 Sep 1999 19:54:47 +0000 (19:54 +0000)]
Declare variables in extern.h as extern, and add non-extern
declarations to globals.c.

25 years agoUse time() instead of gettimeofday().
jsm [Tue, 14 Sep 1999 18:08:46 +0000 (18:08 +0000)]
Use time() instead of gettimeofday().

25 years agoConvert snake to use curses, and generally clean it up somewhat.
jsm [Tue, 14 Sep 1999 18:07:21 +0000 (18:07 +0000)]
Convert snake to use curses, and generally clean it up somewhat.

Includes bugfixes from or inspired by OpenBSD.

25 years agoMake cribbage use the POSIX.2 pager behaviour.
jsm [Mon, 13 Sep 1999 17:27:36 +0000 (17:27 +0000)]
Make cribbage use the POSIX.2 pager behaviour.

25 years agoFix buffer overrun in rogue.
jsm [Mon, 13 Sep 1999 17:19:55 +0000 (17:19 +0000)]
Fix buffer overrun in rogue.

25 years agoFix uses of names of library functions for other purposes.
jsm [Mon, 13 Sep 1999 17:18:56 +0000 (17:18 +0000)]
Fix uses of names of library functions for other purposes.

25 years agoA couple more checks for file descriptor < 3 missed earlier.
jsm [Mon, 13 Sep 1999 17:15:42 +0000 (17:15 +0000)]
A couple more checks for file descriptor < 3 missed earlier.

25 years agoRemove rogue's old and bit-rotten cut-down version of curses.
jsm [Mon, 13 Sep 1999 17:14:07 +0000 (17:14 +0000)]
Remove rogue's old and bit-rotten cut-down version of curses.

25 years agoSplit limericks into "normal" and "offensive" ones.
hwr [Sun, 12 Sep 1999 10:15:46 +0000 (10:15 +0000)]
Split limericks into "normal" and "offensive" ones.
Fixes PR 6202 by Matthias Grutzeck <grut@teco.edu>.

25 years agoThese fortunes conatain offensive language.
hwr [Sun, 12 Sep 1999 10:06:21 +0000 (10:06 +0000)]
These fortunes conatain offensive language.
These were originally unamerican.{fake,real}
Part of the work on PR 6202.

25 years agoMoved to unamerican.real-o
hwr [Sun, 12 Sep 1999 09:57:50 +0000 (09:57 +0000)]
Moved to unamerican.real-o

25 years agoMoved to unamerican.fake-o
hwr [Sun, 12 Sep 1999 09:54:25 +0000 (09:54 +0000)]
Moved to unamerican.fake-o

25 years agoSecurity improvements for games (largely from or inspired by OpenBSD).
jsm [Sun, 12 Sep 1999 09:02:20 +0000 (09:02 +0000)]
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.

25 years agoUse STD*_FILENO.
kleink [Fri, 10 Sep 1999 10:47:56 +0000 (10:47 +0000)]
Use STD*_FILENO.

25 years agoCheck for write errors in auxiliary programs used during build of games.
jsm [Fri, 10 Sep 1999 00:18:20 +0000 (00:18 +0000)]
Check for write errors in auxiliary programs used during build of games.

25 years agoCompare getchar() against EOF, not -1.
jsm [Fri, 10 Sep 1999 00:16:43 +0000 (00:16 +0000)]
Compare getchar() against EOF, not -1.

25 years agoFix glitch in const changes (bin/8365 from John.P.Darrow@wheaton.edu).
jsm [Fri, 10 Sep 1999 00:03:14 +0000 (00:03 +0000)]
Fix glitch in const changes (bin/8365 from John.P.Darrow@wheaton.edu).

25 years agoInclude <time.h> in various places in the games where time() or time_t
jsm [Thu, 9 Sep 1999 17:30:17 +0000 (17:30 +0000)]
Include <time.h> in various places in the games where time() or time_t
are used.

25 years agoCheck for failure of malloc() and calloc() at various places in the games.
jsm [Thu, 9 Sep 1999 17:27:58 +0000 (17:27 +0000)]
Check for failure of malloc() and calloc() at various places in the games.

25 years agoRemove extra blank line in copyright.
simonb [Thu, 9 Sep 1999 06:30:10 +0000 (06:30 +0000)]
Remove extra blank line in copyright.

25 years agoUse the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate in
jsm [Wed, 8 Sep 1999 21:57:16 +0000 (21:57 +0000)]
Use the symbolic names `SEEK_SET' and `O_RDONLY' where appropriate in
the games.

25 years agoAdd `__noreturn__' and `__unused__' attributes where appropriate to
jsm [Wed, 8 Sep 1999 21:45:25 +0000 (21:45 +0000)]
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).

25 years agoAdd use of `const' where appropriate to the games.
jsm [Wed, 8 Sep 1999 21:17:44 +0000 (21:17 +0000)]
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.

25 years agoRemoved unused array Movenames[].
jsm [Wed, 8 Sep 1999 20:43:48 +0000 (20:43 +0000)]
Removed unused array Movenames[].

25 years agoConvert to something resembling KNF.
simonb [Sat, 21 Aug 1999 10:40:03 +0000 (10:40 +0000)]
Convert to something resembling KNF.

25 years agoInstead of writing out a structure that contains pointers as the header
simonb [Sat, 21 Aug 1999 09:23:44 +0000 (09:23 +0000)]
Instead of writing out a structure that contains pointers as the header
of the card decks file, just write out the number of cards for each
deck.  Also use "off_t" for offsets into the file (that are stored after
the number of cards) instead of "long".
/usr/share/games/cards.pck is now MI.

25 years agoUse new endian-specific conversion macros - 64-bit off_t's are now
simonb [Sat, 21 Aug 1999 07:02:46 +0000 (07:02 +0000)]
Use new endian-specific conversion macros - 64-bit off_t's are now
the stored the same regardess of the byte order of the generating
host.

Note in the strfile(8) man page that all fields are big-endian, not
in network byte order.

25 years agoDon't chown installed files or directories if UNPRIVILEGED is defined.
simonb [Sat, 21 Aug 1999 06:30:11 +0000 (06:30 +0000)]
Don't chown installed files or directories if UNPRIVILEGED is defined.

"make build" should now work as a non-root user (tested on Alpha).
mtree spits out lots of warnings during "make distrib-dirs", but
these are non-fatal.

25 years agoUse ${INSTPRIV} with ${INSTALL}.
simonb [Sat, 21 Aug 1999 06:27:29 +0000 (06:27 +0000)]
Use ${INSTPRIV} with ${INSTALL}.

25 years agoMake phrase to enter password again clearer
hubertf [Wed, 18 Aug 1999 01:39:16 +0000 (01:39 +0000)]
Make phrase to enter password again clearer

25 years agoIn name section, use .Dq macro rather than writing double quote directly.
enami [Tue, 17 Aug 1999 03:36:35 +0000 (03:36 +0000)]
In name section, use .Dq macro rather than writing double quote directly.

25 years agoSpell "privilege" correctly (correct spelling from Jonathan Stone).
simonb [Mon, 16 Aug 1999 02:59:22 +0000 (02:59 +0000)]
Spell "privilege" correctly (correct spelling from Jonathan Stone).

25 years agoAdapt to change of "termcap.h".
tron [Sat, 14 Aug 1999 16:38:45 +0000 (16:38 +0000)]
Adapt to change of "termcap.h".

25 years agoAdapt to change in "termcap.h".
tron [Sat, 14 Aug 1999 16:36:42 +0000 (16:36 +0000)]
Adapt to change in "termcap.h".

25 years agoAdapt to change of "termcap.h".
tron [Sat, 14 Aug 1999 16:29:22 +0000 (16:29 +0000)]
Adapt to change of "termcap.h".

25 years agoFix the part of pr8201 which is IMHO a bug: the error message now goes
sommerfeld [Fri, 13 Aug 1999 03:02:06 +0000 (03:02 +0000)]
Fix the part of pr8201 which is IMHO a bug: the error message now goes
to stderr.

The existing error message ("I don't know what xxx means") is
unchanged, as it is stylisticly in keeping with the light-hearted
nature of the program, and is also more likely to be accurate than the
"no such acronym" error message proposed in 8201.

25 years agoLeave ^Z-handling to the system (curses? no idea, at least it works :-),
hubertf [Tue, 10 Aug 1999 21:52:43 +0000 (21:52 +0000)]
Leave ^Z-handling to the system (curses? no idea, at least it works :-),
and don't wait for two seconds when game is over.

25 years agoPrint score after endwin() so it isn't deleted immediately afterward.
hubertf [Sun, 8 Aug 1999 03:08:08 +0000 (03:08 +0000)]
Print score after endwin() so it isn't deleted immediately afterward.

25 years agoRevert inclusion of <string.h> now that curses has been fixed.
simonb [Sun, 8 Aug 1999 02:06:01 +0000 (02:06 +0000)]
Revert inclusion of <string.h> now that curses has been fixed.

25 years agoFortunes from those Unamerican Activities bumper stickers you see on
thorpej [Wed, 4 Aug 1999 22:45:09 +0000 (22:45 +0000)]
Fortunes from those Unamerican Activities bumper stickers you see on
mountain bikes owned by Gen-X'ers.

25 years agoNeed <strings.h>.
thorpej [Wed, 4 Aug 1999 18:38:12 +0000 (18:38 +0000)]
Need <strings.h>.

25 years agoThis patch converts worms(6) to use curses, thereby
hubertf [Fri, 30 Jul 1999 02:23:27 +0000 (02:23 +0000)]
This patch converts worms(6) to use curses, thereby
simplifying the code and improving its portability.  It also adds a
delay option from OpenBSD, to allow reasonable speed display on fast
terminals, adds use of const, and fixes signal handling and use of
errx() where appropriate.

Patch supplied in PR 6661 by Joseph Myers <jsm28@cam.ac.uk>.

25 years agoThis patch converts rain(6) to use curses, thereby
hubertf [Fri, 30 Jul 1999 02:14:56 +0000 (02:14 +0000)]
This patch converts rain(6) to use curses, thereby
significantly simplifying the code and improving its portability.  It
also adds a delay option from OpenBSD to make the display go at a
useful speed on fast terminals, and fixes signal handling to make it
reliable.

Patch supplied by Joseph Myers <jsm28@cam.ac.uk> in PR 6659.

25 years agoThis patch fixes adventure(6) to use `extern' on declarations of
hubertf [Wed, 28 Jul 1999 23:23:39 +0000 (23:23 +0000)]
This patch fixes adventure(6) to use `extern' on declarations of
objects in its header file, and to add corresponding definitions to
init.c accordingly.  (See the C standard - relying on linker commons
where there are multiple uninitialised declarations of an object in
the program traditionally works on Unix, but is not standard C.)

The patch also removes a bit-rotten code fragment under #ifdef
OLDSTUFF.

Patch submitted in PR 8105 by Joseph Myers <jsm28@cam.ac.uk>

25 years agoThis is a trivial fix to backgammon(6): '\a' is cleaner than '\007'.
hubertf [Wed, 28 Jul 1999 23:15:51 +0000 (23:15 +0000)]
This is a trivial fix to backgammon(6): '\a' is cleaner than '\007'.

Submitted in PR 8104 by Joseph Myers <jsm28@cam.ac.uk>

25 years agoThis patch makes worm(6) keep the cursor on the head of the worm.
hubertf [Wed, 28 Jul 1999 23:09:45 +0000 (23:09 +0000)]
This patch makes worm(6) keep the cursor on the head of the worm.

Submitted by Joseph Myers <jsm28@cam.ac.uk> in PR 8103.

25 years agoThis patch adds references to the main punched card, paper tape and
hubertf [Wed, 28 Jul 1999 23:01:59 +0000 (23:01 +0000)]
This patch adds references to the main punched card, paper tape and
Morse code standards to the bcd(6) manpage (which also serves as the
manpages ppt(6) and morse(6)).

(The only one of these standards I have read is the ECMA-10 paper tape
standard, which is also probably the least readily available, since
ECMA don't supply copies of obsolete standards, though they will
supply printed copies of any or all of their current standards at no
charge.)

Patch submitted in PR 8102 by Joseph Myers <jsm28@cam.ac.uk>

25 years agoThis patch makes bcd(6) use `const' where appropriate, and use
hubertf [Wed, 28 Jul 1999 02:12:33 +0000 (02:12 +0000)]
This patch makes bcd(6) use `const' where appropriate, and use
unsigned char rather than char for values that end up passed to
isascii() and also used as array indices.

Patch submitted by Joseph Myers <jsm28@cam.ac.uk> in PR 8093.

25 years agoThis patch fixes a remaining relic of the backgammon(6) "execute
hubertf [Wed, 28 Jul 1999 02:07:39 +0000 (02:07 +0000)]
This patch fixes a remaining relic of the backgammon(6) "execute
saved game to continue playing" problem described in bin/6077.

Patch contributed by Joseph Myers <jsm28@cam.ac.uk> in PR 8092.

25 years agoIn atc(6), the function getAChar() has BSD and SYSV variants to deal
hubertf [Wed, 28 Jul 1999 02:01:30 +0000 (02:01 +0000)]
In atc(6), the function getAChar() has BSD and SYSV variants to deal
with variations in EINTR behaviour, but the optimisation of using the
BSD version where the SYSV version isn't needed is insignificant.
This patch therefore simplifies the code by making there be just one
version, a more paranoid (about EOF when errno is already EINTR)
version of the SYSV code.  Since the BSD/SYSV defines are mainly used
to control whether BSD timers are used, this helps where BSD timers
but SYSV EINTR handling are wanted.

Patch supplied in PR 8091 by Joseph Myers <jsm28@cam.ac.uk>

25 years agoThis patch improves the handling of save files in battlestar(6), by
hubertf [Wed, 28 Jul 1999 01:45:41 +0000 (01:45 +0000)]
This patch improves the handling of save files in battlestar(6), by
allowing the user to choose the name of the save file and specify it
on the command line when restoring.  It also eliminates a buffer
overrun in determining the path to the save file, and any particular
arbitrary limit on the name length.  In the name of a tidier home
directory, the default name is changed from "Bstar" to ".Bstar".

Patch supplied in PR 8085 by Joseph Myers <jsm28@cam.ac.uk>
Minor modification (s/startup/filename/ in initialize()) by me.