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

25 years agomake sure only whole words are matched, use [:space:] RE to avoid embedded
drochner [Tue, 27 Jul 1999 15:41:27 +0000 (15:41 +0000)]
make sure only whole words are matched, use [:space:] RE to avoid embedded
<TAB>s

25 years agoRemove empty functin check_adir() and references to it.
hubertf [Mon, 26 Jul 1999 21:14:21 +0000 (21:14 +0000)]
Remove empty functin check_adir() and references to it.

25 years agoThis patch adds to backgammon(6) a couple of noreturn attributes
hubertf [Mon, 26 Jul 1999 20:56:03 +0000 (20:56 +0000)]
This patch adds to backgammon(6) a couple of noreturn attributes
missed in bin/6144.

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

25 years agoThis patch makes backgammon(6) check that, if you use the -s option to
hubertf [Mon, 26 Jul 1999 20:50:44 +0000 (20:50 +0000)]
This patch makes backgammon(6) check that, if you use the -s option to
recover a saved game, then you specify a file name.

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

25 years agoThis adds a check for memory allocation failure to one place in
hubertf [Mon, 26 Jul 1999 18:39:06 +0000 (18:39 +0000)]
This adds a check for memory allocation failure to one place in
backgammon(6).  The use of write(2) for the message may seem odd, but
is used in another place in this game.  (Actually, a lot of
backgammon(6) could do with being substantially cleaned up.)

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

25 years agoCheck whatis(1) if we don't find an acronym matching the argument
briggs [Sun, 25 Jul 1999 20:29:04 +0000 (20:29 +0000)]
Check whatis(1) if we don't find an acronym matching the argument

25 years agoWe're in section 6.
thorpej [Sun, 25 Jul 1999 20:02:48 +0000 (20:02 +0000)]
We're in section 6.

25 years agoThis patch marks unused parameters in atc(6) as such.
hubertf [Sun, 25 Jul 1999 00:24:38 +0000 (00:24 +0000)]
This patch marks unused parameters in atc(6) as such.

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

25 years agoHardcore const poisoning
hubertf [Sun, 25 Jul 1999 00:06:13 +0000 (00:06 +0000)]
Hardcore const poisoning
Patch submitted by Joseph Myers <jsm28@cam.ac.uk> in PR 8057

25 years agoThis patch makes atc(6) check for memory allocation failure.
hubertf [Sat, 24 Jul 1999 23:58:15 +0000 (23:58 +0000)]
This patch makes atc(6) check for memory allocation failure.

Patch submitted by Joseph Myers <jsm28@cam.ac.uk> in PR 8056,
with small enhancement to make clearer when loser() is called
with NULL.

25 years agoUse getopt instead of home grown command line parsing.
mjl [Sat, 24 Jul 1999 15:50:44 +0000 (15:50 +0000)]
Use getopt instead of home grown command line parsing.
Patch from Joseph Myers <jsm28@cam.ac.uk> in PR/8062.

25 years agoremove sh warning when invoked with no args
lukem [Thu, 22 Jul 1999 10:08:17 +0000 (10:08 +0000)]
remove sh warning when invoked with no args

25 years agoadd wtf
mrg [Thu, 22 Jul 1999 01:05:20 +0000 (01:05 +0000)]
add wtf

25 years agoAllen Briggs' wtf(6) to grovel the acronyms database.
mrg [Thu, 22 Jul 1999 01:03:20 +0000 (01:03 +0000)]
Allen Briggs' wtf(6) to grovel the acronyms database.

25 years agoconst poisoning
hubertf [Wed, 21 Jul 1999 13:19:10 +0000 (13:19 +0000)]
const poisoning

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

