Remove unused define CHAR_CHS_FORCE.

OK deraadt@
Increase the size of some window variables from char to int. This diff
improves mg on screens (xterms) with lots of lines.  Testing done by
naddy@ and myself.
There is no need to use an *init* buffer if we go back and update
opened file(s)/*scratch* with default modes after they are open.
Also, pass buffer (bp) to edinit(), this fixes theo mode from the
command line (mg -f theo).
There is no other reference to SYSCLEANUP in the src tree. Remove.
When writing the new volume header to disk, write back the whole
sector rather than just the bytes for the volume header itself.
Silences the "sloppy I/O" warnings triggered by sgi's distrib scripts.

tested and ok deraadt
Use session from -t for killw -a, from Chris Johnsen.
Use RB_FOREACH_SAFE as winlinks are being removed, from Chris Johnsen.
Add pane title to choose-window template and use the right index for the
pane, from Romain Francoise.
improve timer framework; will be needed soon
Make it possible to disable the Sync-on-Green signal by setting the
ARCBios environment variable OSLoadOptions to "nosog".  Now everyone
can enjoy running O2 without an SGI monitor and don't turn vegetarian
afterwards.  All the essential bits come from NetBSD's crmfb driver
except they've chosen to use a "SyncOnGreen" variable not saved by
the ARCS.  Pointers and corrections from and ok miod, jsing
Document a possibility to disable the Sync-on-Green signal by setting
the ARCBios environment variable OSLoadOptions to "nosog".  Reminded
by miod, corrections and ok from jsing.
Fix typo in error message ("Cannot MNT PRC"->RPC)
ok krw@
- introduce text_to_relayhost() which converts an url into a relayhost.
  urls are of the form: [schema://]host[:ip]

not used, yet other commits are following ;-)
- introduce map_static.c as a backend to static maps in parse.y, this has
  the benefit that we no longer have two code paths whenever we deal with
  maps, we can always use the backend mechanism.

I have not plugged this in yet, I'll do it in a later commit, just get it
out of my sandbox
Make 'mount nfssrv:/path' without mount point work again :
- dont error out in realpath() check if argv contains @ or : (ie, is
  a nfs remote path)
- relax getfsspec() call so that it succeeds for nfs remote paths too,
  not only for duid devices.
Now we behave like Linux & FreeBSD (at least)..
Prompted by a diff from giovanni@ for xfce4-mount
ok jsing@ krw@
Fix tyop in error message; this was copied from/to umount(8)'s umount.c which was just fixed.
do not overwrite the table timeout with the global timeout when a
table timeout is set.
ok sthen@ giovanni@ henning@
Reverse part of v1.131.  The end of buffer can still be reached so I
shouldn't have taken out the second check. Hopefully fix unpredicable
scrolling behaviour seen by mikeb@.
in -d mode, display an error message before exiting, in the case the
daemon is not active (happens often to me, as I forget which box has
which daemons).

okay ajacoutot@
pass a file descriptor in the msg_fd instead of a function argument