Commit Graph

215 Commits

Author SHA1 Message Date
Peter Howkins dd3fd3ddf8 lib/tt/mini_isam: Update to use strict prototypes, required for C23/GCC 15 etc 2025-12-23 17:34:45 +00:00
Chase 36b6f82ee8 ttce2xdr: use autoconf substitutions 2025-12-20 12:32:46 -07:00
Patrick Georgi 1a524cb93a lib/tt: Align types
int, long, and Recno are close enough but newer compilers became more
strict about nominal vs structural compatibility.
2025-12-18 22:58:26 +01:00
Patrick Georgi acdee57318 Fix issues with va_lists
Identified by clangsa.
2025-12-18 22:58:26 +01:00
Patrick Georgi ccbf6a8f8f lib/tt: pass int by ref 2025-12-18 22:58:26 +01:00
Chase 44a8e2bb4f poll.h: fix ordering 2025-12-14 13:28:17 -07:00
Chase e64189f19d Feature test for poll.h 2025-12-14 13:27:55 -07:00
Jon Trulson 76b99355ce fix: t_optmgmt: Incorrect options format
From a diff file provided by Mariusz Zynel:

    Every time, every dt program gives that error on its
    start. t_optmgmt() is called once in _tt_tli_set_nodelay(), as the
    name says, to set TCP_NODELAY option for ToolTalk connections.
2025-11-15 13:09:49 -07:00
b'Jon Trulson bb0a127a84 Merge /u/runlevel5/cde/ branch print-help-gcc15 into master
https://sourceforge.net/p/cdesktopenv/code/merge-requests/75/
2025-04-16 18:35:44 +00:00
Trung Lê 37aaaf424e tt/mini_isam: explicitly declare compfunc parameters
qsort() needs compfunc(const void *, const void *) instead of (char *, char *)
2025-04-16 00:01:20 +10:00
Trung Lê 509c722936 tt/ttauth: Update print_help()
Ensure callers use 2 parameters for the call
2025-04-01 10:06:56 +11:00
hyousatsu b577546819 tt: make the ttserver process events properly. 2023-06-12 09:48:42 +00:00
Jon Trulson f0494103c3 Delete all unused/obsolete .elist files
These (export lists) aren't needed on modern compilers and haven't
been for quite awhile (like 2+ decades).
2022-08-06 17:59:05 -06:00
Jon Trulson 2d0c4d6d39 Kill off OSMAJORVERSION and OSMINORVERSION defines/cpp flags
This has meant very little for a long time as configure.ac just
hardcoded these values depending on the current OS versions at the
time.

The only place where this is really 'needed' is XlationSvc.c in DtSvc
so that differences between locale specifications on various versions
of an OS can be accounted for. So for now, we just define those when
building DtSvc.

We could probably safely remove them as well with an update to the
Xlate locale DB to remove ancient cruft we don't care about anymore.

