Commit Graph
100 Commits
Author SHA1 Message Date
Jon Trulson c0388656dc tt/mini_isam: add new isam_prototypes.h include file and fix up problems
There were a variety of potential 64b problems due to the complete
lack of prototype declarations.  So, we add a file, isam_prototypes.h,
generated mostly by the 'cproto' tool.

We also fixed up some errors that having proper prototypes pointed
out, mainly in passing ints where pointers were expected and vice
versa.  The iserase() function was supposed to accept a char *, but
was defined as only accepting a char.  Fun stuff like that.
2018-06-30 20:13:39 -06:00
Jon Trulson 0d39bd186f tt/mini_isam: remove all ancient sccsid blocks 2018-06-30 19:10:10 -06:00
Jon Trulson bc7e64195e tt/mini_isam: use proper include, get rid of ultrix strdup 2018-06-30 19:00:20 -06:00
Jon Trulson 392356f6b4 ttsnoop: use tail arg -f rather than +0f
I cannot even find out what "+0f" is supposed to do (google fail), but
this seems a reasonable alternative that should work everywhere.
2018-06-29 14:37:48 -06:00
Jon Trulson af6c2fd881 ttsnoop: drag into a modern C++ century
This program has never worked very well, and it may still not work
very well.  This commit removes the ancient C++ headers and uses
modern replacements with some changes required due to the different
interfaces.

It builds a lot cleaner, and no longer does stupid things like
deleteing char *, ostream.str()'s, and the like.

