summaryrefslogtreecommitdiff
path: root/games/phantasia
AgeCommit message (Collapse)Author
2024-08-20having a file called "OWNER" lying around in a directory ofTheo de Raadt
(effectively) public dommain software is weird. put that info into a better place.
2024-08-19fix double space;Jason McIntyre
2024-05-21remove prototypes with no matching function and externs with no varJonathan Gray
partly checked by millert@
2024-02-08Oops, commited wrong version of CLEANFILES in previous.Miod Vallat
2024-02-08Feed more generated files to the clean target; joint work with naddy@Miod Vallat
2023-10-10Print a long with %ld instead of %dTheo Buehler
2022-07-11remove the "tbl" suffix for a few man pagesDaniel Dickman
Over a decade ago, the build infrastructure had special logic to process man pages that ended with the suffix "tbl". This infrastructure is long gone and the special naming for these man pages is no longer needed. Revert the naming of these man pages for consistency with all other man pages in the tree. As a bonus, we remove a few lines from some of the Makefiles making them simpler. ok jmc@, and no objection from schwarze@
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-04-29Remove extraneous for() likely caused by copy & paste.Todd C. Miller
From trondd, OK pjanzen@
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
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.
2016-09-09These games have been broken for the better part of a year, ever sinceTheo Buehler
their setgid bits got removed. Mark them as such in their manuals. ok deraadt, help with wording jmc
2016-08-27Pull in <time.h> for time() and perhaps other functionsPhilip Guenther
ok deraadt@
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-10As per style(9), remove remaining lint-style comments from games/mestre
OK tb@
2016-01-08add missing 'void'tb
ok mestre@
2016-01-06Forgot to remove this file on my previous commitmestre
2016-01-06Remove unnecessary header files from phantasia(6)mestre
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@
2016-01-06ansifytb
ok mestre@
2016-01-06Last step of ansification of phantasia:tb
Convert function() to function(void). ok mestre@
2016-01-06Ansify the bulk of phantasia. No binary change on amd64. Basedtb
on an older diff by mestre. ok mestre@
2016-01-06Ansify map.c.tb
ok mestre@
2016-01-06Use return instead of exit from main.tb
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-11-24In 1995, all of the games were setuid games. At end of 1996, I took them allTheo 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
2014-11-16Eliminate 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-07-12Remove a pile of (obviously unused) #ifdef SYSV and BSD41 and BSD42Theo de Raadt
code that catches lots of signals, and then re-enters curses... before exiting.
2014-02-12remove an obsolete man(7) .TP macro that was forgottenIngo Schwarze
when converting this page to mdoc(7) in revision 1.4; noticed by Jan Stary <hans at stare dot cz>
2013-08-29replace srandomdev()+random() with the arc4random*() familyChristian Weisgerber
tweaks and ok millert@, ok deraadt@
2011-06-23switch to installing source manuals (base part)Ingo Schwarze
discussed with lots of people, tested by naddy@, "move fast" deraadt@
2011-06-23delete unused stupid code; Daniel DickmanTheo de Raadt
2010-12-15as of 1989, fread/fwrite take void *, so there's no need to cast to char *.Ted Unangst
2009-08-11kill the old 3.3.1 -> 3.3.2 format converterMartynas Venckus
it doesn't build; and by now i'm pretty sure everyone converted to this new format being used since 1985 ok millert@
2007-05-31convert to new .Dd format;Jason McIntyre
2004-11-11this needs to be sgid gamesJolan Luff
2004-01-02standard order for options;Jason McIntyre
kill a .Pp before a list; move AUTHORS to a more logical place;
2003-08-06Remove some double semicolons (hmm, do two semis equal a maxi?).Todd C. Miller
I've skipped the GNU stuff for now. From Patrick Latifi.
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-17"nokeep" added to prevent warning when generating table;Jason McIntyre
AUTHOR -> AUTHORS;
2003-05-12Oops, one more grammar error.Paul Janzen
2003-05-12Start with NetBSD's man page, which has been converted to mdoc, and doPaul Janzen
some tidying.
2003-05-12From NetBSD: remove redundant declarationPaul Janzen
2003-04-25comment repairTheo de Raadt
2003-04-08Use POSIX chown semantics (user:group); noted by Leandro CostaTodd C. Miller
2003-04-062451 lines of strdup/sprintf/strcpy whacking. mostly ok'd by pjanzenTheo de Raadt
already, but he may have later changes to make still.
2003-03-11double words and spelling fixesDavid Krause
ok pjanzen@
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-05-31crmode -> cbreakPaul Janzen
2002-05-31de-registerPaul Janzen