dtscreen: Resolve a -Wformat-security warning.
dtscreen: Resolve (all) 11 warnigns caused by -Wall
dtcalc: Convert functions from K&R to ansi declarations.
dtcalc: Further remove K&R function prototypes and replace with ANSI.
set AvoidNullMakeCommand on OpenBSD to avoid make warnings
Remove hack adding csu objects to the linker command line on OpenBSD.

This is no longer needed now that $(CC) is used to link shared libraries.
Do not build motif manpages any more.
Use /usr/sbin/sendmail as default mailer on OpenBSD.
On OpenBSD, use FILE_MAP_OPTIMIZED.

This has the effect of not performing a tt call each time in
ResolveLocalPathName() if we're on the local host anyway.  Drastically reduces
dtfile startup time.
dtcalc: Resolve 82 warnings causing by enabling -Wall
dtaction: Resolve 8 warnings caused by -Wall
Use same SIGCHLD handling for OpenBSD as for OSF.
Correct paths to xterm as failsafe client on the BSDs.
dtgreet: Do not crash if LANG is not set in the environment.

In that case, catopen() will have never been called, and we'd feed 0 as the
first argument to catgets().  This crashes, at least on OpenBSD.
Respect CDE_CONFIGURATION_TOP and CDE_INSTALLATION_TOP.

Do not hardcode /etc/dt and /usr/dt.
Set NATIVEXBINDIR on OpenBSD.
Revert "Older Linux installations do not have svcfd_create()."

This reverts commit 44e384aedb3b8aabbd3c556af28848fc58c09c60.

This code is actually needed.  If svcfd_create() is not available, it
should be fixed only for those systems that it affects.
Keep track of the length of the string in ExpandVariables().

On OpenBSD, the 'S' option to malloc(3) enables guard pages (among other
things).  This loop could have triggered this trap when reading beyond the
buffer.  Also, the whole "while(*ip)" construct was based on the assumption that
the memory after the string is always zero-filled.
Introduce DTKORNSHELL, analogous to KORNSHELL.

DTKORNSHELL is used to specify the install location of dtksh on your system,
preventing hardcoding of /usr/dt/bin/dtksh in Shebang lines and such.
Avoid negative array subscript; break out of the loop if that happens.