summaryrefslogtreecommitdiff
path: root/games/canfield
AgeCommit message (Collapse)Author
2022-03-31man pages: add missing commas between subordinate and main clausesChristian Weisgerber
jmc@ dislikes a comma before "then" in a conditional, so leave those untouched. ok jmc@
2022-02-18Avoid gendered language in man pages when not referring to a specificJonathan Gray
person. Rewrite or use singular they. ok thfr@ sthen@ daniel@ ian@ job@ kmos@ jcs@ ratchov@ phessler@ and others I'm likely missing on an earlier version. feedback tj@, feedback and ok jmc@
2021-01-21Ignore special keys returned by the curses getch() function.Todd C. Miller
Prevents canfield from suspending itself when you resize the window. Canfield is not prepared to deal with anything other than normal characters so just ignore them. OK tb@ pjanzen@
2018-08-24During our refactor with tedu@ tb@ and myself we moved the score file to theRicardo Mestre
user's home folder and setgid was removed. Therefore it's not possible to have a single score file with all the users anymore but we forgot to change a comment that still implied that. Suggested by tb@ to just delete the comment.
2018-08-24Remove a few too early pledge(2)s on games/ and apply them a little bit laterRicardo Mestre
but with much reduced permissions ("stdio tty" if ncurses based and "stdio" for the ones that only perform basic operations). There's still a few games that we cannot yet remove their fs access, through pledge(2), since they open files on demand and too late, this might get revisited in the future. OK tb@
2016-09-11Callers of time(3) should #include <time.h>.Theo Buehler
ok deraadt
2016-03-30for some time now mandoc has not required MLINKS to functionJason McIntyre
correctly - logically complete that now by removing MLINKS from base; authors need only to ensure there is an entry in NAME for any function/ util being added. MLINKS will still work, and remain for perl to ease upgrades; ok nicm (curses) bcook (ssl) ok schwarze, who provided a lot of feedback and assistance ok tb natano jung
2016-03-02Fix score file nameTim van der Molen
2016-01-10As per style(9), remove remaining lint-style comments from games/mestre
OK tb@
2016-01-08Headers clean upmestre
2016-01-07Some basic code maintenance in games/tb
- 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@
2016-01-03About 13 years ago when the idiom srandom(time()), and sometimesmestre
srandom(time()+getpid()), was changed by srandomdev(), but #include <time.h> lived up until this day so remove it. Additionally, earlier than that, 18 years ago, random(6) was one of the first consumers of arc4random(3) family, and was pulling it from dev/rndvar.h but these days we pull it from stdlib.h, which is already done, so while here remove dev/rndvar.h also. "seems comprehensive to me" deraadt@ and OK tb@
2015-12-26Set as __dead a few more functions, that don't return, on games/mestre
With precious tip, help and also OK from tb@
2015-12-02add const and remove unused variable.tb
from mestre.
2015-11-30pledge "stdio rpath wpath cpath tty" for canfieldtb
pledge "stdio rpath" for cfscores made possible by Ricardo Mestre's earlier work
2015-11-26Add checks for getenv(), snprintf() and getlogin().tb
From Ricardo Mestre (up to a small tweak). Thanks!
2015-11-25Remove now unused gid_t variable.tb
From Ricardo Mestre. Thanks! go for it! deraadt@
2015-11-24repair lseeks, from RicardoTed Unangst
2015-11-24change score file name to .cfscores so it's not taking up valuable spaceTed Unangst
in my home directory of serious business files
2015-11-24move score files to home directory and drop setgid. from Ricardo MestreTed Unangst
2015-11-05delete unused code that won't let you play if the load is too highTed Unangst
2014-11-03the man page says it is impossible to cheat, but since the shuffle isTed Unangst
lopsided, a sharp counter can detect uneven permutations. fix this by using knuth shuffle. ok mlarkin pjanzen
2014-09-26Add missing .An macros (found with mandoc -Tlint) andIngo Schwarze
resolve contractions (found with textproc/igor(1)). Work done by Kaspars at Bankovskis dot net during the EuroBSDCon 2014 documentation tutorial. Very minor addition of a few more missing .An macros by myself.
2013-08-29replace srandomdev()+random() with the arc4random*() familyChristian Weisgerber
tweaks and ok millert@, ok deraadt@
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-09add missing flag to usage; synchronize argument names with documentation;Igor Sobrado
while here, use lowercase letters for "usage:".
2007-05-31convert to new .Dd format;Jason McIntyre
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-07-09ansi; khalek@linuxgamers.netTheo de Raadt
2003-07-10add missing includesDavid Krause
ok deraadt@ tedu@
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
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-18more signed char issuesTheo de Raadt
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.
2001-08-18FormattingPaul Janzen
2001-06-06reorder sections, minor tidying; mpech@prosoft.org.lvPaul Janzen
2001-02-18include <string.h>Paul Janzen
2001-02-13Try to keep formatting pretty for long usernamesPaul Janzen
2000-07-23oopsPaul Janzen
2000-07-23Code cleanups (some from NetBSD), typo fix.Paul Janzen
Don't barf if stdin hits EOF. Install cfscores in /var/games if one isn't already there.
2000-04-25Missing MLINKSMarc Espie
1999-12-18tidy; don't list the game itself in FILESPaul Janzen
1999-07-09- remove all trailing whitespaceAaron Campbell
* except when it is escaped with a `\' at the end of the line - fix remaining .Nm usage as well - this is from a patch I received from kwesterback@home.com, who has been working on some scripts for fixing formatting errors in mdoc'd man pages Ok, so there could be a cost/benefit debate with this commit, but since I have the patch we might as well commit it...
1999-03-20Add some .El 's at the end of lists. From NetBSDPaul Janzen
1998-08-29use names for constants in lseek() and open(); NetBSD PR6057; jsm28@cam.ac.ukPaul Janzen
1998-07-24-lcurses, not termcap/termlibTodd C. Miller
1997-09-21$OpenBSD$Theo de Raadt