History log of /openbsd-current/games/backgammon/teachgammon/teach.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.20 23-Oct-2021 mestre

missed in previous commit

this was ok tb@


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.19 06-Feb-2021 mestre

while learning (teachgammon(1)) you might want to save your game so "{w,c}path"
pledge(2) permissions are required


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.18 21-Jan-2017 krw

Nuke whitespace foolish enough to expose itself during the great
"warning:" rectification.


# 1.17 20-Jan-2017 krw

Mark functions that do not return as __dead to quiet gcc warnings.

ok beck@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.16 02-Dec-2015 tb

Drop the argument passing between backgammon and teachgammon.
It's broken. Instead, make -d imply -n. You're supposed to
know the rules before you start tweaking them.

Issue reported by and ok pjanzen@
Patient help with the manual jmc@


# 1.15 30-Nov-2015 tb

Pledge for backgammon and teachgammon.

Both are straightforward "stdio rpath tty" programs; teachgammon
exec's backgammon at the end, so give it "exec" in addition.

While there, ANSIfy


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.14 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.13 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# 1.12 12-May-2003 pjanzen

From NetBSD: don't need to declare ospeed.


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.11 31-May-2002 pjanzen

No dm -> no need to revoke setegid.


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE
# 1.10 09-Jul-2001 deraadt

correct type on last arg to execl(); nordin@cse.ogi.edu


# 1.9 23-Jun-2001 pjanzen

termios -> curses


Revision tags: OPENBSD_2_9_BASE
# 1.8 08-Mar-2001 deraadt

whack exit(-#)


# 1.7 18-Feb-2001 pjanzen

Get this not to segfault on startup on alpha.


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE
# 1.6 31-Jul-1999 pjanzen

use const where appropriate (jsm28@cam.ac.uk). Also some very minor tidying.


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.5 29-Aug-1998 pjanzen

use names rather than numbers in signals, errors, etc; NetBSD PR6058; jsm28@cam.ac.uk


Revision tags: OPENBSD_2_3_BASE
# 1.4 19-Mar-1998 pjanzen

NetBSD changes and further improvements and corrections


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE
# 1.3 22-Dec-1996 deraadt

proper gid revoke


# 1.2 19-Dec-1996 deraadt

setgid games, not setuid games. closes a neat set of holes


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


# 1.19 06-Feb-2021 mestre

while learning (teachgammon(1)) you might want to save your game so "{w,c}path"
pledge(2) permissions are required


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.18 21-Jan-2017 krw

Nuke whitespace foolish enough to expose itself during the great
"warning:" rectification.


# 1.17 20-Jan-2017 krw

Mark functions that do not return as __dead to quiet gcc warnings.

ok beck@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.16 02-Dec-2015 tb

Drop the argument passing between backgammon and teachgammon.
It's broken. Instead, make -d imply -n. You're supposed to
know the rules before you start tweaking them.

Issue reported by and ok pjanzen@
Patient help with the manual jmc@


# 1.15 30-Nov-2015 tb

Pledge for backgammon and teachgammon.

Both are straightforward "stdio rpath tty" programs; teachgammon
exec's backgammon at the end, so give it "exec" in addition.

While there, ANSIfy


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.14 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.13 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# 1.12 12-May-2003 pjanzen

From NetBSD: don't need to declare ospeed.


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.11 31-May-2002 pjanzen

No dm -> no need to revoke setegid.


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE
# 1.10 09-Jul-2001 deraadt

correct type on last arg to execl(); nordin@cse.ogi.edu


# 1.9 23-Jun-2001 pjanzen

termios -> curses


Revision tags: OPENBSD_2_9_BASE
# 1.8 08-Mar-2001 deraadt

whack exit(-#)


# 1.7 18-Feb-2001 pjanzen

Get this not to segfault on startup on alpha.


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE
# 1.6 31-Jul-1999 pjanzen

use const where appropriate (jsm28@cam.ac.uk). Also some very minor tidying.


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.5 29-Aug-1998 pjanzen

use names rather than numbers in signals, errors, etc; NetBSD PR6058; jsm28@cam.ac.uk


Revision tags: OPENBSD_2_3_BASE
# 1.4 19-Mar-1998 pjanzen

NetBSD changes and further improvements and corrections


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE
# 1.3 22-Dec-1996 deraadt

proper gid revoke


# 1.2 19-Dec-1996 deraadt

setgid games, not setuid games. closes a neat set of holes


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.18 21-Jan-2017 krw

Nuke whitespace foolish enough to expose itself during the great
"warning:" rectification.


# 1.17 20-Jan-2017 krw

Mark functions that do not return as __dead to quiet gcc warnings.

ok beck@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.16 02-Dec-2015 tb

Drop the argument passing between backgammon and teachgammon.
It's broken. Instead, make -d imply -n. You're supposed to
know the rules before you start tweaking them.

Issue reported by and ok pjanzen@
Patient help with the manual jmc@


# 1.15 30-Nov-2015 tb

Pledge for backgammon and teachgammon.

Both are straightforward "stdio rpath tty" programs; teachgammon
exec's backgammon at the end, so give it "exec" in addition.

While there, ANSIfy


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.14 27-Oct-2009 deraadt

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms


Revision tags: OPENBSD_3_4_BASE OPENBSD_3_5_BASE OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.13 03-Jun-2003 millert

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# 1.12 12-May-2003 pjanzen

From NetBSD: don't need to declare ospeed.


Revision tags: OPENBSD_3_2_BASE OPENBSD_3_3_BASE
# 1.11 31-May-2002 pjanzen

No dm -> no need to revoke setegid.


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE
# 1.10 09-Jul-2001 deraadt

correct type on last arg to execl(); nordin@cse.ogi.edu


# 1.9 23-Jun-2001 pjanzen

termios -> curses


Revision tags: OPENBSD_2_9_BASE
# 1.8 08-Mar-2001 deraadt

whack exit(-#)


# 1.7 18-Feb-2001 pjanzen

Get this not to segfault on startup on alpha.


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE
# 1.6 31-Jul-1999 pjanzen

use const where appropriate (jsm28@cam.ac.uk). Also some very minor tidying.


Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE
# 1.5 29-Aug-1998 pjanzen

use names rather than numbers in signals, errors, etc; NetBSD PR6058; jsm28@cam.ac.uk


Revision tags: OPENBSD_2_3_BASE
# 1.4 19-Mar-1998 pjanzen

NetBSD changes and further improvements and corrections


Revision tags: OPENBSD_2_1_BASE OPENBSD_2_2_BASE
# 1.3 22-Dec-1996 deraadt

proper gid revoke


# 1.2 19-Dec-1996 deraadt

setgid games, not setuid games. closes a neat set of holes


# 1.1 18-Oct-1995 deraadt

branches: 1.1.1;
Initial revision