summaryrefslogtreecommitdiffstats
path: root/trek/main.c
Commit message (Collapse)AuthorAgeFilesLines
* Use __deadjoerg2011-08-291-5/+3
|
* Use random() instead of rand(), so we get something like randomdholland2009-05-251-8/+3
| | | | | | | | | 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.
* Remove obviously botched test for "fast mode" based on terminal speed.dholland2009-05-251-8/+5
| | | | | 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.)
* Use getopt to handle the remaining (all currently undocumented) options.dholland2009-05-251-15/+14
|
* Remove last traces of undocumented -p option (apparently related todholland2009-05-251-19/+2
| | | | process priority) and documented -a option, neither of which have done anything since CSRG days.
* Don't give special privileges to uid 13107.dholland2009-05-251-9/+2
|
* Split up lines > 80 chars. Object files unchanged.dholland2009-05-241-3/+4
|
* KNF: brace and comment placement. Object files identical.dholland2009-05-241-14/+10
|
* KNF: fix formatting of preprocessor directivesdholland2009-05-241-5/+5
|
* ANSIfy function declarations. No object file diffs except for two functionsdholland2009-05-241-5/+3
| | | | whose K&R declaration didn't fully match the prototype (char vs. int) and the diff of the disassembly of those looks plausible.
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-201-4/+4
|
* Remove uses of __P.jsm2004-01-271-3/+3
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-7/+3
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* seperate -> separatewiz2001-07-221-3/+3
|
* Use setgid(), not setregid().mycroft2000-05-081-3/+3
|
* Fix -Wsign-compare warnings.jsm1999-09-181-3/+4
|
* Security improvements for games (largely from or inspired by OpenBSD).jsm1999-09-121-2/+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.
* time_t != long, again. *Sigh*.cjs1997-10-131-3/+6
|
* Warnsify and remove local implementations of libc functions.christos1997-10-121-14/+21
|
* clean up import, NetBSD RCS IDs, etc.cgd1995-04-221-7/+12
|
* Converted from sgtty to termios api, no longer needs libcompat.jtc1994-05-241-5/+7
|
* Add RCS identifiers.mycroft1993-08-011-1/+2
|
* initial import of 386bsd-0.1 sourcescgd1993-03-211-0/+235