Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-08-24 | Remove a few too early pledge(2)s on games/ and apply them a little bit later | Ricardo 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@ | |||
2018-08-05 | remove duplicate installation of the SIGINT handler; | Ingo Schwarze | |
from Martin Kopta <martin at kopta dot eu> | |||
2016-03-07 | - General changes: | mestre | |
- Remove -? from getopt(3) options, but still keep (or add) -h where applicable - Replace hardcoded program strings by getprogname(3) - Specific changes: - atc(6): this used -? and -u for usage(), remove both from game and manpage - bcd(6): use __progname instead of getprogname(3), no need to include stdlib.h - hunt(6): replace fputs(3) by fprintf(3) OK tb@ after his suggestions | |||
2016-01-10 | Remove needless casts to (char *) NULL. Some were kept, namely for execl(3) | mestre | |
last arguments since "The list of arguments must be terminated by a null null pointer" of type char * Suggested by and OK tb@ | |||
2016-01-08 | Remove unnecessary headers an sort | mestre | |
2016-01-07 | Some 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-03 | About 13 years ago when the idiom srandom(time()), and sometimes | mestre | |
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-26 | Set as __dead a few more functions, that don't return, on games/ | mestre | |
With precious tip, help and also OK from tb@ | |||
2015-12-25 | Apply some more KNF to the declaration of functions, but keep style to the ↵ | mestre | |
rest of code for now. OK tb@ | |||
2015-12-24 | Function prototypes and a little bit of KNF. | tb | |
Committing on behalf of mestre@ who has more to come. | |||
2015-12-04 | assume modern curses and unifdef ancient feature tests | Ted Unangst | |
2015-11-30 | pledge "stdio rpath tty" for bs | tb | |
2015-10-24 | Cast toupper()'s argument to unsigned char. | mmcc | |
ok guenther@ | |||
2015-09-27 | Make prompt() properly printf-like, eliminating empty dummy args | Philip Guenther | |
2015-02-18 | improve ship placement interface. per the instructions, 2468 should work, | Ted Unangst | |
but the first loop didn't allow them. also allow arrow keys to work, since they work in other modes. | |||
2014-11-16 | Eliminate 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-08 | obvious cases of missing .An; | Ingo Schwarze | |
found with the new mandoc(1) MANDOCERR_AN_MISSING warning; no text changes | |||
2014-07-12 | mlarkin found disabled code to print a battleship. improve it and enable. | Ted Unangst | |
ok mlarkin | |||
2013-08-29 | replace srandomdev()+random() with the arc4random*() family | Christian Weisgerber | |
tweaks and ok millert@, ok deraadt@ | |||
2013-07-16 | use .Mt for AUTHORS email; from Jan Stary <hans at stare dot cz>; ok jmc@ | Ingo Schwarze | |
2009-11-14 | Use getopt() to parse the argument list, shrinking the code and | Philip Guenthe | |
permitting options to be grouped ok deraadt@ | |||
2009-10-28 | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | Theo 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-10-17 | sort flags; "usage:" is lowercase. | Igor Sobrado | |
2008-05-20 | remove Xr to non-existent page, rogue(6); | Jason McIntyre | |
2008-05-20 | tweaks to bs(6): | Igor Sobrado | |
- the document title (.Dt macro) should be BS, not BATTLESHIPS; - fix spacing on DeGaul's name - use .An/.Aq for Raymond's name and email address feedback by jmc@ ok jmc@ | |||
2007-05-31 | convert to new .Dd format; | Jason McIntyre | |
2003-06-11 | Original author agreed to permit bs to be released under BSD license. | Paul Janzen | |
Many thanks to Nick Stott for his detective work on this. | |||
2003-06-03 | terms 3 & 4 cleanup based on "terms" file | Theo de Raadt | |
2003-05-19 | Remove #ifdef'ed out unnecessary defines. | Paul Janzen | |
2002-12-06 | Replace 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-08-09 | Only target in the playing field when using mouse. | Paul Janzen | |
2002-08-09 | Fix an error in the CPU random fire routine that could cause a segfault. | Paul Janzen | |
2002-08-09 | Bug fix in random placement code from Erik Sigra. | Paul Janzen | |
2002-05-31 | de-register | Paul Janzen | |
2002-05-31 | No dm -> no need to revoke setegid. | Paul Janzen | |
2002-05-23 | The troll strikes.. The troll strikes.. The dungeon master ↵ | Theo de Raadt | |
dies.distrib/sets/lists | |||
2002-02-18 | more signed char issues | Theo de Raadt | |
2001-11-17 | fixes from mpech@prosoft.org.lv | Paul Janzen | |
2001-06-23 | Make sure screen is big enough to play. | Paul Janzen | |
2001-06-06 | Better formatting; removed extraneous right parenthesis. | Paul Janzen | |
2001-06-06 | reorder sections, minor tidying; mpech@prosoft.org.lv | Paul Janzen | |
2001-02-17 | long usernames, and some -Wall-age | Paul Janzen | |
2000-09-08 | bools should only be TRUE or FALSE. Negative numbers are right out. | Paul Janzen | |
2000-07-23 | Handle EOF on stdin. | Paul Janzen | |
1999-09-25 | gcc optimization bug appears gone since 2.8.1 became history. | Paul Janzen | |
1999-07-09 | - remove all trailing whitespace | Aaron 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-07-07 | The proper order of the ``introductory'' macros in a man page is .Dd/.Dt/.Os. | Aaron Campbell | |
Out of the approximately 1450 man pages, only about 90 of them were wrong. Thanks to kwesterback@home.com for coming up with a script and patch to repair this. The patch also inserted a .Os macro in the few man pages that were missing one. | |||
1998-12-31 | Add ${PIPE}; evanc@concer.to | Todd C. Miller | |
1998-12-15 | Always provide an argument to .Nm in SYNOPSIS section | Paul Janzen | |
1998-11-29 | Don't capitalize game names at the beginning of sentences. | Paul Janzen | |