Commit Graph

1943 Commits

Author SHA1 Message Date
christos
355dba76e5 adhere to stricter groff checking:
- 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
2014-09-30 20:46:59 +00:00
wiz
2a65137f55 Sort sections. From Henning Petersen in PR 49222. 2014-09-19 16:02:58 +00:00
wiz
3039a5421b Bump date for -c (exactly one year after previous bump) 2014-07-15 16:17:15 +00:00
pgoyette
990812d69b At suggestion of christos@, use -b for b&w rather than -c 2014-07-13 17:38:38 +00:00
pgoyette
68006fcab2 Provide an option to restore traditional black-and-white mode. 2014-07-13 16:23:55 +00:00
dholland
b7b7574d3b Reorg docs, part 1:
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.
2014-07-05 19:22:41 +00:00
dholland
c3ab26950f Rework /usr/share/doc.
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.
2014-07-05 19:22:02 +00:00
mrg
ac641cb906 remove remaining makefile support for GCC < 45 that i found. 2014-06-14 20:49:36 +00:00
christos
a5d2792650 Add a little color. In order to minimize logic differences, keep 0 as the
empty board value, and since 7 is white, turn white into black (0) when
painting.
2014-06-11 16:47:39 +00:00
skrll
eec6f7013a Remove unused. 2014-03-30 09:11:50 +00:00
dholland
9cdcb5fdab Use bool (not int) for a boolean return type. 2014-03-30 05:53:12 +00:00
dholland
f2f2077532 Use the curses beep function instead of writing a beep to stdout. 2014-03-30 05:48:35 +00:00
dholland
3d0af5d09f curses has printw, use it. 2014-03-30 05:46:54 +00:00
dholland
7a606e3ec4 don't use the preprocessor to rename curses functions, just call them 2014-03-30 05:44:55 +00:00
dholland
290fd62765 fix off-by-one 2014-03-30 05:41:50 +00:00
dholland
ea57ad9ea1 Instead of #define STDIN 0, use STDIN_FILENO. 2014-03-30 05:38:13 +00:00
dholland
c560d1b163 Remove SHORTLEN and LONGLEN defines; use sizeof() properly instead.
Fix two semi-compensating size bugs in wire transmission affecting
64-bit machines.
2014-03-30 05:30:28 +00:00
dholland
b57df0f022 Naming reform for socket pieces, akin to what I did in huntd earlier.
(but not as comprehensive)
2014-03-30 05:14:47 +00:00
dholland
5c657efd0e I wish the socket API didn't require casts. Easy to mess them up. 2014-03-30 04:57:37 +00:00
dholland
e25cca1c03 fix obvious mistake (seems to have been there since 4.4) 2014-03-30 04:40:50 +00:00
dholland
90606027c5 Tidy up list of broadcast addresses. 2014-03-30 04:39:40 +00:00
dholland
319c22dff7 Clean up the handling of the list of hunt daemons. 2014-03-30 04:31:21 +00:00
dholland
2509088ed2 use fewer globals 2014-03-30 03:35:26 +00:00
dholland
78a2d83843 more cleanup 2014-03-30 03:26:19 +00:00
dholland
15043e8a8f unexpose some globals that server.c previously required 2014-03-30 02:58:25 +00:00
dholland
3d3dd0d453 name reform, fewer file statics 2014-03-30 02:53:11 +00:00
dholland
61623de9c7 goto considered harmful 2014-03-30 02:46:57 +00:00
dholland
082c40f53a split off a bunch of the nastier network code into its own file 2014-03-30 02:26:09 +00:00
dholland
38f4986ae9 When indexing an array with a char, cast it to unsigned char, not int,
to not only silence the compiler warning but also get the correct
behavior.
2014-03-30 02:11:25 +00:00
dholland
9e2af583dd Remove all the conditional compilation for INTERNET. Now you can run
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.
2014-03-30 01:44:37 +00:00
dholland
8c7631b6e4 Clean up the names of the various pieces of socket apparatus.
Systematic naming is easier to follow...
2014-03-30 00:26:58 +00:00
dholland
f0ab07d690 fix non-INTERNET build 2014-03-29 23:44:38 +00:00
dholland
ec434f4b81 Er oops, fix previous. 2014-03-29 22:30:27 +00:00
dholland
865e0d6472 Reduce ifdefs by making a common function to talk to either syslogd or
stderr.
2014-03-29 22:29:55 +00:00
dholland
375031264b group external functions by where they come from 2014-03-29 22:15:26 +00:00
dholland
80f7486c03 be consistent about whether functions are static 2014-03-29 22:15:13 +00:00
dholland
98db4e3267 handle compiled-in pathnames the customary way 2014-03-29 22:11:19 +00:00
dholland
af8c06ff02 make some globals static 2014-03-29 22:05:44 +00:00
dholland
ecca92983f Additional minor cleanup and remove a straggler data declaration
from hunt_common.h.
2014-03-29 21:55:59 +00:00
dholland
506bf125f4 Group function declarations by which source file they come from, and
delete several that don't actually exist.
2014-03-29 21:43:46 +00:00
dholland
e195993756 be consistent about whether functions are static 2014-03-29 21:38:54 +00:00
dholland
b19465b277 sprinkle static 2014-03-29 21:33:41 +00:00
dholland
f1eb9b5b9c Flush unwanted file. 2014-03-29 21:27:40 +00:00
dholland
39032702fc Move definitions to the file they're used in. 2014-03-29 21:27:08 +00:00
dholland
15b06d8071 move a comment that should have gone with its symbol 2014-03-29 21:25:35 +00:00
dholland
b833a6b3f7 Remove tautological #if DEBUG. 2014-03-29 21:24:56 +00:00
dholland
ff658bd09f Split hunt and huntd's includes, instead of incestuously sharing a pile
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.
2014-03-29 21:24:26 +00:00
dholland
d07915f9b3 Remove unsafe and unnecessary pointer casts. 2014-03-29 20:53:55 +00:00
dholland
c6e948ac19 catch up to huntd changes.
XXX: this needs to stop promiscuously sharing .h files.
2014-03-29 20:52:13 +00:00
dholland
8f371b472c tsort contents of file 2014-03-29 20:44:20 +00:00