This program could be really useful if it worked well. Some thought
should be givien in the future to decouple this SW from dtappbuilder
and maybe just rewrite from scratch.
2018-06-29 13:48:06 -06:00
Jon Trulson a4a5413cd5 Merge branch 'master' into cde-next 2018-06-28 16:55:04 -06:00
Jon Trulson 94e69a00a7 dtdocbook/tcl/tclUtil.c: fix merge error 2018-06-27 22:48:30 -06:00
Jon Trulson 6b919c82d2 FreeBSD.cf, OpenBSD.cf: remove -Wno-deprecated-register, no longer needed 2018-06-27 22:30:28 -06:00
Jon Trulson d0dd809b74 lib/tt/mini_isam: remove register keyword 2018-06-27 22:26:18 -06:00
Jon Trulson 44f999c1de dtdocbook/regexp.c, remove register keyword 2018-06-27 22:23:40 -06:00
Jon Trulson e0036e6167 dtudcfonted, dtudcexch: delete from repository 2018-06-27 22:20:34 -06:00
Jon Trulson 53086aa9df util/dttypes: remove register keyword 2018-06-27 22:20:34 -06:00
Jon Trulson 1c822c2f0b nsgmls: remove register keyword 2018-06-27 22:20:34 -06:00
Jon Trulson 38d38987b0 localized/util: remove register keyword 2018-06-27 22:20:34 -06:00
Jon Trulson c1227cc629 dtwm: remove register keyword 2018-06-27 22:20:34 -06:00
Jon Trulson 2d7c1db6fc dtterm: remove register keyword 2018-06-27 22:20:34 -06:00
Jon Trulson 43cdfab6a1 dtstyle: remove register keyword 2018-06-27 22:20:34 -06:00
Jon Trulson d801b00866 dtsr: remove register keyword 2018-06-27 22:20:34 -06:00
Jon Trulson a66948f73e dtscreen: remove register keyword 2018-06-27 22:20:34 -06:00
Jon Trulson 3096ad03a8 dtprintinfo: remove register keyword 2018-06-27 22:20:34 -06:00
Jon Trulson f0a6172d3f dtpad: remove register keyword 2018-06-27 22:20:34 -06:00
Jon Trulson d0a4f777d8 dtmail: remove register keyword 2018-06-27 22:20:34 -06:00
Jon Trulson 88dd3b2c71 dtlogin: remove register keyword 2018-06-27 22:20:34 -06:00
Jon Trulson 97264ba971 dtksh: remove register keyword 2018-06-27 22:20:34 -06:00
Jon Trulson 556ce45298 dtinfo: remove register keyword 2018-06-27 22:20:34 -06:00
Jon Trulson 7c0de21ad4 dtinfo: remove TKTemplate.nd.c 2018-06-27 22:17:25 -06:00
Jon Trulson 424b662372 dtimsstart: remove register keyword 2018-06-27 22:17:25 -06:00
Jon Trulson ea2d3927c7 dtfile: remove register keyword 2018-06-27 22:14:51 -06:00
Jon Trulson 55a80f00cf dtdocbook: remove register keyword 2018-06-27 22:14:51 -06:00
Jon Trulson ca7d34b7ff dtcm: remove register keyword 2018-06-27 22:00:56 -06:00
Jon Trulson b7599ec2a2 dtcalc: remove register keyword 2018-06-27 22:00:56 -06:00
Jon Trulson f4776c21d7 dtappbuilder: remove register keyword 2018-06-27 22:00:56 -06:00
Jon Trulson 3e81f467be dtaction: remove register keyword 2018-06-27 22:00:56 -06:00
Jon Trulson b0fd79a680 tt/bin: remove register keyword 2018-06-27 22:00:56 -06:00
Jon Trulson 34436c7725 tt/lib: remove register keyword 2018-06-27 22:00:56 -06:00
Jon Trulson 904a48b822 lib/pam: remove register keyword 2018-06-27 21:59:18 -06:00
Jon Trulson d5eff36867 lib/pam/examples/login: remove register keyword 2018-06-27 21:59:18 -06:00
Jon Trulson 02c70c739d lib/csa: remove register keyword 2018-06-27 21:59:18 -06:00
Jon Trulson 3b1316112a DtWidget: remove register keyword 2018-06-27 21:58:04 -06:00
Jon Trulson b5a3c00671 DtTerm/util: remove register keyword 2018-06-27 21:58:04 -06:00
Jon Trulson 00aafb206e DtSvc/DtUtil2: remove register keyword 2018-06-27 21:58:04 -06:00
Jon Trulson f446ca54e9 DtSvc/DtUtil1: remove register keyword 2018-06-27 21:58:04 -06:00
Jon Trulson dbef83212a DtSvc/DtEncap: remove register keyword 2018-06-27 21:58:04 -06:00
Jon Trulson 11ad65226d DtSvc/DtCodelibs: remove register keyword 2018-06-27 21:58:04 -06:00
Jon Trulson 57ce407976 lib/DtSearch: remove register keyword 2018-06-27 21:58:04 -06:00
Jon Trulson 8e48100c12 DtSearch/raima: remove register keyword 2018-06-27 21:58:04 -06:00
Jon Trulson b9d605c8ea lib/DtPrint: remove register keyword 2018-06-27 21:58:04 -06:00
Jon Trulson 5b5ac72691 lib/DtHelp: remove register keyword 2018-06-27 21:58:04 -06:00
Jon Trulson 2760adaab3 lib/DtHelp/jpeg: remove register keyword 2018-06-27 21:58:04 -06:00
Jon Trulson e9d0d91cad lib/DtHelp/il: remove register keyword 2018-06-27 21:58:04 -06:00
Jon Trulson 7125b437f1 examples/dtwsm: remove register keyword 2018-06-27 21:58:04 -06:00
Jon Trulson b2a4d3c202 util/dbtoman/instant: remove register keyword 2018-06-27 21:58:04 -06:00
Jon Trulson 4aa9392e98 util/mkshadow: delete ancient unused utility 2018-06-27 21:58:04 -06:00
Jon Trulson 29ea5f794d makedepend: remove register keyword 2018-06-27 21:58:04 -06:00
Jon Trulson c2cabbfa8b Merge branch 'master' into cde-next 2018-06-24 15:46:55 -06:00
Jon Trulson aaa9305653 linux/site.def: use an if !defined() gaurd for DtLocalesToBuild
Without this, you cannot use the command line to select the languages
to build, you would have to edit site.def directly.

With this fix, you can build a language on linux with something like:

make World IMAKE_DEFINES='-DDtLocalesToBuild="de_DE.ISO8859-1 es_ES.ISO8859-1"'

to build the DE (German) and es (Spanish) locales.
2018-06-24 12:48:14 -06:00
Jon Trulson 8c1ad2d3a8 libtt: if local hostname lookup fails, default to localhost
A recurring problem, mainly on the BSD's, and also on some Linux
installations, is a failure for ttsession to start and any clients
trying to attach to it failing due to having a hostname that is not
associated with an IP address.

This is due to code which looks up the hostname, and if it does not
have a valid host record, then TT just fails.

This has required those users to add an alias for their host name in
their /etc/hosts file.

With this commit, this should no longer be necessary.  Now, if
_XGethostbyname() fails when looking up the local name, a default of
"localhost" is used, which should always exist.

