summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add two .Els that nroff was complaining to miss.hubertf1999-07-171-1/+3
|
* This patch (a) makes arithmetic(6) revoke any setgid privileges it gothubertf1999-07-171-3/+6
| | | | | from dm; (b) marks an unused parameter as such. Submitted in PR 8014 by Joseph Myers <jsm28@cam.ac.uk>
* This patch cleans up the handling of the variable `saved' inhubertf1999-07-164-11/+14
| | | | | | | | | | | | | | | | | | | | | 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>
* Const poisoning.hubertf1999-07-141-10/+10
| | | Patch submitted in PR 7993 by Joseph Myers <jsm28@cam.ac.uk>
* This patch fixes a -Wcast-qual warning in wump(6).hubertf1999-07-141-3/+3
| | | Submitted in 7994 by Joseph Myers <jsm28@cam.ac.uk>
* Fix scoring, submitted in PR 7992 by Joseph Myers <jsm28@cam.ac.uk>hubertf1999-07-141-8/+7
|
* From PR 7987 by Joseph Myers <jsm28@cam.ac.uk>:hubertf1999-07-146-26/+26
| | | | More battlestar(6) spelling and punctuation fixes for battlestar(6). These ones come from OpenBSD.
* This patch makes fish(6) honour PAGER for viewing the instructions.hubertf1999-07-141-6/+18
| | | | | | | | 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>
* From PR 7988 by Joseph Myers <jsm28@cam.ac.uk>: use the symbolichubertf1999-07-141-5/+5
| | | | name SEEK_SET for values which end up as the third argument of fseek(), rather than a hard-coded 0.
* From PR 7985 by Joseph Myers <jsm28@cam.ac.uk>:hubertf1999-07-141-2/+5
| | | | | 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.
* man page rewritten into -mandoc by dholland@eecs.harvard.edu; from PR7861sommerfeld1999-06-271-350/+237
|
* Fixi uninit vars warnings.christos1999-05-161-3/+3
|
* Add missing prototypeschristos1999-05-163-8/+20
|
* Add -A for automatic playing mode.christos1999-05-1510-62/+531
| | | Make the score file MI
* Fix Y2K buffer overflow (from OpenBSD).kristerw1999-04-251-8/+4
|
* Buffer overflow fix (from OpenBSD)kristerw1999-04-241-3/+3
|
* initscr() returns a pointer, compare return value with NULL and notsimonb1999-04-182-6/+6
| | | | an int. Compatible with other versions of curses.
* Don't frob the interals of a WINDOW*, use the mvinch() macro.simonb1999-04-181-7/+3
|
* change:cgd1999-04-061-2/+2
| | | | | | | | .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).
* s/SETUIDGAME/SETGIDGAME/ - catch up with the rest of the world.abs1999-04-051-2/+2
|
* defined(attron) does not mean there is a <term.h>mrg1999-03-294-23/+8
|
* Fix object recognition, per PR 6048 by Joseph S. Myers <jsm28@cam.ac.uk>.hubertf1999-03-251-2/+32
|
* More and more .Os cleanups. .Os is defined in the tmac.doc-common file,garbled1999-03-226-12/+12
| | | | so we shouldn't override it with versions in the manpages. Many more to come.
* Newline and usage cosmetics from Soren S. Jorvang <soren@t.dk> PR7205abs1999-03-221-4/+4
|
* set MKLINT=no. noted by NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp>lukem1999-03-131-2/+3
|
* Fix .Bl/.El imbalance.erh1999-03-104-4/+8
|
* remove NOPROG (nothing uses it). however, set MKOBJ=no if appropriatelukem1999-02-131-6/+4
|
* convert from NOxxx= to MKxxx=no.lukem1999-02-1321-43/+61
| | | include <bsd.own.mk> if testing a MKxxx variable.
* Remove unneeded "mips compiler bug" workaround from original code importedsimonb1999-02-111-5/+1
| | | in 1994.
* tgetent() handles const correctly in currenthubertf1999-02-101-3/+3
|
* Add __attribute__() to a variable. From PR 6557, after discussion withhubertf1999-02-101-3/+3
| | | Joseph S. Myers <jsm28@cam.ac.uk>
* The patch below makes the game backgammon(6) use `const' wherehubertf1999-02-1016-195/+162
| | | | | | | | | | | | | | 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).
* Only invoke pager given in $PAGER if output goes to a tty, feed pagerhubertf1999-02-101-9/+28
| | | via stdin, per PR 6699 by Joseph Myers <jsm28@cam.ac.uk>
* Const poisoning, per PR 6660 by Joseph Myers <jsm28@cam.ac.uk>hubertf1999-02-1012-69/+69
|
* The game sail(6) has a function Write() which is used both withhubertf1999-02-1016-123/+141
| | | | | | | | | | | | 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>.
* The patch below does some minor cleanup of adventure(6): an additionalhubertf1999-02-103-12/+15
| | | | | | | | | | | 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>
* The game adventure(6) handles EOF on standard input ratherhubertf1999-02-103-16/+30
| | | | | | ungracefully. The patch, derived from OpenBSD, improves this handling. Sent in in PR 6556 by Joseph Myers <jsm28@cam.ac.uk>.
* only show preview if the -p option is givenhubertf1999-01-034-16/+16
|
* document morse's decode option -dhubertf1999-01-031-2/+2
|
* Add previewing of next shape. Old (previous) behaviour can behubertf1999-01-036-27/+62
| | | restored by compiling with NO_PREVIEW defined.
* Remove obsolete header file. Fixes PR bin/6700 by Joseph S. Myers.tron1999-01-021-56/+0
|
* tweaks to pass DESTDIR to subprograms when it is defined in /etc/mk.confdbj1998-12-062-4/+6
| | | but is not in the environment.
* typo.pk1998-12-051-1/+1
|
* Fix spelling of `Churchill' in 3 placesjwise1998-11-202-3/+3
|
* Add support for decoding of morse code.hubertf1998-11-182-16/+115
|
* fix usagehubertf1998-11-181-3/+3
|
* constify, per PR 6150 by Joseph Myers <jsm28@cam.ac.uk>hubertf1998-11-107-93/+96
|
* constify, per PR 6148hubertf1998-11-1020-176/+181
|
* make objdir-awarehubertf1998-11-091-5/+5
|
* don't install in /usr/share if NOSHARE is definedlukem1998-09-2910-13/+34
|