Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-07-09 | have bsd.prog.mk/bsd.lib.mk generate .y -> .c/.h rules without intermediate | Marc Espie | |
files. This fixes up parallel builds in the default case. FreeBSD does something similar. okay millert@ | |||
2017-07-07 | we're not shooting yacception | Marc Espie | |
okay millert@ | |||
2017-01-20 | Nuke some excess whitespace. | Kenneth R Westerback | |
2016-12-01 | Remove useless #ifndef in atc(6) and pom(6). | Frederic Cambus | |
M_PI is always defined, so we can drop those directives. OK deraadt@, millert@ | |||
2016-09-11 | Callers of time(3) should #include <time.h>. | Theo Buehler | |
ok deraadt | |||
2016-08-27 | Pull in <sys/time.h> for struct timespec, gettimeofday(), clock_gettime(), | Philip Guenther | |
and setitimer() ok deraadt@ | |||
2016-03-16 | Prefer fseek(3) over rewind(3) since the latter although it also calls fseek | mestre | |
then additionally it calls clearerr(3) deliberately but we want to catch any error that may happen and this way we couldn't catch it OK tb@ | |||
2016-03-07 | remove -u? from usage(); | Jason McIntyre | |
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-09 | ANSIfy grammar.y on atc(6), all other files already are | mestre | |
OK tb@ | |||
2016-01-08 | add missing 'void' | tb | |
ok 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-31 | Remove unused file | mestre | |
Alerted by tb@ | |||
2015-12-31 | Include only needed header files per each source file | mestre | |
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-15 | Cleanup: pwd.h is no longer needed. | tb | |
2015-12-15 | Replace 'arc4random() % range' by 'arc4random_uniform(range)'. | tb | |
Do this by introducing atcrandom_uniform(range) which returns deterministic randomness or good randomness depending on whether a seed was specified with the -r option. Diff by Matthew Martin, reviewed by deraadt@ and me. ok deraadt@ | |||
2015-11-29 | adjust width list: Ds is unfortunate here; | Jason McIntyre | |
2015-11-29 | Add 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-25 | Remove operations that "touch" scorefiles at install time. | Theo de Raadt | |
2015-11-24 | In 1995, all of the games were setuid games. At end of 1996, I took them all | Theo 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-20 | Convert hand-rolled option parsing to getopt(3). | tb | |
ok deraadt@ | |||
2015-11-04 | replace setbuf with setvbuf, from Frederic Nowak | Ted Unangst | |
2015-08-22 | remove malloc/calloc/realloc* casts, due to stdlib.h being present; ok ↵ | Theo de Raadt | |
millert krw | |||
2015-02-18 | convert calloc/realloc pairs to reallocarray | Ted Unangst | |
2014-12-09 | Do not memorialize cheaters in the high score file. | Theo de Raadt | |
from pjanzen | |||
2014-12-08 | For now, these games still contain deterministic randomization (for | Theo 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-30 | Even though not callable, "Ed" is a macro name, so for clarity, | Ingo Schwarze | |
escape it when it appears on a macro line. | |||
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-13 | if not seeded explicitly, use arc4random instead. ok deraadt | Ted Unangst | |
2014-07-13 | long live BSD, SYSV is dead! | Ted Unangst | |
2013-10-25 | start_time should be time_t, not int since it holds the reasult of | Todd C. Miller | |
time(0). OK guenther@ | |||
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-06-01 | Don't assume there will be a newline after calling fgets. | Ray Lai | |
OK millert | |||
2007-11-06 | fix format string | Charles Longeau | |
ok ray@ gilles@ | |||
2007-09-14 | remove some warnings: | Charles Longeau | |
unused variable `variable' `variable' might be used uninitialized in this function ok gilles@ ray@ | |||
2007-09-11 | use strcspn to properly overwrite '\n' in fgets returned buffer | Gilles Chehade | |
ok pyr@, ray@, millert@, moritz@, chl@ | |||
2007-09-04 | Some more simple malloc(n * m) -> calloc(n, m) conversions. | Hans-Joerg Hoexer | |
ok deraadt@ | |||
2007-05-31 | convert to new .Dd format; | Jason McIntyre | |
2007-04-13 | when updating atc(6) to split the -f and -g flags in two options | Igor Sobrado | |
I missed synchronizing the usage() function. problem noticed by jmc@ | |||
2007-04-13 | let -f and -g be in different options even if the argument | Igor Sobrado | |
names to both flags are the same. spotted by jmc@ with relation to other manual page. ok by jmc@ | |||
2007-04-02 | tidy up synopsis and usage(); from Igor Sobrado | Jason McIntyre | |
2006-11-07 | make delayed turn commands not become immediate when there is a | Theo de Raadt | |
request to go to the same altitude as already at. pr 3448 | |||
2006-11-02 | Check for valid character before truncating string. | Ray Lai | |
Initial patch from Charles Longeau <chl at tuxfamily dot org>. OK moritz@. | |||
2006-06-30 | use .y and .l in SRCS, remove hand-crafted CLEANFILES since this is | Otto Moerbeek | |
now done by bsd.*.mk | |||
2006-03-31 | fix number conversion logic; spotted by pat@; ok tedu@ pat@ | Otto Moerbeek | |
2006-03-27 | assorted fixes mostly from coverity via netbsd via jasper adriaanse via tech | Ted Unangst | |
2005-05-01 | use 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 |