summaryrefslogtreecommitdiffstats
path: root/rogue/rogue.h
Commit message (Collapse)AuthorAgeFilesLines
* WARNS=5dholland2013-08-111-2/+2
|
* typo in commentdholland2013-08-111-2/+2
|
* Use __dead and __printflike instead of __attribute__.dholland2011-08-261-9/+8
|
* Kill some pointer indirections. Don't use variables as format strings.joerg2011-05-231-3/+3
|
* sprinkle staticdholland2009-08-121-53/+1
|
* ANSIfy. Remove unnecessary casts. Clean up for -Wsign-compare. Make moredholland2008-01-141-64/+16
| | | | things file-static. Other minor tidyups, and fix a couple minor bugs found along the way.
* Comprehensive (or at least extensive) string handling cleanup for rogue.dholland2007-12-271-5/+8
| | | | | | | | This patch dates (mostly) back to 2002; the critical parts of it were handled back then by security-officer. As far as I know, there's nothing exploitable fixed herein. A slightly earlier version of this patch was reviewed by Christian Biere when I filed it as PR 34750.
* Avoid arrays of incomplete types (required to build with GCC 4).jsm2005-02-151-2/+2
| | | Reviewed by <hubertf>.
* Remove uses of __P.jsm2004-01-271-293/+293
|
* Don't use -fwritable-strings. Add one more const.jsm2004-01-011-2/+2
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-6/+2
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* - use correctly bounded strings when reloading a saved game. in particular,mrg2002-10-011-5/+7
| | | | | | | do not let the save game file "string length" exceed the amount of space supplied. as noted by <stanojr@iserver.sk> on bugtraq. - minor KNF. tested by simonb.
* remove duplicate declschristos2001-02-051-5/+1
|
* Remove rogue's old and bit-rotten cut-down version of curses.jsm1999-09-131-18/+1
|
* Security improvements for games (largely from or inspired by OpenBSD).jsm1999-09-121-1/+5
| | | | | | | | | | | | | | | Games which run setgid from dm, but don't need to, should drop their privileges at startup. Games which have a scorefile should open it at startup, then drop all privileges leaving just the open writable file descriptor. If the game can invoke subprocesses, this should be made close-on-exec. Games with scorefiles should make sure they do not get a file descriptor < 3. (Otherwise, they could get confused and corrupt the scorefile when using stdin, stdout or stderr.) Some old setuid revokes from the days of setuid games change into gid revokes.
* Add `__noreturn__' and `__unused__' attributes where appropriate tojsm1999-09-081-3/+3
| | | | | | | | | | | | the games. This merges in all such remaining changes from the Linux port of the NetBSD games, except in hunt (where substantial changes from OpenBSD need to be looked at). Most noreturn attributes were previously added in bin/6144, with some others that were missed then in bin/8082. Previous `unused' attributes were covered in bin/6557, bin/8058 and other PRs (all these PRs have already been handled and closed).
* constify, per PR 6148hubertf1998-11-101-55/+55
|
* mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)hubertf1998-09-131-6/+6
|
* const poisoning.mycroft1998-07-271-2/+3
|
* WARNSify (not an insignificant task...)lukem1997-10-121-55/+383
|
* Various changes to make games compile w/o warnings on the alpha:cgd1995-04-241-4/+2
| | | | Include appropriate includes, delete bogus function declarations, change sizes of variables and casts.
* clean up import, NetBSD RCS Idscgd1995-04-221-4/+5
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+490