For various other modules, like dtlogin, dtsession, etc we just use
the code that was already being used due to the hardcoded values we've
had for the last 10-ish years.
2022-08-06 17:57:44 -06:00
Jon Trulson 37367d5e12 libtt: remove OPT_LOCAL_MOUNT_TYPE, OS_VERSION - never used anywhere
OS_VERSION was used with a '#if defined(sun)', but since it was never
set anywhere it just omitted that block.  If the block turns up to be
broken on sun systems, then someone will fix it properly.
2022-08-06 17:57:44 -06:00
Chase 45cee195bd Generify source code
Previously we would fail in some parts of the code if we did not have a
premade configuration, now we use any code that was marked as Linux, BSD and
Solaris as our basis in order to support building unknown Unix systems.
2022-08-06 11:31:51 -06:00
Chase b38c2b02a8 Remove detected -lcrypt flag 2022-08-06 11:31:50 -06:00
Chase 9a9d586e87 configure: detect libdl 2022-07-31 18:33:49 -06:00
Chase edf4319548 Discontinue HPUX support 2022-07-23 17:49:33 -06:00
Liang Chang 1adb29e6a7 tt: remove an unnecessary macro definition. 2022-03-25 16:02:53 -06:00
Liang Chang 0797e9ca72 tt: ensure all versions of mapping can be deleted from portmap. 2022-03-25 15:24:31 -06:00
Liang Chang 2e69f83d33 tt: ensure ttsession is shut down properly. 2022-03-23 23:54:31 +00:00
Liang Chang 1ac963d735 tt: prevent superfluous ttsession processes. 2022-03-24 14:49:03 +00:00
Peter Howkins 5a763ae48b libtt: Resolve format-overflow issues 2021-12-24 10:50:28 -07:00
Peter Howkins 35e94e3878 libtt: Resolve uninitialized warningss 2021-12-24 10:50:27 -07:00
Jon Trulson 31774af2f2 library versioning: try to keep the versions at 2.1.0 for all platforms 2021-12-23 13:06:44 -07:00
Jon Trulson 3a0e92adb6 Rename autotools_config.h to cde_config.h to better reflect it's ownership. 2021-12-22 13:21:43 -07:00
Jon Trulson 1b67815df2 configure, libtt: add check for rpc_inline_t and define if not supported 2021-12-22 13:14:55 -07:00
Jon Trulson e10d06f210 configure/Makefiles: add checks for Xmu, Xext, and Xdmcp
We also remove sun pro specific options, and do some general cleanup
as well as remove hardcoded library refs like -lXm, -lXext, etc...
2021-12-21 16:42:22 -07:00
Jon Trulson 17602b4d21 Library (.so) versioning: preserve previous library version
Ticket #120

Change libtool's shared library version info to 3:0:1 to preserve the
previous library version of 2.1.0.

See https://autotools.io/libtool/version.html for the details on how
libtool handles this versioning info.

See https://verbump.de/ for a handy 'version calculator' using
libtools rules.
2021-12-16 12:40:15 -07:00
Jon Trulson e7d657c376 libtt: remove hardcoded -lstdc++ used to build TT library
Hardcoding a -lstdc++ is wrong, since not all OSs are likely to handle
C++ in the same way.

The issue is that libtt needs to be built as a C++ library, so we use
a fake dummy.cxx file to convince libtool to do so instead, rather
than trying to force the issue by linking a (possibly missing)
libstdc++.
2021-12-13 16:44:01 -07:00
Jon Trulson a5a2d937cb Automate versioning for CDE, set current version to 2.4.0b
Previously in the imake world, changing the CDE version required hand
editing a handful of files.

This commit makes these files into ".in" files.  configure.ac now
holds CDE version information -- both in the AC_INIT() call and in the
CDE_VERSION_* variables a few lines down.

Changing the CDE version now involves editing those two locations in
configure.ac only.

Thereafter, a configure run will replace version information in the
following files with the current CDE version:

copyright
doc/common/help/HELPEnt.sgm
include/Dt/Dt.h
lib/tt/bin/ttauth/ttauth.man

This also causes a catch-22 problem with ToolTalk.  So the
tooltalk.inc file is gone and the relevant TT Makefiles have been
modified to set and define the TT version in those Makefiles that
actually use it.
2021-12-13 16:43:42 -07:00
Jon Trulson c479fe7b9e Fix some logical-not-parentheses warnings 2021-12-11 17:39:35 -07:00
Jon Trulson f61316c4f4 tt_ldpath: fix broken logic in find_lib 2021-10-23 14:50:40 -06:00
Jon Trulson be6bc0aa54 Remove some unused imake *.tmpl files
We still keep some of them for doc/ and dtinfo until those are
building properly.
2021-09-19 14:42:11 -06:00
b'Jon Trulson d43e6bd6c2 Merge /u/obache/cdesktopenv/ branch fix/missing-version-bump into master
https://sourceforge.net/p/cdesktopenv/code/merge-requests/31/
2021-09-19 18:57:22 +00:00
OBATA Akio 692771fb07 Get rid of support of ancient signal handler return type int
Such environments are missing void type, older K&R C, and
such supports already had been removed in various places.
Furthermore, current hardcoded 'SIGNALRETURNSINT' is wrong.
2021-09-19 18:08:41 +09:00
OBATA Akio 483a4c314f lib/tt: fix missing version bump 2021-09-14 18:40:29 +09:00
Jon Trulson 369b3e89d9 Begin removal of some Imakefiles, and other no longer useful cruft
This commit will not completely remove all Imake files, specifically
those for sections that have not been completed yet.

