#
1.30 |
|
23-Oct-2021 |
mestre |
if both stdout and stderr are redirected to a non-tty, pledge(2) will kill ncurses applications, e.g.:
/usr/games/worms 2>&1 | cat
solve this by only calling pledge(2) after initscr(3) is set and done, or whatever function that calls it. since pledge(2) is called later now the promises might be reduced, but this a diff for another day.
found by naddy@ almost a year ago, discussed with him deraadt@ and tb@ ok tb@
|
Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
|
#
1.29 |
|
06-Aug-2018 |
mestre |
Drop "rpath" from pledge(2) after ncurses initialization.
Discussed with and OK tb@ OK cheloha@ on previous version
|
Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
|
#
1.28 |
|
05-Mar-2016 |
tb |
KNF: wrap three overly long lines. No binary change.
|
#
1.27 |
|
04-Mar-2016 |
mestre |
- Convert atoi(3) to strtonum(3) - Replace hardcoded program string by getprogname(3) - Remove '?' from getopt(3)'s switch default case (but still keep 'h')
OK tb@ after his suggestions
|
#
1.26 |
|
27-Feb-2016 |
tb |
Untangle a mess of nested ternary operators.
ok mestre@
|
Revision tags: OPENBSD_5_9_BASE
|
#
1.25 |
|
07-Jan-2016 |
tb |
Some basic code maintenance in games/
- in main() replace exit with return - drop some /* NOTREACHED */ lint comments along the way. - make more use of standard CFLAGS, esp. -Wimplicit-function-declaration - add and sort some headers when needed - add straightforward pledges to some programs used at compile time
discussed with and ok mestre@
|
#
1.24 |
|
04-Jan-2016 |
mestre |
More cleanup and sorting on header section
OK tb@ and he also pointed out that for consistency with rest of the tree we should include termios.h instead of sys/ttydefaults.h, where applicable
|
#
1.23 |
|
21-Nov-2015 |
deraadt |
pledge the wyrms
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.22 |
|
18-Feb-2015 |
tedu |
don't cast function arguments; use reallocarray in one place
|
Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.21 |
|
29-Aug-2013 |
naddy |
replace srandomdev()+random() with the arc4random*() family tweaks and ok millert@, ok deraadt@
|
Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
|
#
1.20 |
|
25-Apr-2011 |
millert |
Fix "-d delay" option and convert to use strtonum() OK martynas@ a while ago.
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
|
#
1.19 |
|
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_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.18 |
|
02-Sep-2007 |
deraadt |
use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg
|
Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
|
#
1.17 |
|
29-Nov-2004 |
jsg |
ansi. ok deraadt@
|
Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE
|
#
1.16 |
|
08-Jan-2004 |
millert |
Adjust delay based on terminal speed; ok tedu@
|
Revision tags: OPENBSD_3_4_BASE
|
#
1.15 |
|
03-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
Revision tags: OPENBSD_3_3_BASE
|
#
1.14 |
|
06-Dec-2002 |
millert |
Replace things like srandom(time(NULL)) with srandomdev(3). random(3) good enough for games but we should at least use a decent seed. pjanzen@ OK
|
Revision tags: OPENBSD_3_2_BASE
|
#
1.13 |
|
31-May-2002 |
pjanzen |
de-register
|
#
1.12 |
|
31-May-2002 |
pjanzen |
No dm -> no need to revoke setegid.
|
Revision tags: OPENBSD_3_1_BASE
|
#
1.11 |
|
16-Feb-2002 |
millert |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
|
#
1.10 |
|
25-Jan-2000 |
pjanzen |
use only non-deprecated curses (i.e., no termcap) and tidy a little; mostly from jsm@netbsd.org
|
#
1.9 |
|
29-Oct-1999 |
pjanzen |
srandom() for variety.
|
Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
|
#
1.8 |
|
19-Aug-1998 |
pjanzen |
tags, formatting, ANSI-fication, prototypes, de-typos, and the occasional initialization, removal of unused variable, or other minor fix. Most changes are from or inspired by NetBSD.
|
Revision tags: OPENBSD_2_3_BASE
|
#
1.7 |
|
12-Mar-1998 |
pjanzen |
OpenBSD ID (changed from NetBSD)
|
#
1.6 |
|
14-Feb-1998 |
deraadt |
further fixes from pjanzen@foatdi.harvard.edu
|
Revision tags: OPENBSD_2_2_BASE
|
#
1.5 |
|
23-Jul-1997 |
kstailey |
tabify
|
Revision tags: OPENBSD_2_1_BASE
|
#
1.4 |
|
15-Jan-1997 |
millert |
getopt(3) returns -1 when out of args, not EOF, whee!
|
#
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.29 |
|
06-Aug-2018 |
mestre |
Drop "rpath" from pledge(2) after ncurses initialization.
Discussed with and OK tb@ OK cheloha@ on previous version
|
Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
|
#
1.28 |
|
05-Mar-2016 |
tb |
KNF: wrap three overly long lines. No binary change.
|
#
1.27 |
|
04-Mar-2016 |
mestre |
- Convert atoi(3) to strtonum(3) - Replace hardcoded program string by getprogname(3) - Remove '?' from getopt(3)'s switch default case (but still keep 'h')
OK tb@ after his suggestions
|
#
1.26 |
|
27-Feb-2016 |
tb |
Untangle a mess of nested ternary operators.
ok mestre@
|
Revision tags: OPENBSD_5_9_BASE
|
#
1.25 |
|
07-Jan-2016 |
tb |
Some basic code maintenance in games/
- in main() replace exit with return - drop some /* NOTREACHED */ lint comments along the way. - make more use of standard CFLAGS, esp. -Wimplicit-function-declaration - add and sort some headers when needed - add straightforward pledges to some programs used at compile time
discussed with and ok mestre@
|
#
1.24 |
|
04-Jan-2016 |
mestre |
More cleanup and sorting on header section
OK tb@ and he also pointed out that for consistency with rest of the tree we should include termios.h instead of sys/ttydefaults.h, where applicable
|
#
1.23 |
|
21-Nov-2015 |
deraadt |
pledge the wyrms
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.22 |
|
18-Feb-2015 |
tedu |
don't cast function arguments; use reallocarray in one place
|
Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.21 |
|
29-Aug-2013 |
naddy |
replace srandomdev()+random() with the arc4random*() family tweaks and ok millert@, ok deraadt@
|
Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
|
#
1.20 |
|
25-Apr-2011 |
millert |
Fix "-d delay" option and convert to use strtonum() OK martynas@ a while ago.
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
|
#
1.19 |
|
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_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.18 |
|
02-Sep-2007 |
deraadt |
use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg
|
Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
|
#
1.17 |
|
29-Nov-2004 |
jsg |
ansi. ok deraadt@
|
Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE
|
#
1.16 |
|
08-Jan-2004 |
millert |
Adjust delay based on terminal speed; ok tedu@
|
Revision tags: OPENBSD_3_4_BASE
|
#
1.15 |
|
03-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
Revision tags: OPENBSD_3_3_BASE
|
#
1.14 |
|
06-Dec-2002 |
millert |
Replace things like srandom(time(NULL)) with srandomdev(3). random(3) good enough for games but we should at least use a decent seed. pjanzen@ OK
|
Revision tags: OPENBSD_3_2_BASE
|
#
1.13 |
|
31-May-2002 |
pjanzen |
de-register
|
#
1.12 |
|
31-May-2002 |
pjanzen |
No dm -> no need to revoke setegid.
|
Revision tags: OPENBSD_3_1_BASE
|
#
1.11 |
|
16-Feb-2002 |
millert |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
|
#
1.10 |
|
25-Jan-2000 |
pjanzen |
use only non-deprecated curses (i.e., no termcap) and tidy a little; mostly from jsm@netbsd.org
|
#
1.9 |
|
29-Oct-1999 |
pjanzen |
srandom() for variety.
|
Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
|
#
1.8 |
|
19-Aug-1998 |
pjanzen |
tags, formatting, ANSI-fication, prototypes, de-typos, and the occasional initialization, removal of unused variable, or other minor fix. Most changes are from or inspired by NetBSD.
|
Revision tags: OPENBSD_2_3_BASE
|
#
1.7 |
|
12-Mar-1998 |
pjanzen |
OpenBSD ID (changed from NetBSD)
|
#
1.6 |
|
14-Feb-1998 |
deraadt |
further fixes from pjanzen@foatdi.harvard.edu
|
Revision tags: OPENBSD_2_2_BASE
|
#
1.5 |
|
23-Jul-1997 |
kstailey |
tabify
|
Revision tags: OPENBSD_2_1_BASE
|
#
1.4 |
|
15-Jan-1997 |
millert |
getopt(3) returns -1 when out of args, not EOF, whee!
|
#
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_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.28 |
|
05-Mar-2016 |
tb |
KNF: wrap three overly long lines. No binary change.
|
#
1.27 |
|
04-Mar-2016 |
mestre |
- Convert atoi(3) to strtonum(3) - Replace hardcoded program string by getprogname(3) - Remove '?' from getopt(3)'s switch default case (but still keep 'h')
OK tb@ after his suggestions
|
#
1.26 |
|
27-Feb-2016 |
tb |
Untangle a mess of nested ternary operators.
ok mestre@
|
Revision tags: OPENBSD_5_9_BASE
|
#
1.25 |
|
07-Jan-2016 |
tb |
Some basic code maintenance in games/
- in main() replace exit with return - drop some /* NOTREACHED */ lint comments along the way. - make more use of standard CFLAGS, esp. -Wimplicit-function-declaration - add and sort some headers when needed - add straightforward pledges to some programs used at compile time
discussed with and ok mestre@
|
#
1.24 |
|
04-Jan-2016 |
mestre |
More cleanup and sorting on header section
OK tb@ and he also pointed out that for consistency with rest of the tree we should include termios.h instead of sys/ttydefaults.h, where applicable
|
#
1.23 |
|
21-Nov-2015 |
deraadt |
pledge the wyrms
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.22 |
|
18-Feb-2015 |
tedu |
don't cast function arguments; use reallocarray in one place
|
Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.21 |
|
29-Aug-2013 |
naddy |
replace srandomdev()+random() with the arc4random*() family tweaks and ok millert@, ok deraadt@
|
Revision tags: OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE
|
#
1.20 |
|
25-Apr-2011 |
millert |
Fix "-d delay" option and convert to use strtonum() OK martynas@ a while ago.
|
Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE
|
#
1.19 |
|
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_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
|
#
1.18 |
|
02-Sep-2007 |
deraadt |
use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg
|
Revision tags: OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE
|
#
1.17 |
|
29-Nov-2004 |
jsg |
ansi. ok deraadt@
|
Revision tags: OPENBSD_3_5_BASE OPENBSD_3_6_BASE
|
#
1.16 |
|
08-Jan-2004 |
millert |
Adjust delay based on terminal speed; ok tedu@
|
Revision tags: OPENBSD_3_4_BASE
|
#
1.15 |
|
03-Jun-2003 |
millert |
Remove the advertising clause in the UCB license which Berkeley rescinded 22 July 1999. Proofed by myself and Theo.
|
Revision tags: OPENBSD_3_3_BASE
|
#
1.14 |
|
06-Dec-2002 |
millert |
Replace things like srandom(time(NULL)) with srandomdev(3). random(3) good enough for games but we should at least use a decent seed. pjanzen@ OK
|
Revision tags: OPENBSD_3_2_BASE
|
#
1.13 |
|
31-May-2002 |
pjanzen |
de-register
|
#
1.12 |
|
31-May-2002 |
pjanzen |
No dm -> no need to revoke setegid.
|
Revision tags: OPENBSD_3_1_BASE
|
#
1.11 |
|
16-Feb-2002 |
millert |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
|
Revision tags: OPENBSD_2_7_BASE OPENBSD_2_8_BASE OPENBSD_2_9_BASE OPENBSD_3_0_BASE
|
#
1.10 |
|
25-Jan-2000 |
pjanzen |
use only non-deprecated curses (i.e., no termcap) and tidy a little; mostly from jsm@netbsd.org
|
#
1.9 |
|
29-Oct-1999 |
pjanzen |
srandom() for variety.
|
Revision tags: OPENBSD_2_4_BASE OPENBSD_2_5_BASE OPENBSD_2_6_BASE
|
#
1.8 |
|
19-Aug-1998 |
pjanzen |
tags, formatting, ANSI-fication, prototypes, de-typos, and the occasional initialization, removal of unused variable, or other minor fix. Most changes are from or inspired by NetBSD.
|
Revision tags: OPENBSD_2_3_BASE
|
#
1.7 |
|
12-Mar-1998 |
pjanzen |
OpenBSD ID (changed from NetBSD)
|
#
1.6 |
|
14-Feb-1998 |
deraadt |
further fixes from pjanzen@foatdi.harvard.edu
|
Revision tags: OPENBSD_2_2_BASE
|
#
1.5 |
|
23-Jul-1997 |
kstailey |
tabify
|
Revision tags: OPENBSD_2_1_BASE
|
#
1.4 |
|
15-Jan-1997 |
millert |
getopt(3) returns -1 when out of args, not EOF, whee!
|
#
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
|