Commit Graph

473 Commits

Author SHA1 Message Date
chase 90a2b2848a remove ultrix support 2018-09-30 17:27:04 -06:00
Jon Trulson 2dadc23e0e Merge branch 'master' into cde-next 2018-09-22 15:50:13 -06:00
Jon Trulson 6a72e2cea8 Change version to 2.3.0a (devel) 2018-09-20 16:49:01 -06:00
chase bf0b602b9a il: Remove deprecated files 2018-08-26 16:58:38 -06:00
chase 5e96644596 DtsMM.c: Remove null in string 2018-08-26 15:44:47 -06:00
chase d12ad886c1 Remove old windows support 2018-08-25 15:47:54 -06:00
Peter Howkins ddaa606d36 libDtHelp: Cov 88381 2018-08-11 01:28:57 +01:00
Peter Howkins 6a15c3deaa libDtHelp: Cov 88365 2018-08-11 01:26:59 +01:00
Peter Howkins f14e247a41 libDtHelp: Cov 89129 and 88355 2018-08-11 01:18:45 +01:00
Peter Howkins c9f5a14778 libDtHelp: Cov 88302 2018-08-11 01:14:03 +01:00
Peter Howkins 027bc031fd libDtHelp: Cov 88890 and 88294 2018-08-11 01:11:04 +01:00
Peter Howkins b4c10b4d63 libDtHelp: Cov 88275 2018-08-11 01:08:17 +01:00
Peter Howkins 5571bbceae libDtHelp: Cov 88262 and 88459 2018-08-11 01:05:01 +01:00
Peter Howkins f74bf1a29f libDtHelp: Cov 88240 2018-08-11 01:03:23 +01:00
Peter Howkins a97c7370a5 libDtHelp: Cov 88209 2018-08-11 01:01:13 +01:00
Peter Howkins 1c0312de48 libDtHelp: Cov 88162 2018-08-11 00:58:46 +01:00
Peter Howkins 2b2a1225da libDtHelp: Cov 88119 2018-08-11 00:57:11 +01:00
Peter Howkins 30809197c7 libDtHelp: Cov 88109 2018-08-11 00:55:03 +01:00
Peter Howkins 258a7e3803 libDtHelp: Cov 174697 2018-08-11 00:53:10 +01:00
Peter Howkins a895cc3e9c libDtHelp: Cov 89532 2018-08-11 00:51:59 +01:00
Peter Howkins ef54b70ac1 libDtHelp: Cov 89524 2018-08-11 00:50:33 +01:00
Peter Howkins 0be3e91f4d libDtHelp: Cov 89401 2018-08-11 00:47:42 +01:00
Peter Howkins 6441ea4bf4 libDtHelp: Cov 89084 2018-08-11 00:46:06 +01:00
Peter Howkins 7c7e25683b libDtHelp: Cov 89012 2018-08-11 00:44:52 +01:00
Peter Howkins 1ab2d10f01 libDtHelp: Cov 88952 2018-08-11 00:43:46 +01:00
Peter Howkins f896256ec9 libDtHelp: Cov 88724 2018-08-11 00:40:36 +01:00
Peter Howkins d476596c82 libDtHelp: Cov 88526 2018-08-11 00:39:05 +01:00
Peter Howkins e45be6a434 libDtHelp: Cov 88465 2018-08-11 00:37:42 +01:00
Peter Howkins cd09a20dfc libDtHelp: Cov 88221 2018-08-11 00:36:29 +01:00
Peter Howkins a69ed1cf9b libDtHelp: Cov 89366 2018-08-11 00:34:40 +01:00
Peter Howkins e85dfc66be libDtHelp: Cov 89172 2018-08-11 00:32:39 +01:00
Peter Howkins e620df0d0d libDtUtil: Cov 88127 2018-08-11 00:31:12 +01:00
Peter Howkins 8982069031 libDtUtil: Cov 88123 2018-08-11 00:30:24 +01:00
Peter Howkins cb363a5965 libDtHelp: Cov 88084 2018-08-11 00:27:52 +01:00
Peter Howkins 9c2c796d1b libDtHelp: Cov 88527 2018-08-11 00:26:42 +01:00
Peter Howkins b69319e43c libDtHelp: Cov 88839 2018-08-11 00:25:20 +01:00
Peter Howkins 0e66cfee7f libDtHelp: Cov 89582 2018-08-11 00:24:04 +01:00
Peter Howkins db779f870e libDtHelp: Cov 87607 2018-08-11 00:21:18 +01:00
Jon Trulson 050fd75e80 lib/DtSearch/raima/proto.h: fix OBSD build - don't redef system functions
Remove redeclaration of system functions (strlen, free, open, etc).
Use the system header files.  That's what they are for.
2018-07-09 13:11:33 -06:00
Jon Trulson 3d8e76a69f Merge branch 'master' into cde-next
Need to resync before folding current cde-next into master.
2018-07-06 13:19:33 -06:00
Jon Trulson cf86199b19 Stable release: 2.3.0 2018-07-06 12:05:20 -06:00
Jon Trulson 87ad4219da Merge branch 'master' into update-with-master
Resync one last time with master for 2.3 release tomorrow.
2018-07-05 14:18:07 -06:00
Peter Howkins adb9a3d8cd libDtHelp: Coverity 88440 2018-07-04 01:40:12 +01:00
Peter Howkins 1fb5110337 libDtHelp: 88550 2018-07-04 01:38:14 +01:00
Peter Howkins a7e09ae1c3 libDtHelp: Coverity 88665 2018-07-04 01:36:03 +01:00
Peter Howkins 9383267ded libDtHelp: Coverity 88906 2018-07-04 01:34:02 +01:00
Peter Howkins 25c12cad4a libDtHelp: Coverity 88813 2018-07-04 01:32:53 +01:00
Peter Howkins 49b69c257a libDtHelp: Coverity 89548 2018-07-04 01:31:19 +01:00
Peter Howkins 045643d4db libDtHelp: Coverity 88776 2018-07-04 01:29:49 +01:00
Peter Howkins 2a988f5ad3 libDtSearch: Coverity 86459 2018-07-02 23:28:31 +01:00
Peter Howkins 5b1c87fb43 libDtSearch: Coverity 86119 2018-07-02 23:26:51 +01:00
Peter Howkins 7ecbdc866c libDtSearch: Coverity 86602 2018-07-02 23:23:44 +01:00
Peter Howkins 96c6c5068a libDtSearch: Coverity 86426 2018-07-02 23:21:07 +01:00
Peter Howkins 013f452864 libDtSearch: Coverity 86816 2018-07-02 23:18:00 +01:00
Peter Howkins c96a2cfa51 libDtSearch: Coverity 87018 2018-07-02 23:15:57 +01:00
Peter Howkins 95d6b64800 libDtSearch: Coverity 176038 2018-07-02 23:13:43 +01:00
Peter Howkins aa1bfc0ab3 libDtSearch: Coverity 86579 2018-07-02 23:11:36 +01:00
Peter Howkins f0917ee2b5 libDtSearch: Coverity 87032 2018-07-02 23:09:29 +01:00
Peter Howkins 889650ea45 libDtSearch: Coverity 86944 2018-07-02 23:07:39 +01:00
Peter Howkins 0876476cae libDtSearch: Coverity 86856 2018-07-02 23:01:54 +01:00
Peter Howkins c8233c9200 libDtSearch: Coverity 86804 2018-07-02 22:59:03 +01:00
Peter Howkins d7225fde79 libDtSearch: Coverity 86780 2018-07-02 22:55:42 +01:00
Peter Howkins 5854fdca38 libDtSearch: Coverity 86768 2018-07-02 22:53:49 +01:00
Peter Howkins 85166ef293 libDtSearch: Coverity 86762 2018-07-02 22:51:16 +01:00
Peter Howkins 68986baef8 libDtSearch: Coverity 86698 2018-07-02 22:48:20 +01:00
Jon Trulson dc7807b13b slib/mp_rpc_server: TIRPC: force a listen() call on the server socket
With earlier versions of RPC and TIRPC it seems that svctcp_create()
calles listen() on the socket (as seen by debugger and strace).
Tooltalk expects this behavior.

