Home | History | Annotate | only in /src/games/cribbage
History log of /src/games/cribbage
RevisionDateAuthorComments
 1.13 06-Feb-2010  he When using -lcurses, you also need -lterminfo.
This fixes the build for sun2, and also builds with LDSTATIC=-static,
since archive libraries don't record inter-library dependencies.
 1.12 13-Feb-1999  lukem convert from NOxxx= to MKxxx=no.
include <bsd.own.mk> if testing a MKxxx variable.
 1.11 29-Sep-1998  lukem don't install in /usr/share if NOSHARE is defined
 1.10 18-Feb-1998  jtc Simply include -lcurses instead of -lcurses -ltermcap
 1.9 05-Feb-1998  christos Use -ltermcap instead of -ltermlib
 1.8 20-Nov-1997  mrg install games that need it setgid.
 1.7 24-Mar-1997  christos branches: 1.7.2;
- Makefile cleanups
 1.6 18-Oct-1996  thorpej Use ${INSTALL}.
 1.5 21-Mar-1995  cgd clean up import
 1.4 22-Dec-1994  cgd specify man pages the new way.
 1.3 01-Aug-1993  mycroft Add RCS identifiers.
 1.2 23-Mar-1993  cgd got rid of unnecessary -lcompat and associated dependency
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.7.2.1 20-Nov-1997  mrg pull up from trunk:
- install games files with the correct permissions.
- install games that need it setgid.
 1.9 12-Aug-2009  dholland sprinkle static
 1.8 02-Jul-2005  jmc KNF and WARNS=3
 1.7 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.6 30-Sep-1999  jsm Fix uses of namespaces reserved by ISO C or POSIX.1.
 1.5 08-Sep-1999  jsm branches: 1.5.2;
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.
 1.4 10-Oct-1997  lukem WARNSify
 1.3 21-Mar-1995  cgd clean up import
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.5.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.27 01-Jun-2023  andvar fix various typos in comments.
 1.26 06-Jan-2023  christos PR/57164: Greywolf: Add -y to cribbage to keep playing without asking
 1.25 13-Oct-2012  dholland Pass -Wstrict-overflow, and while here, don't read from index -1 of
an array.
 1.24 12-Aug-2009  dholland branches: 1.24.6; 1.24.12;
sprinkle static
 1.23 13-Jul-2009  roy Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.22 08-Aug-2008  drochner if initscr() fails, exit with a message rather than crash in the
next curses call
 1.21 20-Jul-2008  lukem Remove the \n and tabs from the __COPYRIGHT() strings.
 1.20 02-Jul-2005  jmc branches: 1.20.20;
KNF and WARNS=3
 1.19 27-Jan-2004  jsm Remove uses of __P.
 1.18 26-Jan-2004  jsm Rename rint to receive_intr to avoid conflict with GCC 3.4 built-in C99
function.
 1.17 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.16 06-Dec-2001  blymn Change deprecated curses function to new equivalent.
 1.15 04-Dec-2001  blymn Replace deprecated curses call with supported equivalent.
 1.14 05-Feb-2001  christos remove redundant decl
 1.13 08-May-2000  mycroft Use setgid(), not setregid().
 1.12 12-Sep-1999  jsm 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.
 1.11 08-Sep-1999  jsm 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.
 1.10 30-Aug-1998  veego Add braces to make the new egcs happy.
 1.9 11-Oct-1997  lukem minor KNFify
 1.8 10-Oct-1997  lukem WARNSify
 1.7 10-Jul-1997  mikel make explicit comparisons to NULL, s/rindex/strrchr/
 1.6 09-Jul-1997  phil Clean up play, let player see play more often, improve display timing.
Preliminary work from PR 2055 (as reverse patches).
 1.5 21-Mar-1995  cgd clean up import
 1.4 28-Feb-1995  jtc change <sys/signal.h> to <signal.h>
 1.3 01-Aug-1993  mycroft Add RCS identifiers.
 1.2 18-Apr-1993  mycroft Cleanup for GCC 2.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.20.20.1 18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.24.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.24.6.1 30-Oct-2012  yamt sync with head
 1.12 06-Jan-2023  christos PR/57164: Greywolf: Add -y to cribbage to keep playing without asking
 1.11 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.10 30-Sep-2002  wiz n-dashes are even better here. Noted by Robert Elz.
 1.9 26-Sep-2002  wiz Lots of minor fixes resulting from reading these man pages in detail.
 1.8 26-Sep-2002  wiz New sentences begin on new lines.
Patch from Richard Elz, slightly improved by yours truly.
 1.7 02-Apr-2001  wiz Whitespace and/or punctuation fixes.
 1.6 01-Oct-1999  jsm Add more files to FILES section of cribbage.6.
 1.5 10-Oct-1997  lukem branches: 1.5.6;