25 years agoWhen atc(6) parses its game definition files, the check for `width'
hubertf [Wed, 21 Jul 1999 13:10:47 +0000 (13:10 +0000)]
When atc(6) parses its game definition files, the check for `width'
being defined more than once incorrectly checks for `height' having
been previously defined instead.

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

25 years agoDrop setgid privs early, via OpenBSD
hubertf [Wed, 21 Jul 1999 04:04:21 +0000 (04:04 +0000)]
Drop setgid privs early, via OpenBSD
Reported in PR 5970 by Joseph Myers <jsm@octomino.demon.co.uk>

25 years agoDrop setgid privs early. Via OpenBSD, reported in PR 5970 by
hubertf [Wed, 21 Jul 1999 04:02:29 +0000 (04:02 +0000)]
Drop setgid privs early. Via OpenBSD, reported in PR 5970 by
Joseph Myers <jsm28@cam.ac.uk>

25 years agoDrop setgid privs early; via OpenBSD reported in PR 5970 by
hubertf [Wed, 21 Jul 1999 03:59:41 +0000 (03:59 +0000)]
Drop setgid privs early; via OpenBSD reported in PR 5970 by
Joseph Myers <jsm28@cam.ac.uk>

25 years agoDrop setgid privileges early. Derived from OpenBSD and sent in as PR 5970
hubertf [Wed, 21 Jul 1999 03:56:53 +0000 (03:56 +0000)]
Drop setgid privileges early. Derived from OpenBSD and sent in as PR 5970
by Joseph Myers <jsm28@cam.ac.uk>.

25 years agoBack out last due to think o on my side: we don't start banner through
hubertf [Mon, 19 Jul 1999 19:07:17 +0000 (19:07 +0000)]
Back out last due to think o on my side: we don't start banner through
dm(6), so there's no setgid privileges to discard. Pointed out by
Joseph S. Myers <jsm28@cam.ac.uk>

25 years agoDrop setgid privs passed from dm(6).
hubertf [Mon, 19 Jul 1999 00:42:59 +0000 (00:42 +0000)]
Drop setgid privs passed from dm(6).

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

25 years agoAs in previously sent patches: backgammon(6) does not need setgid
hubertf [Mon, 19 Jul 1999 00:33:58 +0000 (00:33 +0000)]
As in previously sent patches: backgammon(6) does not need setgid
games privileges from dm, so should revoke them on startup.

Patch submitteed in PR 8024 bye Joseph Myers <jsm28@cam.ac.uk>

25 years agoAdventure(6) should check for errors (e.g. disk full or quota
hubertf [Sat, 17 Jul 1999 20:02:48 +0000 (20:02 +0000)]
Adventure(6) should check for errors (e.g. disk full or quota
exceeded) when writing out saved games. Do so!

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

25 years agoThe patch below improves the security of the game atc(6), by having it
hubertf [Sat, 17 Jul 1999 19:57:03 +0000 (19:57 +0000)]
The patch below improves the security of the game atc(6), by having it
open the score file at the start and then drop all setgid privileges
while keeping a (close-on-exec) file descriptor open to it.  In order
to allow this the static data files have to be made world readable.
In addition a potential buffer overrun with corrupted score files is
avoided by more careful use of scanf (note that SCORE_SCANF_FMT is
defined alongside the definition of the relevant structure).

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

25 years agoAdd two .Els that nroff was complaining to miss.
hubertf [Sat, 17 Jul 1999 19:48:40 +0000 (19:48 +0000)]
Add two .Els that nroff was complaining to miss.

25 years agoThis patch (a) makes arithmetic(6) revoke any setgid privileges it got
hubertf [Sat, 17 Jul 1999 19:11:30 +0000 (19:11 +0000)]
This patch (a) makes arithmetic(6) revoke any setgid privileges it got
from dm; (b) marks an unused parameter as such.

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

25 years agoThis patch cleans up the handling of the variable `saved' in
hubertf [Fri, 16 Jul 1999 01:38:20 +0000 (01:38 +0000)]
This patch cleans up the handling of the variable `saved' in
adventure(6).  The handling of this variable is somewhat confusing,
since it is used for two different purposes (controlling the time
required before a saved game can be restored, and controlling various
aspects of dwarf behaviour); in fact, it is also declared twice in
hdr.h.  Except possibly when saving a game fails, these uses can never
interfere; when used for controlling dwarf behaviour, we always have
saved == -1.  This can be better understood with reference to the
original PDP-10 FORTRAN source (URL in patch, since hdr.h references
the comments of the FORTRAN as still relevant to this version) of
which the C version is a direct translation: the wrong value for
`saved' meant that someone was cheating and had bypassed normal
initialisation.  Saving was done by halting and telling the user to
save their core image, so the question of carrying on after saving
failed to open the output file did not arise.

