| History log of /src/games/trek/main.c |
| Revision | | Date | Author | Comments |
| 1.23 |
| 29-Aug-2011 |
joerg | Use __dead
|
| 1.22 |
| 25-May-2009 |
dholland | Use random() instead of rand(), so we get something like random numbers out.
This changes the "tournament codes"; that is, the same code will give you a different game now from what it used to. (This is because the codes are basically random seeds.) I really really doubt anyone cares about this, especially since the tournament feature appears to be undocumented.
|
| 1.21 |
| 25-May-2009 |
dholland | Remove obviously botched test for "fast mode" based on terminal speed. Default to "fast mode" as ~nobody has a 300 baud terminal any more. ("Fast mode" apparently controls whether short-range scans are printed by default at certain times.)
|
| 1.20 |
| 25-May-2009 |
dholland | Use getopt to handle the remaining (all currently undocumented) options.
|
| 1.19 |
| 25-May-2009 |
dholland | Remove last traces of undocumented -p option (apparently related to process priority) and documented -a option, neither of which have done anything since CSRG days.
|
| 1.18 |
| 25-May-2009 |
dholland | Don't give special privileges to uid 13107.
|
| 1.17 |
| 24-May-2009 |
dholland | Split up lines > 80 chars. Object files unchanged.
|
| 1.16 |
| 24-May-2009 |
dholland | KNF: brace and comment placement. Object files identical.
|
| 1.15 |
| 24-May-2009 |
dholland | KNF: fix formatting of preprocessor directives
|
| 1.14 |
| 24-May-2009 |
dholland | ANSIfy function declarations. No object file diffs except for two functions whose K&R declaration didn't fully match the prototype (char vs. int) and the diff of the disassembly of those looks plausible.
|
| 1.13 |
| 20-Jul-2008 |
lukem | Remove the \n and tabs from the __COPYRIGHT() strings.
|
| 1.12 |
| 27-Jan-2004 |
jsm | branches: 1.12.32; Remove uses of __P.
|
| 1.11 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22269, verified by myself.
|
| 1.10 |
| 22-Jul-2001 |
wiz | seperate -> separate
|
| 1.9 |
| 08-May-2000 |
mycroft | Use setgid(), not setregid().
|
| 1.8 |
| 18-Sep-1999 |
jsm | Fix -Wsign-compare warnings.
|
| 1.7 |
| 12-Sep-1999 |
jsm | Security improvements for games (largely from or inspired by OpenBSD).
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.
|
| 1.6 |
| 13-Oct-1997 |
cjs | time_t != long, again. *Sigh*.
|
| 1.5 |
| 12-Oct-1997 |
christos | Warnsify and remove local implementations of libc functions.
|
| 1.4 |
| 22-Apr-1995 |
cgd | clean up import, NetBSD RCS IDs, etc.
|
| 1.3 |
| 24-May-1994 |
jtc | Converted from sgtty to termios api, no longer needs libcompat.
|
| 1.2 |
| 01-Aug-1993 |
mycroft | Add RCS identifiers.
|
| 1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
| 1.1.1.2 |
| 22-Apr-1995 |
cgd | src/games/trek from Lite
|
| 1.1.1.1 |
| 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
| 1.12.32.1 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|