WARNSify
 1.4 21-Mar-1995  cgd clean up import
 1.3 05-Aug-1993  jtc Update to -mandoc macros, fix typos.
 1.2 01-Aug-1993  mycroft Add RCS indentifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.5.6.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.18 06-Jan-2023  ryoon Define yes as extern veriable to fix build

PR bin/57164 is insufficient.
 1.17 13-Oct-2012  dholland Pass -Wstrict-overflow, and while here, don't read from index -1 of
an array.
 1.16 26-Aug-2011  dholland branches: 1.16.2; 1.16.8;
Use __dead and __printflike instead of __attribute__.
 1.15 12-Aug-2009  dholland sprinkle static
 1.14 13-Jul-2009  roy Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.13 02-Jul-2005  jmc KNF and WARNS=3
 1.12 08-Feb-2004  jsm Mark unused parameters, nonreturning functions and format functions in
the few cases not already marked.
 1.11 27-Jan-2004  jsm Remove uses of __P.
 1.10 26-Jan-2004  jsm Rename rint to receive_intr to avoid conflict with GCC 3.4 built-in C99
function.
 1.9 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.8 06-Dec-2002  thorpej Avoid confict with reserved identifier "expl".
 1.7 30-Sep-1999  jsm branches: 1.7.8;
Fix uses of namespaces reserved by ISO C or POSIX.1.
 1.6 10-Sep-1999  jsm branches: 1.6.2;
Fix glitch in const changes (bin/8365 from John.P.Darrow@wheaton.edu).
 1.5 08-Sep-1999  jsm 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.
 1.4 13-Sep-1998  hubertf mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)
 1.3 21-Mar-1995  cgd clean up import
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.6.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.7.8.1 23-Jul-2004  tron Apply patch (requested by dbj in ticket 1724):
Fix problems when building the netbsd-1-6 branch with GCC 3.3.3.
 1.16.8.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.16.2.1 30-Oct-2012  yamt sync with head
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.4 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.3 21-Mar-1995  cgd clean up import
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.5 02-Jul-2005  jmc KNF and WARNS=3
 1.4 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.3 21-Mar-1995  cgd clean up import
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8 06-Jan-2023  christos PR/57164: Greywolf: Add -y to cribbage to keep playing without asking
 1.7 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.6 06-Dec-2002  thorpej Avoid confict with reserved identifier "expl".
 1.5 19-Sep-1999  jsm branches: 1.5.10;
Define variables as BOOLEAN, not bool, where the extern declarations
already use BOOLEAN.
 1.4 10-Oct-1997  lukem WARNSify
 1.3 21-Mar-1995  cgd clean up import
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.5.10.1 23-Jul-2004  tron Apply patch (requested by dbj in ticket 1724):
Fix problems when building the netbsd-1-6 branch with GCC 3.3.3.
 1.14 01-Sep-2011  plunky reinstate NULL cast by request, where the NULL was being passed as a vararg
 1.13 31-Aug-2011  plunky NULL does not need a cast
 1.12 02-Jul-2005  jmc KNF and WARNS=3
 1.11 15-Feb-2005  jsm Cast last argument of execl to (char *).

Reviewed by <hubertf>.
 1.10 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.9 09-Nov-1999  drochner 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.
 1.8 13-Sep-1999  jsm branches: 1.8.4;
Make cribbage use the POSIX.2 pager behaviour.
 1.7 11-Oct-1997  lukem minor KNFify
 1.6 10-Oct-1997  lukem WARNSify
 1.5 10-Jul-1997  mikel make explicit comparisons to NULL, s/rindex/strrchr/
 1.4 06-Feb-1996  jtc Removed "extern int errno"; Added #include <errno.h> if not already present.
 1.3 21-Mar-1995  cgd clean up import
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8.4.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.27 13-Oct-2012  dholland Pass -Wstrict-overflow, and while here, don't read from index -1 of
an array.
 1.26 23-May-2011  joerg branches: 1.26.4; 1.26.10;
Don't use variables as format strings.
 1.25 23-May-2011  joerg ANSIfy
 1.24 12-Aug-2009  dholland sprinkle static
 1.23 13-Jul-2009  roy Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
 1.22 04-Jun-2009  dholland sprintf -> snprintf
 1.21 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.20 02-Jul-2005  jmc branches: 1.20.10;
KNF and WARNS=3
 1.19 19-Apr-2005  rillig Fixed wrong use of datatypes. In wait_for(), a char was used together
with getchar(), in readchar(), a char was used to read input, which in
getuchar() is used as an argument to islower() and toupper(). Also removed
a condition which terminated the process if the user typed in character
255. Approved by christos.
 1.18 05-Nov-2004  dsl Add (unsigned char) cast to ctype functions
 1.17 26-Jan-2004  jsm Rename rint to receive_intr to avoid conflict with GCC 3.4 built-in C99