This patch separates the uses of `saved' into uses of two separate
variables.

Closes PR 8005 by Joseph Myers <jsm28@cam.ac.uk>

25 years agoConst poisoning.
hubertf [Wed, 14 Jul 1999 22:52:07 +0000 (22:52 +0000)]
Const poisoning.
Patch submitted in PR 7993 by Joseph Myers <jsm28@cam.ac.uk>

25 years agoThis patch fixes a -Wcast-qual warning in wump(6).
hubertf [Wed, 14 Jul 1999 22:49:27 +0000 (22:49 +0000)]
This patch fixes a -Wcast-qual warning in wump(6).
Submitted in 7994 by Joseph Myers <jsm28@cam.ac.uk>

25 years agoFix scoring, submitted in PR 7992 by Joseph Myers <jsm28@cam.ac.uk>
hubertf [Wed, 14 Jul 1999 22:46:21 +0000 (22:46 +0000)]
Fix scoring, submitted in PR 7992 by Joseph Myers <jsm28@cam.ac.uk>

25 years agoFrom PR 7987 by Joseph Myers <jsm28@cam.ac.uk>:
hubertf [Wed, 14 Jul 1999 17:42:13 +0000 (17:42 +0000)]
From PR 7987 by Joseph Myers <jsm28@cam.ac.uk>:
More battlestar(6) spelling and punctuation fixes for battlestar(6).
These ones come from OpenBSD.

25 years agoThis patch makes fish(6) honour PAGER for viewing the instructions.
hubertf [Wed, 14 Jul 1999 17:30:21 +0000 (17:30 +0000)]
This patch makes fish(6) honour PAGER for viewing the instructions.
The detailed behaviour follows POSIX.2.  A similar patch for wump(6)
which was accepted is in bin/6699.  Fish does not need any setgid
privileges it gets from dm, so this patch also moves the gid resetting
earlier.

Reported in PR 7986 by Joseph Myers <jsm28@cam.ac.uk>

25 years agoFrom PR 7988 by Joseph Myers <jsm28@cam.ac.uk>: use the symbolic
hubertf [Wed, 14 Jul 1999 17:23:53 +0000 (17:23 +0000)]
From PR 7988 by Joseph Myers <jsm28@cam.ac.uk>: use the symbolic
name SEEK_SET for values which end up as the third argument of
fseek(), rather than a hard-coded 0.

25 years agoFrom PR 7985 by Joseph Myers <jsm28@cam.ac.uk>:
hubertf [Wed, 14 Jul 1999 17:21:03 +0000 (17:21 +0000)]
From PR 7985 by Joseph Myers <jsm28@cam.ac.uk>:

games/adventure/setup.c fails to check for errors when writing its
output.  This means that, if the disk fills up at this point during a
build, it would nevertheless fail to return an error status.

25 years agoman page rewritten into -mandoc by dholland@eecs.harvard.edu; from PR7861
sommerfeld [Sun, 27 Jun 1999 04:35:42 +0000 (04:35 +0000)]
man page rewritten into -mandoc by dholland@eecs.harvard.edu; from PR7861

25 years agoFixi uninit vars warnings.
christos [Sun, 16 May 1999 00:15:46 +0000 (00:15 +0000)]
Fixi uninit vars warnings.

25 years agoAdd missing prototypes
christos [Sun, 16 May 1999 00:03:35 +0000 (00:03 +0000)]
Add missing prototypes

25 years agoAdd -A for automatic playing mode.
christos [Sat, 15 May 1999 23:56:35 +0000 (23:56 +0000)]
Add -A for automatic playing mode.
Make the score file MI

25 years agoFix Y2K buffer overflow (from OpenBSD).
kristerw [Sun, 25 Apr 1999 19:08:34 +0000 (19:08 +0000)]
Fix Y2K buffer overflow (from OpenBSD).

25 years agoBuffer overflow fix (from OpenBSD)
kristerw [Sat, 24 Apr 1999 22:09:06 +0000 (22:09 +0000)]
Buffer overflow fix (from OpenBSD)

25 years agoinitscr() returns a pointer, compare return value with NULL and not
simonb [Sun, 18 Apr 1999 03:30:12 +0000 (03:30 +0000)]
initscr() returns a pointer, compare return value with NULL and not
an int.
Compatible with other versions of curses.

25 years agoDon't frob the interals of a WINDOW*, use the mvinch() macro.
simonb [Sun, 18 Apr 1999 03:29:01 +0000 (03:29 +0000)]
Don't frob the interals of a WINDOW*, use the mvinch() macro.

25 years agochange:
cgd [Tue, 6 Apr 1999 04:54:19 +0000 (04:54 +0000)]
change:
.Sh "SEE ALSO"
to:
.Sh SEE ALSO
The doc macros check for the latter (actually just for 'SEE' as the first
argument to .Sh) to set the section header SEE ALSO flag, which modifies
some behaviour (e.g. references done with .Rs/.Re).

25 years agos/SETUIDGAME/SETGIDGAME/ - catch up with the rest of the world.
abs [Mon, 5 Apr 1999 08:04:48 +0000 (08:04 +0000)]
s/SETUIDGAME/SETGIDGAME/ - catch up with the rest of the world.

25 years agodefined(attron) does not mean there is a <term.h>
mrg [Mon, 29 Mar 1999 05:12:39 +0000 (05:12 +0000)]
defined(attron) does not mean there is a <term.h>

25 years agoFix object recognition, per PR 6048 by Joseph S. Myers <jsm28@cam.ac.uk>.
hubertf [Thu, 25 Mar 1999 16:46:08 +0000 (16:46 +0000)]
Fix object recognition, per PR 6048 by Joseph S. Myers <jsm28@cam.ac.uk>.

25 years agoMore and more .Os cleanups. .Os is defined in the tmac.doc-common file,
garbled [Mon, 22 Mar 1999 18:43:46 +0000 (18:43 +0000)]
More and more .Os cleanups.  .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.

25 years agoNewline and usage cosmetics from Soren S. Jorvang <soren@t.dk> PR7205
abs [Mon, 22 Mar 1999 06:12:23 +0000 (06:12 +0000)]
Newline and usage cosmetics from Soren S. Jorvang <soren@t.dk> PR7205

25 years agoset MKLINT=no. noted by NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp>
lukem [Sat, 13 Mar 1999 23:17:46 +0000 (23:17 +0000)]
set MKLINT=no. noted by NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp>

25 years agoFix .Bl/.El imbalance.
erh [Wed, 10 Mar 1999 09:29:08 +0000 (09:29 +0000)]
Fix .Bl/.El imbalance.

25 years agoremove NOPROG (nothing uses it). however, set MKOBJ=no if appropriate
lukem [Sat, 13 Feb 1999 23:53:56 +0000 (23:53 +0000)]
remove NOPROG (nothing uses it). however, set MKOBJ=no if appropriate

25 years agoconvert from NOxxx= to MKxxx=no.
lukem [Sat, 13 Feb 1999 02:54:17 +0000 (02:54 +0000)]
convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.

25 years agoRemove unneeded "mips compiler bug" workaround from original code imported
simonb [Thu, 11 Feb 1999 02:34:24 +0000 (02:34 +0000)]
Remove unneeded "mips compiler bug" workaround from original code imported
in 1994.

25 years agotgetent() handles const correctly in current
hubertf [Wed, 10 Feb 1999 17:08:06 +0000 (17:08 +0000)]
tgetent() handles const correctly in current

25 years agoAdd __attribute__() to a variable. From PR 6557, after discussion with
hubertf [Wed, 10 Feb 1999 12:38:54 +0000 (12:38 +0000)]
Add __attribute__() to a variable. From PR 6557, after discussion with
Joseph S. Myers <jsm28@cam.ac.uk>

25 years agoThe patch below makes the game backgammon(6) use `const' where
hubertf [Wed, 10 Feb 1999 12:29:47 +0000 (12:29 +0000)]
The patch below makes the game backgammon(6) use `const' where
appropriate.  It also removes some obsolete, unused code to check the
number of users on the system (obsoleted by dm); removes a prototype
for an unused function that was removed earlier; and removes a control
character from one message that was I think intended to clear the
screen on some particular terminal (though I can't find the comment to
that effect in any of the BSD source trees I have handy) but no longer
serves any useful purpose.

From PR 6580 by Joseph Myers <jsm28@cam.ac.uk>.

Also contains two more patches, one in teachgammon/tutor.h (by Joseph)
and one in common_source/fancy.c (by me).

25 years agoOnly invoke pager given in $PAGER if output goes to a tty, feed pager
hubertf [Wed, 10 Feb 1999 01:44:34 +0000 (01:44 +0000)]
Only invoke pager given in $PAGER if output goes to a tty, feed pager
via stdin, per PR 6699 by Joseph Myers <jsm28@cam.ac.uk>

25 years agoConst poisoning, per PR 6660 by Joseph Myers <jsm28@cam.ac.uk>
hubertf [Wed, 10 Feb 1999 01:36:50 +0000 (01:36 +0000)]
Const poisoning, per PR 6660 by Joseph Myers <jsm28@cam.ac.uk>

25 years agoThe game sail(6) has a function Write() which is used both with
hubertf [Wed, 10 Feb 1999 00:45:45 +0000 (00:45 +0000)]
The game sail(6) has a function Write() which is used both with
integer arguments and with string arguments (cast to long, and in one
place to int).  The patch here cleans this up, making it into two
separate functions; this allows for the game to be made const-correct
in future and improves portability.

The patch also contains two other fragments: a change to use the
symbolic constant SEEK_END with fseek(), and a change to use snprintf
in one place to avoid a buffer overrun.

Via PR 6569 by Joseph Myers <jsm28@cam.ac.uk>.

25 years agoThe patch below does some minor cleanup of adventure(6): an additional
hubertf [Wed, 10 Feb 1999 00:29:21 +0000 (00:29 +0000)]
The patch below does some minor cleanup of adventure(6): an additional
use of const I missed in bin/6041; avoiding a signed/unsigned warning;
marking an unused parameter as such; revoking setgid privileges
(including the saved gid) rather than setuid ones; includes and
function prototypes in setup.c; the string passed to err() should not
end with a `.'.  Together with the patch sent concerning adventure's
EOF handling, this synchronises adventure(6) in NetBSD with the Linux
port of the NetBSD games.

