Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | When system calls indicate an error they return -1, not some arbitrary | deraadt | 2019-06-28 | 1 | -3/+3 |
| | | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future. | ||||
* | These games have been broken for the better part of a year, ever since | tb | 2016-09-09 | 1 | -2/+9 |
| | | | | | | their setgid bits got removed. Mark them as such in their manuals. ok deraadt, help with wording jmc | ||||
* | Pull in <time.h> for time() and perhaps other functions | guenther | 2016-08-27 | 2 | -2/+4 |
| | | | | ok deraadt@ | ||||
* | - General changes: | mestre | 2016-03-07 | 1 | -3/+3 |
| | | | | | | | | | | | | - 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 | ||||
* | As per style(9), remove remaining lint-style comments from games/ | mestre | 2016-01-10 | 5 | -37/+5 |
| | | | | OK tb@ | ||||
* | add missing 'void' | tb | 2016-01-08 | 1 | -2/+2 |
| | | | | ok mestre@ | ||||
* | Forgot to remove this file on my previous commit | mestre | 2016-01-06 | 1 | -0/+0 |
| | |||||
* | Remove unnecessary header files from phantasia(6) | mestre | 2016-01-06 | 11 | -56/+97 |
| | | | | | | | | | | Lesson learnt: don't include an header sorted alphabetically just because. The external definition of variables was done on phantglobs.h but their declaration was on phantstruct.h and therefore the latter must be included before the former. It's easier to just include phantstruct.h inside phantglobs.h since it always need it. With help and OK from tb@ | ||||
* | ansify | tb | 2016-01-06 | 1 | -7/+4 |
| | | | | ok mestre@ | ||||
* | Last step of ansification of phantasia: | tb | 2016-01-06 | 1 | -7/+7 |
| | | | | | | Convert function() to function(void). ok mestre@ | ||||
* | Ansify the bulk of phantasia. No binary change on amd64. Based | tb | 2016-01-06 | 6 | -116/+69 |
| | | | | | | on an older diff by mestre. ok mestre@ | ||||
* | Ansify map.c. | tb | 2016-01-06 | 1 | -8/+9 |
| | | | | ok mestre@ | ||||
* | Use return instead of exit from main. | tb | 2016-01-06 | 2 | -5/+4 |
| | | | | ok mestre@ | ||||
* | About 13 years ago when the idiom srandom(time()), and sometimes | mestre | 2016-01-03 | 1 | -2/+1 |
| | | | | | | | | | | | | 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@ | ||||
* | Set as __dead a few more functions, that don't return, on games/ | mestre | 2015-12-26 | 2 | -4/+4 |
| | | | | With precious tip, help and also OK from tb@ | ||||
* | In 1995, all of the games were setuid games. At end of 1996, I took them all | deraadt | 2015-11-24 | 1 | -2/+1 |
| | | | | | | | | | 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 | ||||
* | Eliminate pointless use of <sys/param.h>, <sys/file.h>, <sys/sockio.h>, | guenther | 2014-11-16 | 4 | -12/+12 |
| | | | | | | | | | 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@ | ||||
* | Remove a pile of (obviously unused) #ifdef SYSV and BSD41 and BSD42 | deraadt | 2014-07-12 | 5 | -158/+5 |
| | | | | | code that catches lots of signals, and then re-enters curses... before exiting. | ||||
* | remove an obsolete man(7) .TP macro that was forgotten | schwarze | 2014-02-12 | 1 | -3/+2 |
| | | | | | when converting this page to mdoc(7) in revision 1.4; noticed by Jan Stary <hans at stare dot cz> | ||||
* | replace srandomdev()+random() with the arc4random*() family | naddy | 2013-08-29 | 4 | -25/+12 |
| | | | | tweaks and ok millert@, ok deraadt@ | ||||
* | switch to installing source manuals (base part) | schwarze | 2011-06-23 | 1 | -2/+5 |
| | | | | | discussed with lots of people, tested by naddy@, "move fast" deraadt@ | ||||
* | delete unused stupid code; Daniel Dickman | deraadt | 2011-06-23 | 1 | -37/+1 |
| | |||||
* | as of 1989, fread/fwrite take void *, so there's no need to cast to char *. | tedu | 2010-12-15 | 6 | -38/+38 |
| | |||||
* | kill the old 3.3.1 -> 3.3.2 format converter | martynas | 2009-08-11 | 2 | -273/+0 |
| | | | | | | it doesn't build; and by now i'm pretty sure everyone converted to this new format being used since 1985 ok millert@ | ||||
* | convert to new .Dd format; | jmc | 2007-05-31 | 1 | -2/+2 |
| | |||||
* | this needs to be sgid games | jolan | 2004-11-11 | 1 | -1/+2 |
| | |||||
* | standard order for options; | jmc | 2004-01-02 | 1 | -11/+10 |
| | | | | | kill a .Pp before a list; move AUTHORS to a more logical place; | ||||
* | Remove some double semicolons (hmm, do two semis equal a maxi?). | millert | 2003-08-06 | 1 | -2/+2 |
| | | | | I've skipped the GNU stuff for now. From Patrick Latifi. | ||||
* | Remove the advertising clause in the UCB license which Berkeley | millert | 2003-06-03 | 1 | -6/+2 |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | "nokeep" added to prevent warning when generating table; | jmc | 2003-05-17 | 1 | -2/+3 |
| | | | | AUTHOR -> AUTHORS; | ||||
* | Oops, one more grammar error. | pjanzen | 2003-05-12 | 1 | -2/+2 |
| | |||||
* | Start with NetBSD's man page, which has been converted to mdoc, and do | pjanzen | 2003-05-12 | 1 | -768/+761 |
| | | | | some tidying. | ||||
* | From NetBSD: remove redundant declaration | pjanzen | 2003-05-12 | 1 | -2/+1 |
| | |||||
* | comment repair | deraadt | 2003-04-25 | 6 | -18/+18 |
| | |||||
* | Use POSIX chown semantics (user:group); noted by Leandro Costa | millert | 2003-04-08 | 1 | -2/+2 |
| | |||||
* | 2451 lines of strdup/sprintf/strcpy whacking. mostly ok'd by pjanzen | deraadt | 2003-04-06 | 7 | -29/+45 |
| | | | | already, but he may have later changes to make still. | ||||
* | double words and spelling fixes | david | 2003-03-11 | 1 | -2/+2 |
| | | | | ok pjanzen@ | ||||
* | Replace things like srandom(time(NULL)) with srandomdev(3). random(3) | millert | 2002-12-06 | 3 | -8/+8 |
| | | | | | good enough for games but we should at least use a decent seed. pjanzen@ OK | ||||
* | crmode -> cbreak | pjanzen | 2002-05-31 | 1 | -5/+5 |
| | |||||
* | de-register | pjanzen | 2002-05-31 | 1 | -3/+3 |
| | |||||
* | The troll strikes.. The troll strikes.. The dungeon master dies.distrib/sets/lists | deraadt | 2002-05-23 | 1 | -2/+1 |
| | |||||
* | do not install a SIGSEGV handler | millert | 2002-05-06 | 1 | -1/+9 |
| | |||||
* | 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. | millert | 2002-02-16 | 2 | -72/+72 |
| | |||||
* | Use the volatile specifier to fix warnings about variables being | millert | 2002-01-16 | 2 | -15/+8 |
| | | | | clobbered by longjmp / vfork instead of the gcc "(void)&foo;" hack. | ||||
* | Don't longjmp(..., 0) | art | 2002-01-04 | 1 | -10/+10 |
| | |||||
* | occured->occurred; from NetBSD via Mike Pechkin <mpech@prosoft.org.lv>. | pjanzen | 2001-09-19 | 2 | -4/+4 |
| | | | | One of these was even in a string that got printed out. | ||||
* | correct type on last arg to execl(); nordin@cse.ogi.edu | deraadt | 2001-07-09 | 1 | -2/+2 |
| | |||||
* | Tidy, avoid segfaults on unknown users, and deal with long usernames | pjanzen | 2001-02-04 | 5 | -87/+94 |
| | |||||
* | $OpenBSD$ | niklas | 2001-01-28 | 5 | -0/+5 |
| | |||||
* | use SEEK_SET; improve an error message. | pjanzen | 2000-06-29 | 5 | -36/+37 |
| |