This was run tested on Linux and FreeBSD 11.1.  It was compile tested
on OpenBSD 6.2.
2018-06-20 16:59:34 -06:00
Jon Trulson f840359778 OpenBSD: tone down compiler warnings a bit
So many of these are just noise.  Someday maybe we can eliminate
these, but for now they just obscure real problems.
2018-06-15 14:59:04 -06:00
Jon Trulson c63acbc91a CDE-ICONS: create compatibility symlinks as relative rather than absolute
Some icons are actually symlinks to other icons, presumably for
compatibility with older systems.  These were absolute symlinks.  This
commit makes them relative symlinks instead.
2018-06-15 13:58:54 -06:00
Jon Trulson 55b4e2f240 FreeBSD: turn off some warnings
Someday these can be addressed, but for now they are just noise.
2018-06-14 19:08:49 -06:00
Jon Trulson ac883b6972 FreeBSD 11: Fix clang (v6) builds
While CDE builds fine with gcc6 on FreeBSD 11, the default clang build
was broken in a few places.  This commit allows CDE to build now using
the default clang 6 system compiler.
2018-06-14 18:32:35 -06:00
Jon Trulson 825a504a11 XPM: Replace calls to XmeXpm*() with regular Xpm*()
This is no longer needed on modern Motif's.
2018-06-14 16:50:57 -06:00
Jon Trulson 59b83865ef OpenBSD 6+: use installed X11 and Motif
This commit removes the need to setup X11 and motif import symlinks
before building CDE.  With OpenBSD v6+, the installed versions of X11 and
Motif will be used.

This may work with earlier versions of OpenBSD as well, but I don't
have access to those older versions.  If you try it, and it works,
send a patch to the CDE mailing list.

This was tested on OpenBSD 6.2
2018-06-14 14:20:02 -06:00
Jon Trulson f598ed2358 building_release_archive: omit '-src' in archive filename 2018-06-14 13:08:20 -06:00
Jon Trulson 396eff69f7 FreeBSD 11: Don't use imported x11/motif, use installed versions for build
With this patch, the import symlinks for x11 and motif do not need to
be created.  The build will use the installed headers in
/usr/local/include/{X11, Xm}.

This will work for FreeBSD 11 only ATM as I don't have older systems
to test with.

It may work for FreeBSD 10 or earlier versions as well.  If so, edit
config/cf/FreeBSD.cf and change the OSMajorVersion check for
UseInstalledX11 appropriately.  And send a patch to the CDE mailing
list :)
2018-06-13 19:26:55 -06:00
Jon Trulson 0554f2335f dtinfo/freebsd: fix a (int)NULL cast in DtSR_SearchEngine.C
This caused a compilation failure using gcc6 on FBSD 11.1-STABLE.
2018-06-13 17:57:46 -06:00
Jon Trulson c1bef9e8d6 libDtTerm: Fix for a coredump seen on OpenBSD 2018-06-13 13:27:46 -06:00
Jon Trulson 0ec25848e9 cde: change version to 2.2.4a, for a development release 2018-06-08 13:03:39 -06:00
Jon Trulson fd9e74ae42 installCDE: Only install locales that were built
We pass the DtLocalesToBuild to installCDE.src, which can then check
to see what locales were built.  We then only install packages for
those locales.
2018-06-01 21:20:18 -06:00
Jon Trulson ad10797184 site.def: Only build C/en_US locales by default for Linux 2018-06-01 19:47:19 -06:00
Jon Trulson c26dfea26d linux.cf: disable stripping of installed binaries
The build system should not generally strip binaries - that's up to
the packaging systems (for creating 'release' vs. 'debug' packages for
example).
2018-06-01 15:40:50 -06:00
Jon Trulson c7a8cfe18c installCDE: unset FIGNORE to workaround potential ksh bug 2018-06-01 11:32:39 -06:00
Jon Trulson d2cb2b3659 configTT: remove inetd support 2018-05-31 22:23:19 -06:00
Jon Trulson 9a6bd5d35c configMin: remove inetd support, 'pam' support
I'm not sure what the pam stuff wanted to do, but it was disabled
anyway and we do not need it.  Someday, we will want to integrate with
PAM properly, but this wasn't it.
2018-05-31 22:23:19 -06:00
Jon Trulson 2413f0d33f configRun: remove inetd support
I don't believe anyone uses inetd anymore.  If you do, you are on your
own.
2018-05-31 22:23:19 -06:00
Jon Trulson ff4a9e6a60 configRun: leave dtmail alone, UDB handles it's perms correctly 2018-05-31 22:23:19 -06:00
Jon Trulson 20cad57cd4 dtsession: fix screen saver/locking on linux
The POSIX __linux__ commit broke the special detection on linux used
to determine whether a secure system was in use or not.

