summaryrefslogtreecommitdiffstats
path: root/games/phantasia (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-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 sincetb2016-09-091-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 functionsguenther2016-08-272-2/+4
| | | | ok deraadt@
* - General changes:mestre2016-03-071-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/mestre2016-01-105-37/+5
| | | | OK tb@
* add missing 'void'tb2016-01-081-2/+2
| | | | ok mestre@
* Forgot to remove this file on my previous commitmestre2016-01-061-0/+0
|
* Remove unnecessary header files from phantasia(6)mestre2016-01-0611-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@
* ansifytb2016-01-061-7/+4
| | | | ok mestre@
* Last step of ansification of phantasia:tb2016-01-061-7/+7
| | | | | | Convert function() to function(void). ok mestre@
* Ansify the bulk of phantasia. No binary change on amd64. Basedtb2016-01-066-116/+69
| | | | | | on an older diff by mestre. ok mestre@
* Ansify map.c.tb2016-01-061-8/+9
| | | | ok mestre@
* Use return instead of exit from main.tb2016-01-062-5/+4
| | | | ok mestre@
* About 13 years ago when the idiom srandom(time()), and sometimesmestre2016-01-031-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/mestre2015-12-262-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 allderaadt2015-11-241-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>,guenther2014-11-164-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 BSD42deraadt2014-07-125-158/+5
| | | | | code that catches lots of signals, and then re-enters curses... before exiting.
* remove an obsolete man(7) .TP macro that was forgottenschwarze2014-02-121-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*() familynaddy2013-08-294-25/+12
| | | | tweaks and ok millert@, ok deraadt@
* switch to installing source manuals (base part)schwarze2011-06-231-2/+5
| | | | | discussed with lots of people, tested by naddy@, "move fast" deraadt@
* delete unused stupid code; Daniel Dickmanderaadt2011-06-231-37/+1
|
* as of 1989, fread/fwrite take void *, so there's no need to cast to char *.tedu2010-12-156-38/+38
|
* kill the old 3.3.1 -> 3.3.2 format convertermartynas2009-08-112-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;jmc2007-05-311-2/+2
|
* this needs to be sgid gamesjolan2004-11-111-1/+2
|
* standard order for options;jmc2004-01-021-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?).millert2003-08-061-2/+2
| | | | I've skipped the GNU stuff for now. From Patrick Latifi.
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* "nokeep" added to prevent warning when generating table;jmc2003-05-171-2/+3
| | | | AUTHOR -> AUTHORS;
* Oops, one more grammar error.pjanzen2003-05-121-2/+2
|
* Start with NetBSD's man page, which has been converted to mdoc, and dopjanzen2003-05-121-768/+761
| | | | some tidying.
* From NetBSD: remove redundant declarationpjanzen2003-05-121-2/+1
|
* comment repairderaadt2003-04-256-18/+18
|
* Use POSIX chown semantics (user:group); noted by Leandro Costamillert2003-04-081-2/+2
|
* 2451 lines of strdup/sprintf/strcpy whacking. mostly ok'd by pjanzenderaadt2003-04-067-29/+45
| | | | already, but he may have later changes to make still.
* double words and spelling fixesdavid2003-03-111-2/+2
| | | | ok pjanzen@
* Replace things like srandom(time(NULL)) with srandomdev(3). random(3)millert2002-12-063-8/+8
| | | | | good enough for games but we should at least use a decent seed. pjanzen@ OK
* crmode -> cbreakpjanzen2002-05-311-5/+5
|
* de-registerpjanzen2002-05-311-3/+3
|
* The troll strikes.. The troll strikes.. The dungeon master dies.distrib/sets/listsderaadt2002-05-231-2/+1
|
* do not install a SIGSEGV handlermillert2002-05-061-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.millert2002-02-162-72/+72
|
* Use the volatile specifier to fix warnings about variables beingmillert2002-01-162-15/+8
| | | | clobbered by longjmp / vfork instead of the gcc "(void)&foo;" hack.
* Don't longjmp(..., 0)art2002-01-041-10/+10
|
* occured->occurred; from NetBSD via Mike Pechkin <mpech@prosoft.org.lv>.pjanzen2001-09-192-4/+4
| | | | One of these was even in a string that got printed out.
* correct type on last arg to execl(); nordin@cse.ogi.eduderaadt2001-07-091-2/+2
|
* Tidy, avoid segfaults on unknown users, and deal with long usernamespjanzen2001-02-045-87/+94
|
* $OpenBSD$niklas2001-01-285-0/+5
|
* use SEEK_SET; improve an error message.pjanzen2000-06-295-36/+37
|