summaryrefslogtreecommitdiffstats
path: root/trek
Commit message (Collapse)AuthorAgeFilesLines
* Use PREFIX nowCameron Katri2021-03-281-2/+2
|
* Get all the games compiling for iOSCameron Katri2021-02-229-2211/+16
|
* use SUBDIR.roff suggested by uwe@christos2018-06-101-2/+2
|
* Typos.dholland2018-02-081-3/+3
|
* adhere to stricter groff checking:christos2014-09-301-10/+9
| | | | | - don't specify distance separation between this and the next column for the last column, since there's no next column. - don't pop environment you did not push
* Reorg docs, part 1:dholland2014-07-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | Move all the reference manuals to subdirs of /usr/share/doc/reference. We have subdirs ref1-ref9, corresponding to man page sections 1-9. Everything that's the reference manual for a program (sections 1, 6, 8), C interface (sections 2, 3), driver or file system (section 4), format or configuration (section 5), or kernel internal interface (section 9) belongs in here. Section 7 is a little less clear: some things that might go in section 7 if they were a man page aren't really reference manuals. So I'm only putting things in reference section 7 that are (to me) clearly reference material, rather than e.g. tutorials, guides, FAQs, etc. This obviously leaves some room for debate, especially without first editing the docs with this distinction in mind, but if people hate what I've done things can always be moved again. Note also that while roff macro man pages traditionally go in section 7, I have put all the roff documentation (macros, tools, etc.) in one place in reference/ref1/roff. This will make it easier to find and also easier to edit it into some kind of coherent form.
* Rework /usr/share/doc.dholland2014-07-052-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the <bsd.doc.mk> infrastructure, and update the docs to match the new infrastructure. - Build and install text, ps, pdf, and/or html, not roff sources. - Don't wire the chapter numbers into the build system, or use them in the installed pathnames. This didn't matter much when the docs were a museum, but now that we're theoretically going to start maintaining them again, we're going to add and remove documents periodically and having the chapter numbers baked in creates a lot of thrashing for no purpose. - Specify the document name explicitly, rather than implicitly in a path. Use this name (instead of other random strings) as the name of the installed files. - Specify the document section, which is the subdirectory of /usr/share/doc to install into. - Allow multiple subdocuments. (That is, multiple documents in one output directory.) - Enumerate the .png files groff emits along with html so they can be installed. - Remove assorted hand-rolled rules for running roff and roff widgetry and add enough variable settings to make these unnecessary. This includes support for - explicit use of soelim - refer - tbl - pic - eqn - Forcibly apply at least minimal amounts of sanity to certain autogenerated roff files. - Don't exclude USD.doc, SMM.doc, and PSD.doc directories from the build, as they now actually do stuff. Note: currently we can't generate pdf. This turns out to be a nontrivial problem with no immediate solution forthcoming. So for now, as a workaround, install compressed .ps as the printable form.
* Use __deadjoerg2011-08-291-5/+3
|
* document non-literal string formatschristos2011-08-161-1/+3
|
* use DBL_MIN from <float.h> instead of a hard coded small value (thatmrg2011-07-031-3/+4
| | | becomes zero for vax fp.)
* sprinkle staticdholland2009-08-1212-37/+39
|
* Remove description of -a option and optional log file name, sincedholland2009-05-251-8/+10
| | | | | | | neither has done anything in a long long time. Add previously undocumented -s/-f (slow vs. fast) options, although I question the utility thereof and suspect they should just be removed. Bump date (first time since 1993)
* sprintf -> snprintf.dholland2009-05-252-7/+9
|
* "abbreviation" has two Bs.dholland2009-05-255-20/+20
|
* Use random() instead of rand(), so we get something like randomdholland2009-05-253-20/+10
| | | | | | | | | 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
|
* __attribute__((__noreturn__)) -> __deaddholland2009-05-251-5/+5
|
* Null for pointers, not 0.dholland2009-05-251-3/+4
|
* Fix score printing so columns line up.dholland2009-05-251-26/+37
|
* Abolish cgetc(). It contained one line of code, which was wrong.dholland2009-05-246-77/+35
| | | | Call getchar() directly, and handle EOF properly instead of looping (in some cases) or pretending that EOF is 0 (which it isn't).
* Remove unnecessary initialization that silenced a compiler warning in 1997.dholland2009-05-241-3/+3
|
* Sprinkle some blank lines for readability.dholland2009-05-241-2/+15
|
* Split up lines > 80 chars. Object files unchanged.dholland2009-05-2427-166/+280
|
* Don't use literal ^G's in string constants. Use \a.dholland2009-05-242-7/+7
|
* KNF: brace and comment placement. Object files identical.dholland2009-05-2443-734/+440
|
* whitespacedholland2009-05-241-6/+7
|
* KNF: fix formatting of preprocessor directivesdholland2009-05-2412-133/+133
|
* ANSIfy function declarations. No object file diffs except for two functionsdholland2009-05-2446-251/+187
| | | | whose K&R declaration didn't fully match the prototype (char vs. int) and the diff of the disassembly of those looks plausible.
* KNF. No change to .o file.dholland2009-05-241-7/+7
|
* Avoid hardcoded "too large" constant that caused FPE on the vax.christos2009-03-315-13/+19
| | | XXX: Should pullup to 5.0
* PR/39923: Valery Ushakov: trek(6) can spin, consuming 100% CPU on powerpcchristos2008-11-141-3/+6
| | | | On systems where char is unsigned the number of black holes can end up being very large (instead of negative).
* Remove the \n and tabs from the __COPYRIGHT() strings.lukem2008-07-201-4/+4
|
* Make the default WARNS for games 4. The only game that needs to set WARNSdholland2008-01-281-2/+1
| | | to anything else now is rogue, so clear WARNS from the other makefiles.
* Build with WARNS=4.dholland2008-01-282-7/+8
|
* convert __attribute__s to applicable cdefs.h macrosperry2007-12-1517-52/+52
|
* Coverity CID 1197: Don't pass -1 to close.christos2006-03-191-3/+4
|
* Coverity CID 1467: Elide static buffer overflow.christos2006-03-191-3/+3
|
* Use standard AUTHORS section header. From YOMURA Masanori in private mailwiz2005-09-151-3/+3
| | | Sort sections if necessary. Use more/better markup.
* Avoid arrays of incomplete types (required to build with GCC 4).jsm2005-02-152-5/+5
| | | Reviewed by <hubertf>.
* Remove uses of __P.jsm2004-01-278-90/+90
|
* Various typo fixes from Jonathon Gray via jmc@openbsd.wiz2003-11-171-2/+2
|
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-0753-367/+155
| | | Patches provided by Joel Baker in PR 22269, verified by myself.
* Rename a large chunk of the make(1) variables which refer to alukem2003-07-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | program/tool from "FOO" to "TOOL_FOO". The new variables are: TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC For each, provide default in <bsd.sys.mk> of the form: TOOL_FOO?= foo and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override: TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo Document all of these in bsd.README. This cleans up a chunk of potential (and actual) namespace collision within our build infrastructure, as well as improves consistency in the share/mk documentation and provision of appropriate defaults for each of these variables.
* Add ${MACROS} to ${ROFF} usage to make output readablepooka2003-01-051-2/+2
| | | from jbernard@mines.edu in misc/19685
* avoid buffer overrun. fix from openbsd.itojun2002-10-181-3/+3
| | | reported by Niels Heinen <niels.heinen@ubizen.com>
* Lots of minor fixes resulting from reading these man pages in detail.wiz2002-09-261-3/+3
|
* New sentences begin on new lines.wiz2002-09-261-2/+3
| | | Patch from Richard Elz, slightly improved by yours truly.