Also, the databases dir has been moved to databases-delete-later until
we have everything building and installed properly.
2021-07-03 18:23:40 -06:00
Jon Trulson 727baab329 Bump version to 2.4.0a for upcoming merge 2021-07-03 17:24:22 -06:00
Jon Trulson 5a03b6a5e8 Merge branch 'master' into autotools-conversion 2021-07-03 16:56:54 -06:00
Jon Trulson 8e4de15495 Bump version to 2.4.0 for release 2021-07-03 13:35:15 -06:00
Jon Trulson 49adbfb25d Bump devel version to 2.3.2c 2021-06-02 19:56:30 -06:00
Lev Kujawski a6ea2a2d52 Centralize catgets() calls through MsgCat
CDE has relied upon catgets() implementations following a relaxed
interpretation of the XPG internationalization standard that ignored
-1, the standard error value returned by catopen, as the catalog
argument. However, this same behavior causes segmentation faults with
the musl C library.

This patch:

- Centralizes (with the exception of ToolTalk) all calls to catopen(),
  catgets(), and catclose() through MsgCat within the DtSvc library.
- Prevents calls to catgets() and catclose() that rely upon
  undefined behavior.
- Eliminates a number of bespoke catgets() wrappers, including multiple
  redundant caching implementations designed to work around a design
  peculiarity in HP/UX.
- Eases building CDE without XPG internationalization support by providing
  the appropriate macros.
2021-06-02 19:55:15 -06:00
Jon Trulson e8345c9241 autotools: specify tirpc lib to link the tooltalk binaries
Newer ubuntu's do not seem to honor the implied library dependency of
libtt->libtirpc, so we must explicitly specify libtirpc when linking
them.
2021-06-01 18:23:46 -06:00
Jon Trulson 616dd16c70 Bump devel version to 2.3.2c 2021-05-30 14:54:23 -06:00
Lev Kujawski 7010b2c11b Centralize catgets() calls through MsgCat
CDE has relied upon catgets() implementations following a relaxed
interpretation of the XPG internationalization standard that ignored
-1, the standard error value returned by catopen, as the catalog
argument. However, this same behavior causes segmentation faults with
the musl C library.

This patch:

- Centralizes (with the exception of ToolTalk) all calls to catopen(),
  catgets(), and catclose() through MsgCat within the DtSvc library.
- Prevents calls to catgets() and catclose() that rely upon
  undefined behavior.
- Eliminates a number of bespoke catgets() wrappers, including multiple
  redundant caching implementations designed to work around a design
  peculiarity in HP/UX.
- Eases building CDE without XPG internationalization support by providing
  the appropriate macros.
2021-01-31 16:17:13 -07:00
Jon Trulson ece5c0ea14 Merge branch 'master' into autotools-conversion
Lost the ksh93 submodule so will re-add in a later commit.
2021-01-30 19:04:10 -07:00
Jon Trulson eb381022a5 Change version to 2.3.2b for the new ksh93 submodule merge 2021-01-30 16:32:41 -07:00
Lev Kujawski d14d956c00 Rename functions within ToolTalk that conflict with the musl C library headers. 2021-01-10 18:08:00 -07:00