Via PR 6557 by Joseph Myers <jsm28@cam.ac.uk>

25 years agoThe game adventure(6) handles EOF on standard input rather
hubertf [Wed, 10 Feb 1999 00:11:28 +0000 (00:11 +0000)]
The game adventure(6) handles EOF on standard input rather
ungracefully.  The patch, derived from OpenBSD, improves this
handling.

Sent in in PR 6556 by Joseph Myers <jsm28@cam.ac.uk>.

26 years agoonly show preview if the -p option is given
hubertf [Sun, 3 Jan 1999 17:13:51 +0000 (17:13 +0000)]
only show preview if the -p option is given

26 years agodocument morse's decode option -d
hubertf [Sun, 3 Jan 1999 17:12:28 +0000 (17:12 +0000)]
document morse's decode option -d

26 years agoAdd previewing of next shape. Old (previous) behaviour can be
hubertf [Sun, 3 Jan 1999 02:00:17 +0000 (02:00 +0000)]
Add previewing of next shape. Old (previous) behaviour can be
restored by compiling with NO_PREVIEW defined.

26 years agoRemove obsolete header file. Fixes PR bin/6700 by Joseph S. Myers.
tron [Sat, 2 Jan 1999 15:47:55 +0000 (15:47 +0000)]
Remove obsolete header file. Fixes PR bin/6700 by Joseph S. Myers.

