Commit Graph

33 Commits

Author SHA1 Message Date
Peter Howkins 68cae0c36b Handle changes needed for C23 compatibility that turns on strict ansi prototypes by default. C23 is now the default for GCC 15 2025-12-31 15:06:27 +00:00
Patrick Georgi de2c06c54d remove system library prototypes 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
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 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
Jon Trulson 51646fb06a programs/: remove Imakefiles for completed modules 2021-07-03 19:12:43 -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 427a0611cd dtscreen: make it build 2019-11-19 19:59:20 -07:00
Jon Trulson 9d6dbad63f dtscreen/Dtscreen.src: remove __hpux specialization 2019-11-19 19:58:55 -07:00
Jon Trulson 730da7747c Change "if SUN" conditionals in remaining Makefile.am files to "if SOLARIS" 2019-10-28 18:54:17 -06:00
Chase 9347d0b09c programs/dtscreen: add automake file 2019-10-23 15:34:20 -06:00
Jon Trulson a66948f73e dtscreen: remove register keyword 2018-06-27 22:20:34 -06:00
Peter Howkins 97005a091e dtscreen: Change to ANSI function definitions 2018-06-28 04:23:07 +01:00
chase 4f5e7fe5e3 Use POSIX macros for linux 2018-05-24 18:22:55 -06:00
chase 07900bd93b Remove Unixware and openserver support 2018-05-20 12:13:07 -06:00
chase 1fe5a550b2 Fix typo in license headers 2018-04-28 12:30:20 -06:00
Peter Howkins 2ea057d511 Disable all code related to libXp
deprecated and mostly no longer included on current OSes
2016-04-20 20:17:22 +01:00
Jon Trulson 6400908cc1 dtscreen: don't use old version of round() on linux either 2015-05-09 16:37:04 -06:00
Peter Howkins d53a979639 dtscreen: convert K&R prototypes to ansi C 2015-01-14 15:06:33 +00:00
Jon Trulson 055d98cafb dtscreen: Coverity (memory corruption, moderate) 2014-12-26 17:17:58 -07:00
Peter Tribble 468d576030 initial illumos port 2014-03-22 16:33:11 -06:00
alx 0e707fe71f dtscreen: cosmic flame fractals missing drawing code 2014-02-22 19:05:47 -07:00
Ulrich Wilkens 2d08153289 correction of message files 2013-09-15 19:35:53 -06:00
Peter Howkins b556633eca dtscreen: Resolve (all) 11 warnigns caused by -Wall 2012-11-16 15:57:36 +00:00
Peter Howkins a67b65198d dtscreen: Resolve a -Wformat-security warning. 2012-11-16 15:29:50 +00:00
Jon Trulson a29fc20957 message catalogs: fix comment lines, also remove linux hack in merge.c
According to the spec, blank lines in message catalogs or lines
beginning with '$ ' are valid comments.

However, there were many cases where lines in the message catalogs
contained just a single '$', without the required space after it.

Under linux, this caused 126766 error lines (in my builds) of the
form:

... unknown directive `': line ignored

This also causes gencat to exit with a non-0 exit code.  Even though
gencat says it ignores the line, it really doesn't.

An early porting change to programs/localized/util/merge.c was made to
ignore this return value on linux.  This hack has now been removed.

Build logs are a lot smaller and cleaner now.
2012-09-03 15:12:57 -06:00
Pascal Stumpf 71f3ed16f8 Patches for dtscreen, dtsearchpath, dtsession on OBSD.
Do not redefine round(3), and provide a manpath for OpenBSD.
(this is one of the few things that need to be adjusted for other BSDs)
2012-08-11 20:06:44 -06:00
Robert Tomsick 5787b85d52 dtscreen: include stdlib to avoid exit redeclaration
Signed-off-by: Robert Tomsick <robert@tomsick.net>
2012-08-09 11:33:25 -06:00
Robert Tomsick ab926254fd dtscreen: include stdlib where appropriate
Signed-off-by: Robert Tomsick <robert@tomsick.net>
2012-08-09 11:33:25 -06:00
Peter Howkins c884521619 Add GNU LGPL headers to all .c .C and .h files 2012-03-10 18:58:32 +00:00
Peter Howkins 83b6996daa Initial import of the CDE 2.1.30 sources from the Open Group. 2012-03-10 18:21:40 +00:00