However, with newer systems (ArchLinux 5/18+ and similar bleeding edge
versions of SuSE's equivalent: Tumbleweed), this behavior seems to
have changed.

ttsession goes into an infinite loop trying to accept() a connection
in the TIRPC library (via svc_getreqset()).

It appears listen() is no longer called on the socket when it is
created via svctcp_create().  The hack in this commit, always causes
listen() to be called on the socket, and seems to resolve the problem.

But it is a hack I think.  I don't know if this is the correct
behavior of svctcp_create() or we were just lucky before.
2018-07-01 19:45:09 -06:00
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
Peter Howkins 1294f15d16 libDtSearch: Remove unused C files that have now disapeared with removal of #defines 2018-06-29 19:07:09 +01:00
Peter Howkins 32eb933929 libDtSearch: Convert to ANSI function definitions and use proper prototypes (which causes more warnings 2018-06-29 18:43:11 +01:00
Peter Howkins bcdb2dd909 libDtSearch: Tidy up the LOCK and DBN macro madness 2018-06-29 16:16:21 +01:00
Peter Howkins 60edbd3491 libDtSearch: Untangle large numbers of TASK_ macros that were all unused code 2018-06-29 01:45:29 +01:00
Peter Howkins 86b9a0fee4 libDtSearch: remove NO_COUNTRY code which is always off for CDE 2018-06-29 01:04:55 +01:00
Peter Howkins 9d921ba219 libDtSearch: NO_TIMESTAMP is always on for CDE 2018-06-29 00:47:03 +01:00
Peter Howkins a1ad4ae25b libDtSearch: SINGLE_USER is always defined for CDE 2018-06-29 00:45:23 +01:00
Peter Howkins 550f278889 libDtSearch: NO_TRANS is always on for CDE 2018-06-29 00:43:46 +01:00
Peter Howkins 162fd49971 libDtSearch: Remove define ONE_DB which is always off for CDE 2018-06-29 00:34:56 +01:00
Peter Howkins e5b3c011c6 libDtSearch: Remove optional code for NO_DBN which is not used on CDE 2018-06-29 00:15:06 +01:00
Peter Howkins 605a21046a libDtSearch: remove optional code MULTI_TASK that is not used on CDE 2018-06-29 00:07:36 +01:00
Peter Howkins af9f0e9033 libDtSearch: Enable compiling with const support, remove ability to build without const support. 2018-06-28 19:17:42 +01:00
Peter Howkins 144bca4af7 libDtSearch: Remove optional support for ancient DOS far pointer 2018-06-28 18:59:15 +01:00
Jon Trulson d0dd809b74 lib/tt/mini_isam: remove register keyword 2018-06-27 22:26:18 -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
Peter Howkins 020d592338 libtt: Change to ANSI function definitions 2018-06-28 04:06:47 +01:00
Peter Howkins 6b09b19351 libDtTerm: Change to ANSI function definition 2018-06-28 04:01:19 +01:00
Peter Howkins ba513278b9 libDtSvc: Change to ANSI function definitions 2018-06-28 03:58:49 +01:00
Peter Howkins a5fa1313c4 libDtMrm: Change to ANSI function definitions 2018-06-28 03:56:02 +01:00
Peter Howkins e6f38a9910 libcsa: Change to ANSI function definitions 2018-06-28 03:54:49 +01:00
Peter Howkins e43dbc5460 libDtHelp: Change to ANSI function definitions 2018-06-28 03:53:31 +01:00
chase 6bf175ef2d Remove apollo support 2018-06-24 16:22:37 -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 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 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 a05ab67e12 XlationSvc: remove a "'" added in previous spelling commit that causes warnings 2018-05-31 22:23:19 -06:00
chase 809c3d8bb6 Spelling fixes 2018-05-31 22:23:19 -06:00
Ulrich Wilkens 297b6bd845 Fix warnings on FreeBSD 2018-05-31 22:04:08 -06:00
Ulrich Wilkens 07f272122d Fix Linux rpc problems with new glibc 2018-05-31 18:00:22 -06:00
Ulrich Wilkens 16fbb15ecc Fix BSD and Sun problems after coverity fixes 2018-05-31 17:46:03 -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
chase 4f5e7fe5e3 Use POSIX macros for linux 2018-05-24 18:22:55 -06:00
chase 164e695cd0 remove OSF1 support 2018-05-24 14:25:26 -06:00
chase 0fa51f280f Use /var/spool instead of /usr/spool and /var/mail instead of /usr/mail 2018-05-20 12:30:32 -06:00
chase 07900bd93b Remove Unixware and openserver support 2018-05-20 12:13:07 -06:00
chase 8a4f389634 Remove UXPDS support 2018-05-15 20:27:22 -06:00
chase 3ccf3a8b86 Add missing license headers on *.hh files and others 2018-05-12 15:49:13 -06:00
chase 33d2749ea3 Last of the spelling fixed 2018-04-28 12:36:44 -06:00
chase 6d3a19d8f9 Even more spelling fixed 2018-04-28 12:36:33 -06:00
chase 1fe5a550b2 Fix typo in license headers 2018-04-28 12:30:20 -06:00
chase 0aa8780fa1 Small spelling fixes 2018-04-25 19:40:19 -06:00
Peter Howkins 9088d6b54e libtt: Fixes for Coverity fixes that I thought I'd already fixed. 2018-04-24 00:05:56 +01:00
Peter Howkins 68de09848b Merge branch 'cde-fixups-1' of ssh://git.code.sf.net/p/cdesktopenv/code into cde-fixups-1 2018-04-23 02:21:30 +01:00
chase 07722f5c13 More spelling fixes 2018-04-22 12:15:08 -06:00
chase 1817f335c6 Fix various spelling errors 2018-04-22 12:14:43 -06:00
Peter Howkins 22071fd62a libtt: Further coverity fixes 2018-04-20 22:57:47 +01:00
Peter Howkins 02d43dabe6 libtt: Coverity fixes related to uninitialised fields in classes. 2018-04-18 01:28:03 +01:00
Peter Howkins caef8edac0 various: You cannot use the destination of snprintf as one of the srcs, undefined 2018-04-14 01:23:48 +01:00
Peter Howkins fee6003be1 libtt: More coverity fixes 2018-04-13 19:08:50 +01: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
Peter Howkins 691dffb076 lidtsvc: coverity fixes 2018-04-12 01:38:02 +01:00
Peter Howkins 91bb9a037a libtt: resolve coverity issues related to double close() 2018-04-12 00:04:13 +01:00
Peter Howkins 30ad8e35e5 libtt: Resolve coverity warnings 2018-04-11 19:31:03 +01:00
Jon Trulson f4e3cb8327 dthelp/FormatUtils: fix coredump in dthelpgen due to free() of a bad address 2018-04-10 16:30:25 -06:00
Peter Howkins ccab0597ed libdtterm: Resolve coverity issues 2018-04-04 19:48:23 +01:00
Jon Trulson 4e61c62742 libDtSearch/dtsrapi.c: Coverity CID 86857; dest buf too small 2018-04-02 17:02:16 -06:00
Peter Howkins acc3d8868a libdtsvc: Resolve coverity warnings related to 'dereference before null check' related to free() 2018-04-02 22:10:46 +01:00
Peter Howkins b0c5941e3e libdtsvc: Compiler warning prevention 2018-04-02 21:31:50 +01:00
Jon Trulson 78110e7921 libtt/isrepair.c: coverity CID 86705; uninit ptr read 2018-04-01 14:25:34 -06:00
Jon Trulson 5729327cc8 dtexec,DtSvc/MsgLog.c: coverity CID 89585; resource leak 2018-04-01 13:54:22 -06:00
Jon Trulson 9412da725b libtt/tt_file_system.C: coverity CID 86024; array vs singlton 2018-03-31 19:05:35 -06:00