function.
 1.16 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.15 26-May-2002  wiz __STDC__ is always defined on NetBSD.
 1.14 30-Sep-1999  jsm Fix uses of namespaces reserved by ISO C or POSIX.1.
 1.13 18-Sep-1999  jsm branches: 1.13.2;
Fix -Wsign-compare warnings.
 1.12 08-Sep-1999  jsm 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).
 1.11 08-Sep-1999  jsm 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.
 1.10 10-Oct-1997  lukem WARNSify
 1.9 09-Jul-1997  phil Clean up play, let player see play more often, improve display timing.
Preliminary work from PR 2055 (as reverse patches).
 1.8 17-May-1997  pk NULL => 0 (Arne Juul; PR#3629)
 1.7 21-Mar-1995  cgd clean up import
 1.6 08-Dec-1993  mycroft Eliminate two compiler warnings.
 1.5 10-Aug-1993  mycroft #include <termios.h>.
 1.4 01-Aug-1993  mycroft Add RCS identifiers.
 1.3 19-Apr-1993  mycroft Fix bug I introduced.
 1.2 18-Apr-1993  mycroft Cleanup for GCC 2.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.13.2.1 27-Dec-1999  wrstuden Pull up to last week's -current.
 1.20.10.1 09-Jan-2008  matt sync with HEAD
 1.26.10.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.26.4.1 30-Oct-2012  yamt sync with head
 1.4 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.3 21-Mar-1995  cgd clean up import
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.18 02-May-2021  rillig games: remove trailing whitespace in *.c and *.h
 1.17 03-Feb-2019  mrg - enlarge buffer to avoid snprintf() truncation
 1.16 13-Oct-2012  dholland branches: 1.16.30;
Pass -Wstrict-overflow, and while here, don't read from index -1 of
an array.
 1.15 12-Aug-2009  dholland branches: 1.15.6; 1.15.12;
sprinkle static
 1.14 04-Jun-2009  dholland sprintf -> snprintf
 1.13 15-Dec-2007  perry convert __attribute__s to applicable cdefs.h macros
 1.12 16-Sep-2007  ragge __attribute -> __attribute__
 1.11 02-Jul-2005  jmc branches: 1.11.10;
KNF and WARNS=3
 1.10 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.9 06-Dec-2002  thorpej Avoid confict with reserved identifier "expl".
 1.8 08-Sep-1999  jsm branches: 1.8.10;
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).
 1.7 08-Sep-1999  jsm 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.
 1.6 30-Aug-1998  veego Add braces to make the new egcs happy.
 1.5 10-Oct-1997  lukem WARNSify
 1.4 17-May-1997  pk NULL => 0 (Arne Juul; PR#3629)
 1.3 21-Mar-1995  cgd clean up import
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.8.10.1 23-Jul-2004  tron Apply patch (requested by dbj in ticket 1724):
Fix problems when building the netbsd-1-6 branch with GCC 3.3.3.
 1.11.10.2 09-Jan-2008  matt sync with HEAD
 1.11.10.1 06-Nov-2007  matt sync with HEAD
 1.15.12.1 20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.15.6.1 30-Oct-2012  yamt sync with head
 1.16.30.1 10-Jun-2019  christos Sync with HEAD
 1.14 12-Aug-2009  dholland sprinkle static
 1.13 04-Jun-2009  dholland sprintf -> snprintf
 1.12 20-Mar-2006  rtr remove duplicate #include <stdlib.h>
 1.11 19-Mar-2006  he Now that we use exit(2), we need to include <stdlib.h> for its definition.
 1.10 19-Mar-2006  christos include <stdlib.h> to get a prototype for exit
 1.9 18-Mar-2006  christos Coverity CID 1295: Don't allow cchose to return a negative number. It is
used as an index.
 1.8 02-Jul-2005  jmc KNF and WARNS=3
 1.7 07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22269, verified by myself.
 1.6 06-Dec-2002  thorpej Avoid confict with reserved identifier "expl".
 1.5 08-Sep-1999  jsm branches: 1.5.10;
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.
 1.4 10-Oct-1997  lukem WARNSify
 1.3 21-Mar-1995  cgd clean up import
 1.2 01-Aug-1993  mycroft Add RCS identifiers.
 1.1 21-Mar-1993  cgd branches: 1.1.1;
Initial revision
 1.1.1.2 21-Mar-1995  cgd from Lite
 1.1.1.1 21-Mar-1993  cgd initial import of 386bsd-0.1 sources
 1.5.10.1 23-Jul-2004  tron Apply patch (requested by dbj in ticket 1724):
Fix problems when building the netbsd-1-6 branch with GCC 3.3.3.

RSS XML Feed