summaryrefslogtreecommitdiff
path: root/games/atc
AgeCommit message (Collapse)Author
2015-11-29adjust width list: Ds is unfortunate here;Jason McIntyre
2015-11-29Add pledge support and move score file to $HOME.tb
For high score entries use the same logic as in snake(6) and tetris(6): Try LOGNAME then USER then getlogin(2) and fall back to ???. For variety, atc(6) uses flock(2), so add a "flock" promise to the usual "stdio rpath rpath cpath tty" for games.
2015-11-25Remove operations that "touch" scorefiles at install time.Theo de Raadt
2015-11-24In 1995, all of the games were setuid games. At end of 1996, I took them allTheo de Raadt
to setgid games, and we started wittling them down. Nearly 10 years later I am removing all setgid from the games. If any of these have score files they are now broken, and I hope various folk repair them. I have argued for years (and received pushback...) that the score file features must be removed, or rewritten to use private files, because setgid is the wrong tool. ok tedu
2015-11-20Convert hand-rolled option parsing to getopt(3).tb
ok deraadt@
2015-11-04replace setbuf with setvbuf, from Frederic NowakTed Unangst
2015-08-22remove malloc/calloc/realloc* casts, due to stdlib.h being present; ok ↵Theo de Raadt
millert krw
2015-02-18convert calloc/realloc pairs to reallocarrayTed Unangst
2014-12-09Do not memorialize cheaters in the high score file.Theo de Raadt
from pjanzen
2014-12-08For now, these games still contain deterministic randomization (forTheo de Raadt
save / replay modes of operation that have not yet been cleaned up). OK, I've let the cat out of the bag, now some of you know you can cheat at them.. ok millert guenther tedu
2014-11-30Even though not callable, "Ed" is a macro name, so for clarity,Ingo Schwarze
escape it when it appears on a macro line.
2014-11-16Eliminate pointless use of <sys/param.h>, <sys/file.h>, <sys/sockio.h>,Philip Guenther
and <sys/ttydefaults.h> Replace MAXPATHLEN with PATH_MAX and MAXLOGNAME with LOGIN_NAME_MAX Pull in <limits.h> where needed Prefer sizeof(var) over MAXFOO or FOO_MAX ok deraadt@
2014-09-08obvious cases of missing .An;Ingo Schwarze
found with the new mandoc(1) MANDOCERR_AN_MISSING warning; no text changes
2014-07-13if not seeded explicitly, use arc4random instead. ok deraadtTed Unangst
2014-07-13long live BSD, SYSV is dead!Ted Unangst
2013-10-25start_time should be time_t, not int since it holds the reasult ofTodd C. Miller
time(0). OK guenther@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
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
2009-06-01Don't assume there will be a newline after calling fgets.Ray Lai
OK millert
2007-11-06fix format stringCharles Longeau
ok ray@ gilles@
2007-09-14remove some warnings:Charles Longeau
unused variable `variable' `variable' might be used uninitialized in this function ok gilles@ ray@
2007-09-11use strcspn to properly overwrite '\n' in fgets returned bufferGilles Chehade
ok pyr@, ray@, millert@, moritz@, chl@
2007-09-04Some more simple malloc(n * m) -> calloc(n, m) conversions.Hans-Joerg Hoexer
ok deraadt@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-04-13when updating atc(6) to split the -f and -g flags in two optionsIgor Sobrado
I missed synchronizing the usage() function. problem noticed by jmc@
2007-04-13let -f and -g be in different options even if the argumentIgor Sobrado
names to both flags are the same. spotted by jmc@ with relation to other manual page. ok by jmc@
2007-04-02tidy up synopsis and usage(); from Igor SobradoJason McIntyre
2006-11-07make delayed turn commands not become immediate when there is aTheo de Raadt
request to go to the same altitude as already at. pr 3448
2006-11-02Check for valid character before truncating string.Ray Lai
Initial patch from Charles Longeau <chl at tuxfamily dot org>. OK moritz@.
2006-06-30use .y and .l in SRCS, remove hand-crafted CLEANFILES since this isOtto Moerbeek
now done by bsd.*.mk
2006-03-31fix number conversion logic; spotted by pat@; ok tedu@ pat@Otto Moerbeek
2006-03-27assorted fixes mostly from coverity via netbsd via jasper adriaanse via techTed Unangst
2005-05-01use setresgid() to drop privs, it is simply a better and less ambiguous API;Damien Miller
ok deraadt@ and millert@ a while ago, more to come
2004-11-29ansi. ok deraadt@Jonathan Gray
2004-01-02Document that pressing return allows you to "fast forward" the game clock.Jason McIntyre
From Peter Maydell (Debian bug 216980) via NetBSD;
2003-11-08typos from Jonathon Gray;Jason McIntyre
2003-09-26correct scanf sizes; anil aaron okTheo de Raadt
2003-09-26off by one in fscanf; from aaron@Anil Madhavapeddy
2003-09-02escape punctuation;Jason McIntyre
ok deraadt@
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-30put space between macro arguments and punctuation;Jason McIntyre
2003-04-23some typos, and clarification of game rules;Jason McIntyre
help, suggestions and ok pjanzen@
2003-04-10more POSIX chown; Leandro CostaTodd C. Miller
2003-04-08string cleaning; ok pjanzenTheo de Raadt
2003-04-062451 lines of strdup/sprintf/strcpy whacking. mostly ok'd by pjanzenTheo de Raadt
already, but he may have later changes to make still.
2003-03-11double words and spelling fixesDavid Krause
ok pjanzen@
2002-12-06Replace things like srandom(time(NULL)) with srandomdev(3). random(3)Todd C. Miller
good enough for games but we should at least use a decent seed. pjanzen@ OK
2002-06-23uid_t and gid_t are unsignedTheo de Raadt
2002-05-31No dm -> games with high score files etc. must explicitly be setgid games.Paul Janzen
2002-05-23The troll strikes.. The troll strikes.. The dungeon master ↵Theo de Raadt
dies.distrib/sets/lists
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.