Commit Graph

136 Commits

Author SHA1 Message Date
Patrick Georgi 7ab683d29a handle missing return values 2025-12-18 22:58:26 +01:00
Patrick Georgi ae001c320f fix misleading indentation
Mostly to shut up the compiler, but some real bugs hidden in there.
2025-12-18 22:58:26 +01:00
Patrick Georgi ae767ed3dc Mark error handlers as "noreturn"
Match X headers to satisfy newer compilers.
2025-12-18 22:58:26 +01:00
Chase 48aaa75f11 dtfile: use sh instead of ksh for find command 2025-11-25 12:12:49 -07:00
Jon Trulson 61dbd624b2 dtfile/dterror.ds: fix script defines typo 2023-02-18 15:25:53 -07:00
Peter Howkins 85022e0218 (Pascal Stumpf) Makefile.am change several places where ${prefix} should be $(CDE_INSTALLATION_TOP) 2023-01-22 23:23:53 +00:00
Chase edf4319548 Discontinue HPUX support 2022-07-23 17:49:33 -06:00
Chase bd83b53d56 dtfile/dtcopy: remove duplicate icons 2022-07-23 17:49:33 -06:00
Jon Trulson 49c73d57ec dtfile: make sure dterror.ds is generated and installed 2022-02-21 14:03:12 -07:00
Peter Howkins 5f784d1013 dtfile: Resolve format-overflow issues 2021-12-24 10:50:28 -07:00
Peter Howkins 207253b401 dtfile: Resolve uninitialized warnings 2021-12-24 10:50:28 -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
Peter Howkins 021a5ef691 dtfile: Resolve warnings about format string overflow.s 2021-11-25 04:58:01 +00:00
Jon Trulson cc60fb8241 configure: remove freetype checks, we do not need freetype anymore 2021-07-08 16:35:51 -06:00
Jon Trulson 51646fb06a programs/: remove Imakefiles for completed modules 2021-07-03 19:12:43 -06:00
Liang Chang fc118ea6f8 dtfile: fix a segmentation fault that occurred when drag and drop file with the
same name.
2021-06-02 19:56:27 -06:00
Lev Kujawski 356ac2f327 Purge unused Freetype dependency from CDE
config/cf/{DragonFly,OpenBSD,darwin}.cf: Remove Freetype imake settings
config/cf/darwinLib.tmpl: Do not link against Freetype
debian/control: Remove Freetype and Xft dependencies
*/Imakefile: Purge Freetype includes

lib/DtWidget/ComboBoxP.h
lib/DtWidget/SpinBoxP.h
programs/dtfile/ChangeDirP.c
programs/dtlogin/vgcallback.c
    Undefine USE_XFT so Motif 2.3 doesn't pull in Freetype

CDE included Freetype and Xft solely to satisfy builds of Motif with
Xft support enabled. However, as CDE only supports bitmap fonts, this
dependency was entirely superfluous and unnecessarily broke backwards
compatibility with older systems.
2021-06-02 19:56:26 -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 5852c4742f Fix erroneous uses of ${prefix} rather than $(CDE_INSTALLATION_TOP)
Some Makefiles use prefix when they should be using
CDE_INSTALLATION_TOP.

Patch by Peter G.
2020-03-23 13:10:07 -06:00
Jon Trulson 7f4889f348 freetype: redo the way we detect and use
We (configure) relies on freetype-config existing and telling us what
the proper includes and libs are.
2020-01-05 18:11:52 -07:00
Jon Trulson c329d5cfd7 Remove $(TIRPCINC) from all Makefile.am files - it no longer exists
Also, restructure some of the dependencies in the lib/tt binaries.  We
will link with libtt (which will include libtirpc as a dependency),
and XTOOLLIB - all the right X11 stuff without needing to add it to
every OS.  Removed several uneeded OS specializations ("if LINUX",
etc) as a result.
2019-11-20 18:52:29 -07:00
Jon Trulson eb1ded1dc6 dtfile: GENCPP, be consistent with SCRIPTFLAGS 2019-10-30 20:52:34 -06:00
Jon Trulson 25e98da92e dtfile: still working on cpp issues, a better solution is needed
I think it's time to try tradcpp.
2019-10-30 18:59:25 -06:00
Jon Trulson 62e6e5c58c dtfile: make it build 2019-10-30 10:59:45 -06:00
Jon Trulson 24171c3194 configure: add programs/ dthelp, dsdm, dtmail, dtpad, and dtfile
At this stage, these certainly won't actually build yet.

Just fix up the relevent Makefile.am files so that autogen does not
emit errors and warnings for them.

Removed AIX/HPUX support in Makefile.am files.  No point in
propogating that stuff when we've already removed much of that
unmaintained code from the codebase.

Commented out all of the Sun Pro stuff.  Someone whos using that will
need to go through and fix it.  This is mostly in dtmail and dthelp.

In fact, someone who does Solaris in general will need to go through
this stuff.

Next up, we'll replace any remaining 'if SUN' conditionals with 'if
SOLARIS' which is a more appropriate name and was already defined in
configure.ac.

Then we'll see about getting these new directories building.
2019-10-28 18:54:17 -06:00
Chase febc0c45c1 programs/dtfile: add automake files 2019-10-23 15:34:20 -06:00
Jon Trulson 1972d3e378 dtfile: Add scroll wheel support
This patch was manually added via a diff supplied from a user on the
CDE mailing list: Michele Ghisolfo <ghisolfo.m@gmail.com>
2019-10-14 14:34:56 -06:00
chase dd68514e4f Remove hpversion.h from repository
This patch removes hpversion.h from the repository, this also untangles a
lot of ifdef mess. This closes bug CDExc19524.
2018-10-06 17:00:38 -06:00
chase 90a2b2848a remove ultrix support 2018-09-30 17:27:04 -06:00
Jon Trulson a29bd8937a dtfile: Fix up CopyCheckDeletePermission() and CheckDeletePermission
Remove calls to bogus utility functions in cases where the user is
root and the filesystem in question is an NFS filesystem.

For now, __linux___ and CSRG_BASED machines will use statfs to
determine whether to test delete-ability.  For other systems, just do
the create/delete test always if the user is root.
2018-08-25 17:38:48 -06:00
David Cantrell 9cb1f309f2 Patch out use of deprecated and now removed ustat(2) function on Linux.
dtfile makes use of ustat(2) on certain systems.  This call has been
deprecated in glibc for a while and now, as of glibc-2.28, it has been
removed.  The recommended replacement is to use statfs(2).
2018-08-25 17:10:02 -06:00
Jon Trulson ea2d3927c7 dtfile: remove register keyword 2018-06-27 22:14:51 -06:00
Peter Howkins e239c31702 dtfile/dtcopy: Change to ANSI function definitions 2018-06-28 04:14:11 +01:00
Peter Howkins e57fa0384f dtfile: Change to ANSI function definitions 2018-06-28 04:13:21 +01:00
Peter Howkins bcb6aa9fa9 dtfile: Remove define MULTIBYTE which is always on for CDE 2018-06-25 01:24:31 +01:00
chase 809c3d8bb6 Spelling fixes 2018-05-31 22:23:19 -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
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 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
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
Peter Howkins 399c1e08c3 dtfile: batch coverity fixes 2018-04-28 23:12:04 +01:00
chase 33d2749ea3 Last of the spelling fixed 2018-04-28 12:36:44 -06:00
chase 1fe5a550b2 Fix typo in license headers 2018-04-28 12:30:20 -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