26 years agotweaks to pass DESTDIR to subprograms when it is defined in /etc/mk.conf
dbj [Sun, 6 Dec 1998 09:06:45 +0000 (09:06 +0000)]
tweaks to pass DESTDIR to subprograms when it is defined in /etc/mk.conf
but is not in the environment.

26 years agotypo.
pk [Sat, 5 Dec 1998 21:09:23 +0000 (21:09 +0000)]
typo.

26 years agoFix spelling of `Churchill' in 3 places
jwise [Fri, 20 Nov 1998 03:35:31 +0000 (03:35 +0000)]
Fix spelling of `Churchill' in 3 places

26 years agoAdd support for decoding of morse code.
hubertf [Wed, 18 Nov 1998 14:22:32 +0000 (14:22 +0000)]
Add support for decoding of morse code.

26 years agofix usage
hubertf [Wed, 18 Nov 1998 09:06:26 +0000 (09:06 +0000)]
fix usage

26 years agoconstify, per PR 6150 by Joseph Myers <jsm28@cam.ac.uk>
hubertf [Tue, 10 Nov 1998 13:43:30 +0000 (13:43 +0000)]
constify, per PR 6150 by Joseph Myers <jsm28@cam.ac.uk>

26 years agoconstify, per PR 6148
hubertf [Tue, 10 Nov 1998 13:01:31 +0000 (13:01 +0000)]
constify, per PR 6148

26 years agomake objdir-aware
hubertf [Mon, 9 Nov 1998 15:30:10 +0000 (15:30 +0000)]
make objdir-aware

26 years agodon't install in /usr/share if NOSHARE is defined
lukem [Tue, 29 Sep 1998 07:33:20 +0000 (07:33 +0000)]
don't install in /usr/share if NOSHARE is defined