This commit reworks the logic a little bit to avoid special casing
linux in main().

It also reworks the logic in CanReAuthenticate() to fix up some issues
"fixed" to correct converity warnings.  The logic in this case was
mostly ok, but still didn't account for the proper usage of this
function.  Error detection improved somewhat as a result.
2018-05-31 22:23:19 -06:00
Jon Trulson 76b72bc6ec dtcm: NULL is not 0 2018-05-31 22:23:19 -06:00
Jon Trulson 2a77e84e87 libDtCmP: use TIRPC on linux, fix some warnings 2018-05-31 22:23:19 -06:00
Jon Trulson 2bcd57ce33 dtcm/graphics: NULL is not 0 2018-05-31 22:23:19 -06:00
Jon Trulson ee4a0a37ea rpc.cmsd: use TIRPC on Linux 2018-05-31 22:23:19 -06:00
Jon Trulson a05ab67e12 XlationSvc: remove a "'" added in previous spelling commit that causes warnings 2018-05-31 22:23:19 -06:00
Jon Trulson 8d2fe2486c Imake.tmpl: don't delete logfiles (make.log MakeOut) 2018-05-31 22:23:19 -06:00
Jon Trulson d6d055c981 installCDE.src: Add a -destdir <dir> option
Using this option, all files are installed under <dir> rather than
root '/'.
2018-05-31 22:23:19 -06:00
Jon Trulson 3495287b78 tt_xdr_utils: fix up some warnings 2018-05-25 11:16:04 -06:00
Jon Trulson 7f9634010b tt_old_db: use TT_DB_OK instead of NULL 2018-05-25 10:23:18 -06:00
Jon Trulson 77cdabb8f6 TermPrimSetUtmp: fix lost define broken by last patch 2018-05-24 18:52:53 -06:00
Jon Trulson 3c1736f077 CDE-DEMOS: remove references to Makefile.novell 2018-05-20 13:00:06 -06:00
Jon Trulson beea573d17 CDE-MAN-DEV.udb: remove extra }, added when UXP support was removed 2018-05-15 21:18:53 -06:00
Jon Trulson c936a8c065 dtfile/File.c: implement a hack to fix Ticket #19, tree icons are black
The real issue seems to be a bug in Motif.  The background color for
these tree icons is always black.  Depending on what Palette you have
selected, it's possible for the foreground color to be black.  When
this happens, you will see a black square since both fg and bg are now
black.

You can select another Palette that works (ie: foreground is white)
and the problem goes away.  So, for now, we always force a white
foreground color so the actual symbols are visible in tree mode.
2018-04-29 20:01:43 -06:00
Jon Trulson 17101b6f4c Enable TIRPC support for Linux
This is enabled by default.  To disable, add:

in the config/cf/site.def or host.def file.

You will need to have the libtirpc-dev package installed.

The benefit is that you will no longer need to run rpcbind in insecure
mode (the -i option).  There are other benefits we may be able to take
advantage of in the future, like supporting IPV6 for ToolTalk.
2018-04-12 21:00:34 -06:00
Jon Trulson ae6b787c66 dtbuilder/Imakefile: fix clean target to remove dtbuilder executable 2018-04-12 13:38:38 -06:00
Jon Trulson a1e23fe130 dtfile/FileOp: CID 175228 2018-04-12 11:58:34 -06:00
Jon Trulson 07fe841363 dtfile/FileDialog: CID 175220 2018-04-12 11:45:38 -06:00
Jon Trulson 1321d4c299 dtfile/SharedProcs: CID 175229 2018-04-12 11:30:59 -06:00
Jon Trulson 8e4b6605bf dtfile/dtcopy/sharedFuncs: CID 175225 2018-04-12 11:21:06 -06:00
Jon Trulson fd5fe65616 dtfile/Desktop: CID 175219,175222,175223,175226,175227 2018-04-12 11:10:42 -06:00
Jon Trulson 7c3c03388a dtfile/Encaps: CID 174844 2018-04-11 16:25:52 -06:00
Jon Trulson d8d8508fe3 dtfile/Main: CID 89623 2018-04-11 16:25:52 -06:00
Jon Trulson c73ad48482 dtfile/dtcopy/dosync: CID 89374 2018-04-11 16:25:52 -06:00