Commit Graph

604 Commits

Author SHA1 Message Date
Patrick Georgi c48ec3adff lib/DtTerm: Remove dead assignments, initializations and increments
This shouldn't change behavior (or even object code) at all because
those assignments are all without effect. Removing that code removes
noise which helps working with code analysis tools.
2024-01-05 18:44:19 -07:00
Patrick Georgi a5b5eb0f80 lib/DtTerm: Fix copy&paste error
This avoids using an uninitialized variable by using the initialized
variable that is obviously the right one in the context.
2024-01-05 18:44:19 -07:00
Patrick Georgi e2aa3e665b DtTerm/TermPrimUtil: Use mkstemp instead of mktemp 2024-01-03 22:51:58 +01:00
Patrick Georgi 9dca44513c DtTerm/TermPrimUtil: Use 6 'X's in mktemp template
Some implementations (e.g. glibc) require that, while implementations
that are fine with 5 of them still work the same (just with one more
constant letter)
2024-01-03 22:51:50 +01:00
hyousatsu b577546819 tt: make the ttserver process events properly. 2023-06-12 09:48:42 +00:00
hyousatsu 760d36bfe9 dtlogin: use sessreg to manage utmp/wtmp. 2023-03-27 08:48:27 +00:00
Jon Trulson 1f101d22f0 lib/DtHelp: strmove(): return memmove() result 2023-02-18 15:50:28 -07:00
Cy Schubert 8a24d70d5e Fix build under LLVM15
Fix many -Wint-conversion errors such as the example below, including
an aso atomics error.

connect.c:87:12: error: incompatible pointer to integer conversion initializing 'LONG' (aka 'int') with an expression of type 'void *' [-Wint-conversion]
   DB_ADDR mdba = NULL;   /* db address of current member record */
           ^      ~~~~
2023-02-18 14:47:38 -07:00
hyousatsu d500c61527 DtTerm: fix a segfault by allocating a string dynamically. 2023-01-12 15:07:20 +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 06863e826e lib/DtTerm/TermPrim: clean up defines 2022-08-06 11:31:50 -06:00
Chase b38c2b02a8 Remove detected -lcrypt flag 2022-08-06 11:31:50 -06:00
Chase 60e60b9836 configure: detect libm 2022-07-31 18:33:49 -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
Peter Howkins 1f5ec7f034 Allow the window manager to handle centered, fit and fill backdrops 2022-07-06 17:00:49 -06:00
Liang Chang c3b1d645a9 DtUtil1: fix a pointer casting issue. 2022-04-15 13:33:24 -04: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
Liang Chang 14c89d4578 DtSearch: processing multibyte characters based on locale settings
to avoid confusion.
2022-03-03 13:44:26 +00:00
Jon Trulson 06460abd36 DtSvc/MsgLog.c: remove extra 'noise' around log events
Previous:
-=-=-=-=
*** INFORMATION(0): dtwm: PID 1758056: Sun Feb 27 15:49:37 2022
Workspace Manager: XmeRenderTableGetDefaultFont() failed, trying a fixed font

*** [142]

-=-=-=-=

New:
-=-=-=-=
*** INFORMATION(0): dtwm: PID 1758839: Sun Feb 27 15:54:09 2022
Workspace Manager: XmeRenderTableGetDefaultFont() failed, trying a fixed font
[142 bytes]

-=-=-=-=
2022-02-27 15:58:48 -07:00
Liang Chang 9077b5fd85 DtSearch: fix a crash. 2022-02-07 09:48:23 +08:00
Liang Chang 0a523304b6 DtMmdb: fix a yacc syntax error. 2022-02-07 09:48:23 +08:00
Liang Chang d985889b74 lib: update Makefile.am. 2022-02-01 09:32:31 +08:00
Liang Chang b4ffb694bd Merge branch 'master' into dtdocbook 2022-01-30 08:04:32 +08:00
Liang Chang ec433c3eaa DtHelp: keep processing even when some fonts are missing. 2022-01-26 19:50:38 +08:00
Liang Chang f3965ed394 DtHelp: use system locales. 2022-01-26 19:50:11 +08:00
Liang Chang 3c67bd0cb1 DtEncap: use system locales. 2022-01-26 19:50:11 +08:00
Liang Chang e93b2bc626 DtMmdb: move to lib directory as a standalone library. 2022-01-26 19:50:11 +08:00
Liang Chang c6661c92c9 dtdocbook: merge dtinfogen into dtdocbook. 2022-01-26 19:50:11 +08:00
Peter Howkins 5a763ae48b libtt: Resolve format-overflow issues 2021-12-24 10:50:28 -07:00
Peter Howkins 35c9fd24a3 libcsa: Resolve uninitialized warnings 2021-12-24 10:50:28 -07:00
Peter Howkins fa4fe1fb47 libdtterm: Resolve uninitialized warnings 2021-12-24 10:50:28 -07:00
Peter Howkins 108c2fab2c libdtprint: Resolve uninitialized warnings 2021-12-24 10:50:28 -07:00
Peter Howkins 37e03a1820 libdtwidget: resolve uninitialized warnings 2021-12-24 10:50:27 -07:00
Peter Howkins 182aa9fe5a libdtsearch: Resolve uninitialized warnings 2021-12-24 10:50:27 -07:00
Peter Howkins 320576e069 libdthelp: Resolve uninitialized warnings 2021-12-24 10:50:27 -07:00
Peter Howkins b807066429 libdtsvc: Resolve Uninitialized warnings 2021-12-24 10:50:27 -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 931bcaa494 dtsr, DtSearch: finish removing need for BYTE_SWAP define 2021-12-21 16:42:29 -07:00
Jon Trulson 3a0c2ae879 Move DtXinerama.h and PamSvc.h into include/Dt/ 2021-12-21 16:42:29 -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