summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* usage policewiz2014-10-042-8/+8
|
* Imported and adapted from FreeBSD svn r272166 and r272207; this fixesast2014-10-029-124/+344
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | false positives for products of primes larger than 2^16. For example, before this commit: $ /usr/games/primes 4295360521 4295360522 4295360521 but $ /usr/games/factor 4295360521 4295360521: 65539 65539 or $ /usr/games/primes 3825123056546413049 3825123056546413050 3825123056546413049 yet $ /usr/games/factor 3825123056546413049 3825123056546413049: 165479 23115459100831 or $ /usr/games/primes 18446744073709551577 18446744073709551577 although $ /usr/games/factor 18446744073709551577 18446744073709551577: 139646831 132095686967 Incidentally, the above examples show the smallest and largest cases that were erroneously stated as prime in the range 2^32 .. 3825123056546413049 .. 2^64; the primes(6) program now stops at 3825123056546413050 as primality tests on larger integers would be by brute force factorization. In addition, special to the NetBSD version: . for -d option, skip first difference when start is >65537 as it is incorrect . corrected usage to mention both the existing -d as well as the new -h option For original FreeBSD commit message by Colin Percival, see: http://svnweb.freebsd.org/base?view=revision&revision=272166
* 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
* Sort sections. From Henning Petersen in PR 49222.wiz2014-09-191-6/+6
|
* Bump date for -c (exactly one year after previous bump)wiz2014-07-151-2/+2
|
* At suggestion of christos@, use -b for b&w rather than -cpgoyette2014-07-132-8/+8
|
* Provide an option to restore traditional black-and-white mode.pgoyette2014-07-134-6/+18
|
* Reorg docs, part 1:dholland2014-07-052-4/+4
| | | | | | | | | | | | | | | | | | | | | | 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-054-16/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* remove remaining makefile support for GCC < 45 that i found.mrg2014-06-141-2/+2
|
* Add a little color. In order to minimize logic differences, keep 0 as thechristos2014-06-114-24/+46
| | | | empty board value, and since 7 is white, turn white into black (0) when painting.
* Remove unused.skrll2014-03-301-5/+3
|
* Use bool (not int) for a boolean return type.dholland2014-03-302-5/+5
|
* Use the curses beep function instead of writing a beep to stdout.dholland2014-03-301-3/+3
|
* curses has printw, use it.dholland2014-03-301-7/+4
|
* don't use the preprocessor to rename curses functions, just call themdholland2014-03-302-36/+30
|
* fix off-by-onedholland2014-03-301-3/+3
|
* Instead of #define STDIN 0, use STDIN_FILENO.dholland2014-03-301-6/+5
|
* Remove SHORTLEN and LONGLEN defines; use sizeof() properly instead.dholland2014-03-307-53/+57
| | | | Fix two semi-compensating size bugs in wire transmission affecting 64-bit machines.
* Naming reform for socket pieces, akin to what I did in huntd earlier.dholland2014-03-305-57/+58
| | | (but not as comprehensive)
* I wish the socket API didn't require casts. Easy to mess them up.dholland2014-03-302-10/+14
|
* fix obvious mistake (seems to have been there since 4.4)dholland2014-03-301-3/+3
|
* Tidy up list of broadcast addresses.dholland2014-03-301-26/+39
|
* Clean up the handling of the list of hunt daemons.dholland2014-03-303-149/+230
|
* use fewer globalsdholland2014-03-302-19/+14
|
* more cleanupdholland2014-03-301-54/+117
|
* unexpose some globals that server.c previously requireddholland2014-03-303-20/+21
|
* name reform, fewer file staticsdholland2014-03-301-17/+21
|
* goto considered harmfuldholland2014-03-301-95/+111
|
* split off a bunch of the nastier network code into its own filedholland2014-03-304-197/+263
|
* When indexing an array with a char, cast it to unsigned char, not int,dholland2014-03-301-3/+3
| | | | to not only silence the compiler warning but also get the correct behavior.
* Remove all the conditional compilation for INTERNET. Now you can rundholland2014-03-304-167/+224
| | | | | | | this on either a local or internet socket (including via inetd on either) and it will, or is supposed to, DTRT. Does not really support ipv6 yet, but in a number of places will no longer vomit or exhibit UB if it encounters an ipv6 address.
* Clean up the names of the various pieces of socket apparatus.dholland2014-03-304-75/+129
| | | Systematic naming is easier to follow...
* fix non-INTERNET builddholland2014-03-292-6/+8
|
* Er oops, fix previous.dholland2014-03-291-3/+3
|
* Reduce ifdefs by making a common function to talk to either syslogd ordholland2014-03-295-60/+80
| | | stderr.
* group external functions by where they come fromdholland2014-03-291-6/+13
|
* be consistent about whether functions are staticdholland2014-03-291-5/+5
|
* handle compiled-in pathnames the customary waydholland2014-03-294-13/+56
|
* make some globals staticdholland2014-03-292-14/+9
|
* Additional minor cleanup and remove a straggler data declarationdholland2014-03-294-19/+23
| | | from hunt_common.h.
* Group function declarations by which source file they come from, anddholland2014-03-291-28/+36
| | | delete several that don't actually exist.
* be consistent about whether functions are staticdholland2014-03-292-7/+7
|
* sprinkle staticdholland2014-03-294-32/+21
|
* Flush unwanted file.dholland2014-03-292-42/+2
|
* Move definitions to the file they're used in.dholland2014-03-292-11/+11
|
* move a comment that should have gone with its symboldholland2014-03-292-9/+9
|
* Remove tautological #if DEBUG.dholland2014-03-291-15/+2
|
* Split hunt and huntd's includes, instead of incestuously sharing a piledholland2014-03-2910-257/+381
| | | | | | | | | | | | of external data and function declarations between the two programs. Common constants and defines now go in hunt_common.h. Stuff that belongs only to hunt is in hunt/hunt_private.h. Stuff that belongs only to huntd is in huntd/hunt.h. Copy some declarations that are used in both programs under the same names (but are not actually the same objects) from huntd/hunt.h to hunt/hunt_private.h. Move others that are only used in hunt. Remove some entirely unused material, and tidy up standard includes.
* Remove unsafe and unnecessary pointer casts.dholland2014-03-291-7/+6
|