1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00
Commit graph

1350 commits

Author SHA1 Message Date
Jon Trulson
d5c304d476 dtcm/dssw.c: Coverity CID 88672; dest buf too small 2018-04-02 17:02:16 -06:00
Jon Trulson
f269c2a074 dtsr/dtsrclean.c: Coverity CID 86876; dest buf too small 2018-04-02 17:02:16 -06: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
Peter Howkins
bcee6be5d8 Merge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code 2018-04-02 20:32:56 +01:00
Peter Howkins
0b38496bd8 dtmail: resolve 'deference before null check' errors related to if(!NULL) checks around free() calls 2018-04-02 20:29:28 +01:00
Jon Trulson
2cac2a29ac dtwm/WmResource.c: remove errant ')' added in previous commit 2018-04-02 12:22:32 -06:00
Peter Howkins
8362f92ceb dtwm: Resolve coverity warnings 2018-04-02 18:08:40 +01:00
Jon Trulson
4b9bcae29f dtcreate/fileio.c: coverity CID 175094; dref bef NULL 2018-04-01 18:41:54 -06:00
Jon Trulson
dbe044c24c dtcreate/CreateActionAppShell.c: coverity CID 175092; uninit ptr read 2018-04-01 18:35:14 -06:00
Jon Trulson
2363b97d60 dtcalc: remove MAX_PATH, use standard PATH_MAX 2018-04-01 18:33:00 -06:00
Jon Trulson
ce471d7068 dtcalc/ds_xlib.c: coverity CID 175093; wrong sizeof/bad free 2018-04-01 18:30:10 -06:00
Jon Trulson
75a892d93f dtudcfonted/_faludcInf.c: coverity CIDs 175096,175092; uninit ptr read 2018-04-01 18:06:10 -06:00
Jon Trulson
03ba4e454c dtudcfonted/gpftobdf.c: coverity CIDs 87073,87008,87029,86919,86898,86715; uninit scalar 2018-04-01 14:42:38 -06:00
Jon Trulson
78110e7921 libtt/isrepair.c: coverity CID 86705; uninit ptr read 2018-04-01 14:25:34 -06:00
Jon Trulson
3020b050ff dtfile/File.c: coverity CID 88919; uninit array read 2018-04-01 14:21:57 -06:00
Jon Trulson
cd70f1660d dthelp/Initialize.c: coverity CID 89569; unbounded src buf 2018-04-01 14:16:18 -06:00
Jon Trulson
0843325a43 dtcm/props.c: coverity CID 88573; unbounded src buf 2018-04-01 14:04:25 -06:00
Jon Trulson
5729327cc8 dtexec,DtSvc/MsgLog.c: coverity CID 89585; resource leak 2018-04-01 13:54:22 -06:00
Jon Trulson
adb0acbaf5 dtudcfonted/getfname.c: coverity CID 86392; insecure readlink 2018-04-01 13:46:14 -06:00
Jon Trulson
7fa35c29c4 dtfile: coverity CIDs 88363,88405,89140,89612; insecure readlink 2018-04-01 13:46:04 -06:00
Jon Trulson
b4c4fb594d dtfile/SharedProcs.c: coverity CID 174852; int overflow 2018-03-31 19:12:32 -06:00
Jon Trulson
9412da725b libtt/tt_file_system.C: coverity CID 86024; array vs singlton 2018-03-31 19:05:35 -06:00
Jon Trulson
77d10002bf dtmail/MsgScrollingList.C: coverity CID 87360; memset no effect 2018-03-31 18:55:56 -06:00
Jon Trulson
05773d7499 dtinfo/OutlineListViewMotif.C: coverity CID 87754; memset truncated 2018-03-31 18:53:29 -06:00
Jon Trulson
2c2fb1151d csa/match.c: coverity CID 87204; bad free; WTF 2018-03-31 18:36:22 -06:00
Jon Trulson
7752966865 dthelp/helpgen.c: coverity CID 175085; use after free 2018-03-31 18:21:14 -06:00
Jon Trulson
ec93faffe7 dtfile/Help.c: coverity CID 88484; use after free 2018-03-31 18:11:14 -06:00
Jon Trulson
4543bc6192 libtt/process.c: coverity CID 87051; use after free 2018-03-31 18:08:02 -06:00
Jon Trulson
6cd0391409 libtt/db_server_svc.C: coverity CID 87060; string overflow 2018-03-31 18:02:11 -06:00
Jon Trulson
bbf028becc dthelp/htag/malloc: coverity CID 86955; use after free 2018-03-31 17:52:27 -06:00
Jon Trulson
ecee8b3f3a dtmail/DtMailRc.C: coverity CID 88975; use after free 2018-03-31 17:46:53 -06:00
Jon Trulson
a8102e85e0 dtfile/Main.c: coverity CID 89623; uninit var 2018-03-31 17:34:40 -06:00
Jon Trulson
e7269115b5 dtfile/sharedFuncs.c: coverity CID 88625; use after free 2018-03-31 17:25:35 -06:00
Jon Trulson
c32b5db653 dtfile/SharedProcs.c: coverity CID 89068; use after free 2018-03-31 17:21:34 -06:00
Jon Trulson
0c0b77a509 dtinfo/MixedGen.C: coverity CID 89495; use after free 2018-03-31 14:42:22 -06:00
Jon Trulson
3c72e21cb2 dtspcd: coverity CID 174742; potential NULL derefs 2018-03-31 14:33:31 -06:00
Jon Trulson
af58b6be10 dtinfo/DtSR: coverity CID 88552; memory corruption 2018-03-31 14:33:31 -06:00
Jon Trulson
8862366f00 dtinfo/TextParser.C: coverity CID 89054; mem corruption 2018-03-31 14:33:23 -06:00
Peter Howkins
73b6311a83 libDtWidget: Resolve some Coverity warnings 2018-03-31 00:15:05 +01:00
Peter Howkins
edd928caf5 dtpdmd: Resolve some coverity warnings 2018-03-30 23:48:00 +01:00
Peter Howkins
bcccf559ce dtcreate: Resolve coverity issues 2018-03-30 23:35:39 +01:00
Peter Howkins
e195df4b50 dtudcfonted: Resolve further coverity issues 2018-03-30 22:09:47 +01:00
Peter Howkins
e507de959e dtcalc: resolve coverity issues 2018-03-30 20:24:04 +01:00
Peter Howkins
e12e009eb5 dthelp: compiler warning and coverity warning fixes 2018-03-29 00:21:44 +01:00
Peter Howkins
50a96959f0 libtt: Resolve some compiler warnings 2018-03-28 21:34:08 +01:00
Jon Trulson
5dc346b033 CDE-RUN: remove osf bindings 2018-03-28 12:49:53 -06:00
Jon Trulson
700b9d2dd4 Remove old cruft: osf/* and utils/prog*
The osf/ stuff includes uil, wml, etc - we expect these to be provided
by Motif, and make no attempt to build them in CDE, so no need for
them.

The only program in utils/prog/ is an ancient verion of lndir that we
do not need for CDE.  If you need lndir for some reason, use the
laters version from Xorg, usually installed via the xutils-dev
package.
2018-03-28 12:15:04 -06:00
Peter Howkins
f65f512981 dtcalc: resolve coverity issues 2018-03-28 02:24:27 +01:00
Peter Howkins
0b93afd2ca dtscpd: resolve compiler and coverity warnings 2018-03-28 02:08:36 +01:00
Peter Howkins
55c59be795 dtcudcfonted: Resolve compiler and coverity warnings 2018-03-28 01:29:28 +01:00
Peter Howkins
49d1ca38e4 dtdocbook: glibc 2.27 drops support for matherr() support in math.h 2018-03-27 03:55:32 +01:00
Peter Howkins
a6b5ef552f dtcalc: change from obsoleted MAXFLOAT to FLT_MAX from std C 2018-03-27 03:25:58 +01:00
Peter Howkins
d41d87be27 dtksh: Linux modern glibc compile HACK prevent system wide definition of __FILE that we define to Sfio_t 2018-03-27 01:51:58 +01:00
Peter Howkins
1acf08c5ef dtksh: make sure you can still build on linux older c library too 2018-03-23 04:17:17 +00:00
Peter Howkins
9d69ea3d97 dtksh: HACKY fix for compilation on later linux C library where FILE definition has moved 2018-03-23 01:51:39 +00:00
Peter Howkins
b1c3729e88 Change dtmmdb class from tuple to mmdb_tuple 2018-03-21 01:03:31 +00:00
Peter Howkins
abd209a83c Change how read and write errors are detected on fstream based streams. 2018-03-21 01:01:09 +00:00
Peter Howkins
490890cd23 Resolve some compiler warnings 2018-03-18 00:21:51 +00:00
Peter Howkins
555abfa53b Fixed for wrong cased filename on depends creation 2018-03-18 00:20:55 +00:00
Peter Howkins
637abd5d5c Resolve some coverity warnings 2018-03-08 23:03:21 +00:00
Michael McConville
35a16f47df Remove needless zeroing after calloc 2017-12-09 02:33:44 -07:00
Cody Kotichas
1d037477f1 Fix typographical error 2017-08-09 16:52:44 -06:00
Jon Trulson
129ef945b9 dtappbuilder: Add patches from Robert Pangrazio fixing coredumps 2017-08-05 18:49:07 -06:00
alx
5669c8a60f libtt: pass proper flags to getfsstat, log error message and exit if it fails 2017-07-29 12:42:49 -06:00
Peter Howkins
ec4f0a93e8 Add in an example .desktop session file for other X session managers (not dtlogin)
Suitable for kdm/gdm/lightdm etc
2017-04-16 19:07:21 +01:00
Peter Howkins
e4ba1fad36 Change pid wait types to int on Linux as well. Fixes compile issue
in dtudc programs on ubuntu 16.10+
2017-04-11 20:40:43 +01:00
Edmond ORIGNAC
9b1f60a713 DtMail translations and improvements of vcal2xampia.awk
dtmail: messages of the 'Mail Retrieval' menu of dtmail  were left untranslated.
	French, Italian, Spanish translations were added.
vcal2xapia.awk: capacity to handle UTC+n timezones and TODO items added.
2017-01-03 13:23:23 -07:00
Edmond ORIGNAC
bf3ac1b969 Manual page for vcal2xapia.awk 2017-01-02 17:10:30 -07:00
alx
acb2dd330d dtksh/sfio: resolved a naming collision on FreeBSD 11 2016-12-31 15:15:04 -07:00
alx
ae7dd95cc4 ttsession: don't segfault if host name isn't properly set 2016-12-31 15:14:59 -07:00
alx
2ea10ef612 dtlogin: center the mouse pointer on the login screen on multi-head setups 2016-12-31 15:14:54 -07:00
alx
39031e9dea dtfile: added Xinerama support to dialog positioning routines 2016-12-31 15:14:49 -07:00
alx
c855ee9765 libDtSvc: added Xinerama support to _DtMessageDialog 2016-12-31 15:14:43 -07:00
Swift Griggs
1fdcd4c93d Patches from pkgsrc-WIP 2016-08-05 11:21:06 -06:00
Matthew R. Trower
341494d91c dtwm: basic multihead(xinerama only) support
* maximization (also partially fixes strange Firefox behaviour)
* sane initial window placement

Firefox is stranger than most; it appears to maximize to double
X Screen width even on single head displays.  Fixed (on multihead).
2016-06-24 17:16:19 -06:00
Jon Trulson
a173dd3b3b release: update version to 2.2.4, update HISTORY 2016-06-19 12:46:29 -06:00
Jon Trulson
e121a25ef2 contrib: some enhancements to the scrotps provided by Edmond Orignac 2016-06-18 20:18:52 -06:00
Ulrich Wilkens
45ab8a3532 dtlogin: FreeBSD build fix 2016-06-12 17:13:20 -06:00
Ulrich Wilkens
574cf20b31 Fix dtinfo document build on OpenBSD 2016-06-10 16:15:57 -06:00
Pascal de Bruijn
4aedbf2796 dtlogin: openbsd build fix
Amend ced27aa1f6 to prevent openbsd
make from failing because of the tab.
2016-06-09 10:05:35 -06:00
Giacomo Comes
542fce33d4 call fclose(infile) after print_progress()
The function print_progress uses the pointer infile.
If fclose is called before print_progress then the build process
can fail to build the files:
  doc/C/cde.dti/CDEDOC/dtsearch/CDEDOC.d99
  doc/C/cde.dti/CDEDOC/dtsearch/dtsearch.ocf
  doc/C/cde.dti/cde.oli
To fix the issue move the call fclose(infile) after print_progress()
2016-06-07 20:00:11 -06:00
Giacomo Comes
a650c6214e Use /var/spool instead of /usr/spool on linux 2016-06-07 19:59:42 -06:00
Peter Howkins
e1333a5160 dtstyle: remove some accidentally commited debug code 2016-04-21 01:48:40 +01:00
Peter Howkins
066adcac5e dtstyle: backdrops, allow jpg/png if motif supports it
add file extensions to all types but .pm/.bm. This lets XmGetPixmap() load them.
2016-04-21 01:43:27 +01: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
alx
b251a15844 dtfile: Enable FILE_MAP_OPTIMIZE on Linux. This avoids unnecessary tt_file_netfile calls on local host. 2016-04-18 19:16:48 -06:00
alx
2e5bd045ed dtwm: Resolved some compiler warnings 2016-04-18 19:16:48 -06:00
alx
720fd9365a dtwm: 0 is not NULL 2016-04-18 19:16:48 -06:00
alx
ed2c149bfc dtsession: Enable X11 screensaver extension on FreeBSD 2016-04-18 19:16:47 -06:00
alx
7cddb0d165 dtlogin: Enable XDM authentication on FreeBSD 2016-04-18 19:16:47 -06:00
alx
ff7c7d72cf dtfile: Enable FILE_MAP_OPTIMIZE on FreeBSD. This avoids unnecessary tt_file_netfile calls on local host. 2016-04-18 19:16:47 -06:00
Jon Trulson
6bc5c658b8 dtappbuilder: replace accidental %a with %% in write_func_as_strings() 2015-12-18 10:28:37 -07:00
Jon Trulson
07e84caf74 dbtoman: fix missing arg to fprintf 2015-12-18 10:00:12 -07:00
Jon Trulson
10742f3679 ttcp: fix missing arg to fprintf 2015-12-18 09:55:20 -07:00
Pascal de Bruijn
ced27aa1f6 dtlogin: don't use crypt(3) on openbsd
des support has been removed from crypt(3) on openbsd since version 5.8
2015-11-28 12:24:20 -07:00
Jon Trulson
1e2e373082 dtlogin: use XDM authentication instead of MIT/DES on linux 2015-11-26 14:08:23 -07:00
Jon Trulson
05445493d9 ksh: fix up shipin for more modern systems WRT test and wc
Patch submitted by Giacomo Comes.
2015-11-22 15:37:40 -07:00
Ulrich Wilkens
f8fdf4920f Fix FreeBSD 10.2 build 2015-10-21 19:23:05 -06:00
alx
ae16363537 DtWidget: resolved some compiler warnings 2015-07-23 18:51:48 -06:00
alx
c67763c82d DtWidget: added appropriate KeyPress event handler to DtIcon widget 2015-07-23 18:51:43 -06:00
alx
307981f3e5 dtfile: fixed ambiguity in the translation table 2015-07-23 18:51:39 -06:00
alx
84f725bd54 dtfile: fixed file view scrolling with Page Up/Down keys 2015-07-23 18:51:34 -06:00
alx
5c6ddfd0c1 dtfile: 0 is not NULL 2015-07-16 19:21:18 -06:00
alx
304f99d26c dticon: KeySym is not char 2015-07-02 17:50:26 -06:00
alx
bd4a4532f0 dtfile: fixed double free in copy/move collision handler 2015-07-02 17:50:21 -06:00
alx
cbd5abb33a dtsession: fixed errorlog rotation 2015-07-02 17:50:16 -06:00
Douglas Carmichael
ecdf9eba10 Changed memcpy() to memmove() to stop coredumping on OpenBSD 5.7. 2015-06-21 17:07:41 -06:00
Douglas Carmichael
aaab59761f Patches to enable compilation on OpenBSD 5.7/FreeBSD 10.1. 2015-06-17 11:31:31 -06:00
Isaac Dunham
87d863b8a4 programs/dtappintegrate: make PATH include /bin.
Without this, we fail without the /usr merge because 'date' is
unavailable.
2015-06-16 15:56:21 -06:00
Jon Trulson
2c4cdb5edf cde: update HISTORY for 2.2.3 release 2015-05-09 17:09:11 -06:00
Jon Trulson
14b9e2efa3 cde: change revision to 2.2.3 2015-05-09 16:58:46 -06:00
Jon Trulson
6400908cc1 dtscreen: don't use old version of round() on linux either 2015-05-09 16:37:04 -06:00
Ulrich Wilkens
c7781f434b Remove warnings on Linux with glibc 2.20 2015-05-09 16:23:05 -06:00
Ulrich Wilkens
8b38d9ea49 Fix broken build on OpenBSD 2015-05-09 16:21:32 -06:00
Ulrich Wilkens
2b8b5f25b5 Support for new Solaris/OpenIndiana versions 2015-05-09 16:19:08 -06:00
Stuart Brady
0306c7c6f2 DtTerm: fix formatted text in history buffer
Formatted text currently gets corrupted by DtTerm when copied into its
history buffer.

As soon as a line of text is copied into the history, the text of each
segment of formatted text is altered so that it contains the text from
the start of the line.  For example:

    echo -e '\e[1mbold\e[m \e[4munderlined\e[m'

When the text has scrolled off the screen, scrolling back to it reveals:

    boldbbold under

This is fixed by adding the calls to _DtTermPrimBufferGetCharacterPointer
that were missing which would update the buffer pointer when inserting
text into the history buffer.
2015-05-05 16:47:05 -06:00
Edmond ORIGNAC
51afe76f07 Fix dtprintinfo parser
When using a non C locale such as fr_FR.ISO8859-1, the CUPS messages
returned by lpq are translated. However, the parser in ParseJobs.C can only
handle messages in English. As a result, dtprintinfo exits immediately with
an error message. To fix that problem we force a LANG=C environment when calling
lpq so that messages will be in English and will be processed correctly by dtprintinfo
parser.
2015-03-21 20:14:16 -06:00
Isaac Dunham
6c5bab0854 contrib/rc/linux/dtlogin: Make the init script work.
* insserv requires a shebang line
* the rc script can hang if a daemon is started in the foreground
* "pgrep dtlogin" apparently can match the init script, if it is started
  with "service dtlogin start" or similar.
* reduce code duplication
2015-03-07 19:44:55 -07:00
Peter Howkins
917343911e dtudcfonted: Resolve CID 86560 2015-01-21 14:15:31 +00:00
Peter Howkins
8c340c1984 dtudcfonted: Resolve CID 86547 2015-01-21 14:10:58 +00:00
Peter Howkins
8ba625d41d dtudcfonted: Resolve CID 86495 2015-01-21 14:09:39 +00:00
Peter Howkins
9e849c3f25 dtudecfonted: Resolve CID 86417 2015-01-21 14:04:04 +00:00
Peter Howkins
343a78b225 dtudcfonted: Resolve CID 86391 2015-01-21 14:02:34 +00:00
Peter Howkins
0669358b82 dtudcfonted: Resolve CID 86328 2015-01-21 14:00:44 +00:00
Peter Howkins
1e904a31d8 dtudcfonted: Resolve CID 86280 2015-01-21 13:56:00 +00:00
Johannes von Rotz
f6e025b3af Let "make World" run through on OpenBSD 2015-01-21 13:47:20 +00:00
Peter Howkins
83af6d8431 dtudcfonted: Resolve CID 86389 2015-01-16 16:51:37 +00:00
Peter Howkins
15434b1787 dtudcfonted: Resolve CID 86232 2015-01-16 16:49:42 +00:00
Peter Howkins
1380cb7c8e dtudcfonted: Resolve CID 86153 2015-01-16 16:29:55 +00:00
Peter Howkins
e987e48f9a dtprintinfo: Resolve CID 87253 2015-01-15 16:07:10 +00:00
Peter Howkins
d3dbc00c1f dtfile: Resolve CID 89277 2015-01-15 15:37:32 +00:00
Peter Howkins
6a86dba654 dtfile: Resolve CID 88830 2015-01-15 15:30:59 +00:00
Peter Howkins
639081c8f1 dtfile: Resolve CID 89009 2015-01-15 15:26:22 +00:00
Peter Howkins
17ef8a8b34 dtfile: Resolve CID 89319 2015-01-15 15:25:13 +00:00
Peter Howkins
1ed848709d dtfile: Resolve CID 88199 2015-01-15 15:23:24 +00:00
Peter Howkins
7f70f509c8 dtfile: Resolve CID 88133, 88261 2015-01-15 15:18:21 +00:00
Peter Howkins
24880e4e05 dtfile: Resolve CID 87776. OkCallback is of type XtCallbackProc, it doesn't return one 2015-01-15 15:15:31 +00:00
Peter Howkins
74afeadda3 dtfile: Resolve CID 87308 2015-01-15 15:05:45 +00:00
Peter Howkins
f506dd71ac dtcm: Resolve CID 88003 2015-01-15 14:23:45 +00:00
Peter Howkins
dcdf4e2a65 dtcm: Resolve CID 87983 2015-01-15 14:21:34 +00:00
Peter Howkins
e063ab47d3 dtcm: Resolve CID 87822 2015-01-15 14:20:02 +00:00
Peter Howkins
9388ef6c5b dtcm: Resolve CID 87801 2015-01-15 14:18:17 +00:00
Peter Howkins
8ef7da82a3 dtcm: Resolve CID 87713 2015-01-15 14:16:06 +00:00
Peter Howkins
d5c37e1ad6 dtcm: Resolve CID 87562 2015-01-15 12:10:25 +00:00
Peter Howkins
85b7e823c4 dtcm: Resolve CID 87408 2015-01-15 11:59:20 +00:00
Peter Howkins
b578e9cc3a dtcm: Resolve CID 87384 2015-01-15 11:55:09 +00:00
Peter Howkins
d53a979639 dtscreen: convert K&R prototypes to ansi C 2015-01-14 15:06:33 +00:00
Peter Howkins
5c8f66a07d libDtSvc: Resolve 28 compiler warnings. 2015-01-14 14:10:55 +00:00
Peter Howkins
49266f9019 libDtPrint: Resolve the 1 remaining compiler warning. 2015-01-14 11:43:58 +00:00
Peter Howkins
f8f04a5977 libDtHelp: Resolve 11 compiler warnings. 2015-01-14 11:41:38 +00:00
Peter Howkins
917e6cfc49 dthello: Resolve 8 compiler warnings that would be introduced with -Wall 2015-01-14 10:42:44 +00:00
Peter Howkins
f913c616ee dtpad: Resolve 7 compiler warnings. 2015-01-13 14:50:05 +00:00
Peter Howkins
8baeb4c0a0 dtcm: Resolve 303 compiler warnings. 2015-01-13 14:22:25 +00:00
Peter Howkins
fe39b630b3 dtstyle: Fix CID 100252 2015-01-13 10:13:03 +00:00
Peter Howkins
90bd9101e3 dtmail: add a stdint.h include for openbsd, as reported by Daniel Diaz via the wiki. 2015-01-09 16:30:43 +00:00
Peter Howkins
22830f478a dtfile: resolve 19 compiler warnings. 2015-01-09 16:16:53 +00:00
Peter Howkins
561d858140 dticon: resolve 3 compiler warnings 2015-01-07 14:19:38 +00:00
Peter Howkins
93f3878b4e dtdocbook: resolve 49 compiler warnings. 2015-01-06 17:22:50 +00:00
Peter Howkins
0a0e1eebf5 dtmail: Resolve 50 compiler warnings. 2015-01-06 15:07:55 +00:00
Peter Howkins
3fab71345b dtsr: resolve all 12 compiler warnings. 2015-01-05 16:54:12 +00:00
Peter Howkins
466b8d0df5 dtstyle: resolve 30 compiler warnings. 2015-01-05 16:07:49 +00:00
Matthew Howkins
2863b839e5 libtt: Change to standard function prototypes in ttauth. Fix some compiler warnings by adding #includes 2014-12-30 17:31:46 +00:00
Matthew Howkins
be49dc56bc libtt: Fix some uninitialized variables detected by Coverity 2014-12-30 17:31:38 +00:00
Peter Howkins
8ed5281e3e dtwm: resolve 92 compiler warnings (related to 64 bit pointer to int coversions) 2014-12-30 17:13:41 +00:00
Peter Howkins
4a66f1ab61 dtaction: resolve 2 compiler warnings. 2014-12-30 16:12:54 +00:00
Peter Howkins
59bcb8d08f dsdm: convert k&r function declarations to ansi, and correct the warnings this then uncovered. 2014-12-30 15:57:12 +00:00
Peter Howkins
4fc0bcef0f dsdm: resolve coverity warnings CID 86139 86255 86331 86345 86418 86517 86526 86567 86590 86616 2014-12-30 15:13:47 +00:00
Peter Howkins
2fc7807ee5 dtcalc: resolve 13 compiler warnings on 64 bit builds. 2014-12-30 14:43:12 +00:00
alx
123d4ba8fc dtcopy: Fix file removal 2014-12-28 12:53:39 -07:00
Jon Trulson
f6d6aafc93 Merge branch 'coverity_dtsession'
Fix up a bunch (55) issues in dtsession identified by Coverity's
static analysis.
2014-12-27 20:25:26 -07:00
Jon Trulson
4dae64c891 dtsession/SrvPalette: fix CID 89227 2014-12-27 20:09:09 -07:00
Jon Trulson
722cfc70eb dtsession/SrvFile_io: fix CID's 88299 and 89441 2014-12-27 20:06:53 -07:00
Jon Trulson
aa2daba4af dtsession/SmUI: fix tainted var (CID 88216) 2014-12-27 19:52:37 -07:00
Jon Trulson
db8280189d dtsession/SmSave: use absolute path to rm in system() 2014-12-27 19:42:21 -07:00
Jon Trulson
e02c703af7 dtsession/SmSave: get rid of use of tempnam (CID 89359) 2014-12-27 19:33:03 -07:00
Jon Trulson
7c702bff6e dtsession/SmRestore: redo defaultCwd detection in StartClient() to be safer 2014-12-27 19:01:30 -07:00
Jon Trulson
a657f302f7 dtsession/SmRestore: fixup 8 coverity issues. 2014-12-27 18:19:55 -07:00
Jon Trulson
65dcf12c82 dtsession/SmGlobals: re-add smGD.savePath to generated paths, was lost in mkstemp changes. 2014-12-27 17:50:28 -07:00
Jon Trulson
93783917ab dtsession/SmGlobals: unlink mkstemp generated files. 2014-12-27 17:24:04 -07:00
Peter Howkins
1de5d477c9 Merge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code 2014-12-27 23:15:02 +00:00
Peter Howkins
ab743c37e6 dtlogin: resolve more static analysis warnings 2014-12-27 23:13:59 +00:00
Jon Trulson
4b38955b01 dtsession/SmGlobals: use of tainted string (CID 89450) 2014-12-27 16:12:45 -07:00
Jon Trulson
1bde7d8c5c dtsession/SmLock: potential null deref (CID 87561, 87957, 88181) 2014-12-27 16:06:23 -07:00
Jon Trulson
f14df58edb dtsession/SmDB: error handling issues (CID 87778, 87926) 2014-12-27 15:54:55 -07:00
Jon Trulson
1148ae8794 dtsession/SmCommun: fix bogus check (CID 89326) 2014-12-27 15:50:29 -07:00
Jon Trulson
881b0e1ed0 dtsession/SmGlobals: fixup 17 coverity issues. 2014-12-27 15:42:04 -07:00
Jon Trulson
85f6b1d7f3 Merge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code 2014-12-27 14:25:52 -07:00
Jon Trulson
7484c6f88b DtXinerama: no need to check unsigned int < 0 (CID:86121) 2014-12-27 14:14:59 -07:00
Peter Howkins
c768260785 dtlogin: resolve 8 compiler warnings. 2014-12-27 20:56:29 +00:00
Jon Trulson
61e925f3c5 dtlogin/xdmcp: fixup many warnings and a possible declaration bug 2014-12-27 13:01:26 -07:00
Jon Trulson
a71cde075e dtwm/WmFP: Coverity (memory corruption, moderate) 2014-12-26 18:10:07 -07:00
Jon Trulson
f05c124807 dtwm/PopUpMenu: Coverity (memory corruption, moderate) 2014-12-26 17:30:50 -07:00
Jon Trulson
611dda1831 dtsession: Coverity (memory corruption, moderate) 2014-12-26 17:23:16 -07:00
Jon Trulson
055d98cafb dtscreen: Coverity (memory corruption, moderate) 2014-12-26 17:17:58 -07:00
Jon Trulson
a5c7512782 dtprintinfo: Coverity (memory corruption, moderate) 2014-12-26 17:17:06 -07:00
Jon Trulson
b881408be0 dtlogin: Coverity (memory corruption, moderate) 2014-12-26 16:55:46 -07:00
Jon Trulson
235a75c03c dtlogin: Coverity (memory corruption, moderate) 2014-12-26 16:23:54 -07:00
Jon Trulson
00540cb375 dtcalc: Coverity (memory corruption, moderate) 2014-12-26 16:19:23 -07:00
Jon Trulson
ff3cd78ac0 dtcalc: Coverity (memory corruption, moderate) 2014-12-26 16:17:43 -07:00
Jon Trulson
4c6e66ceb8 tt/mini_isam: Coverity (memory corruption, moderate) 2014-12-26 16:15:53 -07:00
Jon Trulson
6f45dde569 tt/mini_isam: Coverity (memory corruption, moderate) 2014-12-26 16:15:25 -07:00
Jon Trulson
ce7bdf9f62 ttsession: Coverity (memory corruption, moderate) 2014-12-26 16:14:35 -07:00
Jon Trulson
e45843bc95 ttauth: Coverity (memory corruption, moderate) 2014-12-26 16:13:07 -07:00
Jon Trulson
3013374988 csa: Coverity (memory corruption, moderate) 2014-12-26 16:00:55 -07:00
Jon Trulson
50de34a933 DtTerm: Coverity (memory corruption, moderate) 2014-12-26 15:59:52 -07:00
Jon Trulson
cedb47114f DtTerm: Coverity (memory corruption, moderate) 2014-12-26 15:58:50 -07:00
Jon Trulson
c18f109032 DtSvc/DtUtil2: Coverity (memory corruption, moderate) 2014-12-26 15:57:47 -07:00
Jon Trulson
775008571d DtSvc/DtUtil1: Coverity (memory corruption, moderate) 2014-12-26 15:56:10 -07:00
Jon Trulson
9d26729d65 DtSvc/DtEncap: Coverity (memory corruption, moderate) 2014-12-26 15:55:02 -07:00
Jon Trulson
48cfb46a97 DtSvc: Coverity (memory corruption, moderate) 2014-12-26 15:54:08 -07:00
Jon Trulson
80b516d021 DtSearch: remove bogus debug block 2014-12-26 15:52:33 -07:00
Jon Trulson
17379a3fc0 DtHelp: Coverity (memory corruption, moderate) 2014-12-26 15:50:41 -07:00
Jon Trulson
7887e99477 DtHelp: Coverity (memory corruption, moderate) 2014-12-26 15:49:43 -07:00
Jon Trulson
539f785df9 imake: Coverity (memory corruption, moderate) 2014-12-26 15:47:59 -07:00
Jon Trulson
07dc336b96 dtsession: Coverity (memory corruption) 2014-12-26 14:24:31 -07:00
Jon Trulson
b41a74b595 dtsession: Coverity (memory corruption) 2014-12-26 14:22:05 -07:00
Jon Trulson
2e7ab68300 dtappbuilder: Coverity (memory corruption) 2014-12-26 14:14:32 -07:00
Jon Trulson
f719d20b6c ttauth: Coverity (memory corruption) 2014-12-26 14:12:10 -07:00
Jon Trulson
e18ac00c82 DtWidget: Coverity (memory corruption) 2014-12-26 14:10:01 -07:00
Jon Trulson
b0548ce111 DtTerm: Coverity (memory corruption) 2014-12-26 14:08:24 -07:00
Jon Trulson
fa0074904b DtSvc: Coverity (memory corruption) 2014-12-26 14:06:26 -07:00
Jon Trulson
2d89ad036a DtSvc: Coverity (memory corruption) 2014-12-26 14:03:17 -07:00
Jon Trulson
9751abddff DtHelp: Coverity (memory corruption) 2014-12-26 13:42:23 -07:00
Matthew Howkins
caf4929c41 libtt: Fix 'Missing return statement' errors detected by static analysis 2014-12-23 22:04:59 +00:00
Peter Howkins
bc842043d2 dtlogin: Resolve 27 compiler warnings 2014-12-23 22:01:51 +00:00
Peter Howkins
407aa2c4b7 libDtWidget: Resolve some static analyser warnings
prevent usage of potentially unitialised variables.
2014-12-23 20:05:01 +00:00
Peter Howkins
e54c164fe1 dtlogin: start to resolve static analysis warnings
Also convert some K&R function declarations to ansi
2014-12-23 17:49:11 +00:00
Ulrich Wilkens
29294e0373 Fix FreeBSD 10.1 build 2014-11-20 17:48:57 -07:00
Jon Trulson
bf0666a330 it_IT.ISO8859-1/types/_common.dt.tmsg: Apply manual one-line patch 2014-10-28 13:58:32 -06:00
Ulrich Wilkens
01d6c363fa OpenIndiana and Solaris port 2014-10-28 13:40:11 -06:00
Ulrich Wilkens
42e891d9e7 Resolve many build warnings
This patch fixes many warnings from the beginning of the build up to
and including the depend stage. Nearly all warnings should be gone
even with -Wall.
2014-09-23 17:57:50 -06:00
Jon Trulson
2bf29e5d63 dtappbuilder: abmf.c: more warnings killed 2014-09-20 20:10:01 -06:00
Jon Trulson
9842ee3d96 dttypes: use regex on linux too. 2014-09-20 20:00:38 -06:00
Jon Trulson
0b68ebe610 dthelp: fixup some warnings with special.h(s) 2014-09-20 19:10:19 -06:00
Jon Trulson
bf399748ad dtappbuilder/dtcodegen: Fix up some warnings, remove use of sys_errlist[].
Removed all the cases of sys_errlist[], no one should be using that
today.  Also, correct code generation so that declarations like
'Widget w = NULL; Pixmap p = NULL;' etc, aren't produced, which is
wrong.  Use '0', not NULL for these.

This should also correct the 2 mis-definitions of Pixmap that commit
6a9327f2ab attempted to fix in ttsnoop.

dtappbuilder still needs a lot of work.
2014-09-20 16:47:11 -06:00
Jon Trulson
ba0f3a250d Revert "ttsnoop: NULL is not 0"
This reverts commit 6a9327f2ab.

The real fix for this (and other issues) needs to be done in dtcodegen.
2014-09-16 18:09:21 -06:00
Jon Trulson
6a9327f2ab ttsnoop: NULL is not 0
This fix is a bit of a hack, I just moved the declarations into the
'user code' portion of main().

dtcodegen needs to be fixed so as not to generate this type of code in
the first place.
2014-09-14 14:25:55 -06:00
Jon Trulson
abfcb71d1d dtmail: MotifCmds.C: NULL is not False 2014-09-14 14:20:21 -06:00
Jon Trulson
5a205388e3 Add new Dtlogo from Jeff Pierquet. Original renamed to TOGDtlogo.pm 2014-09-12 10:44:13 -06:00
Ulrich Wilkens
c6fd291e84 Fix panel right click 2014-09-12 10:39:06 -06:00
Jon Trulson
026b0e6569 contrib/rc/freebsd: Add FreeBSD start script from Douglas Carmichael 2014-08-24 16:48:07 -06:00
Jon Trulson
f06d272600 Update HISTORY file for 2.2.2 release 2014-07-27 16:48:19 -06:00
Jon Trulson
9b5b547a34 Fixup UDB databases to fix a problem introduced with FreeBSD 10 patch.
The symbol hp-ux is used to tag files for installation on HP machines
in the UDB databases.  To ensure the correct release streams are
defined, these symbols (hp-ux, linux, freebsd, etc) are undef'd so
that they are not evaluated in the context of db file generation by
the preprocessor.

A change in the FreeBSD 10 patch disabled this, possibly due to
'hp-ux' being an invalid cpp symbol on FreeBSD 10 machines, which now
use clang by default.

Undefining these cpp symbols is actually required, otherwise linux,
for example, is defined as a '1' in the generated databases, which
will not match the release stream name 'linux', therefore all of the
files tagged as 'linux' are never installed.

To fix this, revert the change made in the FreeBSD 10 patch, and
rename all occurances of 'hp-ux' to 'hpux' in the UDB files to avoid
the potential for cpp trouble when hp-ux is specified.

As a result of this change, 'hpux' is now the name of the release
stream for hp machines, not 'hp-ux'.
2014-07-27 13:44:35 -06:00
Ulrich Wilkens
c3f74eec17 FreeBSD 10 clang port 2014-07-27 12:32:35 -06:00
Jon Trulson
8d0551bfda Version change to 2.2.2 2014-07-23 16:16:57 -06:00
Jon Trulson
09879a9988 site.def: create new DtDocLocalesToBuild define
This would allow different locales to be specified for
programs/localization (DtLocalesToBuild) and doc/
(DtDocLocalesToBuild).

This would be useful for 'partial' translations like the Greek el_GR
locale, where message catalogs, actions, or other items are localized,
but documentation like the help system and dtinfo are not.
2014-07-22 18:36:16 -06:00
Jon Trulson
7b5d1eb8c0 el_GR _common.dt.tmsg: fix corrupted msg line at line 1763 2014-07-22 16:42:55 -06:00
Jon Trulson
54fecca847 contrib/: add desktop2dt from Isaac Dunham 2014-07-19 18:33:12 -06:00
Jon Trulson
e5b1fb856f Added additional info to vcal2xapia/README 2014-07-19 18:25:32 -06:00
Jon Trulson
dbaff0aee1 contrib/: add vcal2xapia from Edmond Orignac 2014-07-19 18:22:39 -06:00
Jon Trulson
c1d24e0bb3 fr_FR.ISO8859-1/types/_common.dt.tmsg: Fix up a couple of backslash errors.
Reported by Edmond Orignac.
2014-07-19 17:48:38 -06:00
Eugene Doudine
4e2adc1f8e Fixes the bug, which caused dtterm to show stripes of wrong color between text lines when using fontsets that include fonts of slightly different heights.
The cause of the bug was that X*DrawImageString draws background
according to the extents of the given string, not to extents of the font set,
which determine terminal line height.

Now, when such a situation is detected, the background is cleared before
drawing the characters.
2014-05-03 22:11:41 -06:00
Eugene Doudine
a9dbe60805 Fixes a small bug in grid registration: when an object is placed over another object (can be done manually) and then removed from there, the registration of the covered object is removed as well (that is it's cell is considered empty).
The patch converts desktop_grid[] from Boolean array into array of
counters of objects, which are placed on cells. When object is
placed on /removed from   the screen  the counter gets incremented/decremented.
2014-04-19 18:57:57 -06:00
Eugene Doudine
5544a0fb39 Fixes several issues with grid registration of the dtwm panel on dtfile startup and on workspace addition:
The panel registration code rather stupidly assumed that display
  size is always 1280x1024 pixels. Because of this, depending on screen
  size, the panel could be registered somewhere in the center of the screen
  or completely or partially beyond of it.

  The panels were registered only on startup, not  those, which were added
  from UI.

The fix moves panel registration into separate routine and removes assumption
about display size. The fix yet is not complete since it still makes assumption
about panel's geometry: from dtfile there is still no way to find out
dinamically  the size of panel and it's location.
2014-04-19 18:57:57 -06:00
Eugene Doudine
8bafd85d9a Fixes the off-by-one bug in RegisterInGrid(), which caused dtfile's desktop icons on the right edge of the screen (if desktop width is not a multiple of icon with) to be registered on the next workspace or (in the case of the last workspace) beyond the desktop_grid array (possibly causing segfaults).
On small screens segfaults could be also triggered without any icons on dtfile
startup if dtwm panel (or part of it) was registered beyond the screen when
RegisterInGrid() was called by InitializeDesktopGrid().

The patch also makes grid registration work for large objects (larger than
2 cells in any direction, like dtwm panel or icon with long file name).
Previously only rectangle vertices were registered.
2014-04-19 18:57:57 -06:00
Jon Trulson
1e2bdf93a8 dtappbuilder: bil_store.c: don't return local variables 2014-04-06 16:59:56 -06:00
Jon Trulson
aa15240c22 ttsnoop.C.src: NULL is not 0 2014-04-06 16:55:45 -06:00
Jon Trulson
10e295b967 WMSaveSession.C: NULL is not 0 2014-04-06 16:54:31 -06:00
Jon Trulson
4a22f0671b SendMsgDialog.C: NULL is not 0 2014-04-06 16:53:05 -06:00
Jon Trulson
20265cd088 RoamMenuWindow.C: NULL is not 0 2014-04-06 16:51:16 -06:00
Jon Trulson
0080185db9 RoamInterruptibleCmd.C: NULL is not 0 2014-04-06 16:49:24 -06:00
Jon Trulson
b241414cda AttachArea.C: NULL is not 0, sprintf needs a format 2014-04-06 16:48:40 -06:00
Jon Trulson
8a96463f2e InterruptibleCmd.C, WorkingDialogManager.C: NULL is not 0 2014-04-06 16:46:09 -06:00
Jon Trulson
5f99b8045b dtsession: screensaver don't pass random attributes to XScreenSaverSetAttributes()
This should fix the "tiny window appearing in the screensavers"
problem.
2014-04-05 18:09:01 -06:00
Ulrich Wilkens
38dfc9e235 Fix dtinfo search engine 2014-04-01 16:52:36 -06:00
Jon Trulson
0254ebc0b4 xtclient.c: fix debug statement regarding fd number 2014-03-24 19:54:37 -06:00
Jon Trulson
045de2cdd5 linux.cf: with fds_bits fixes, stop using _POSIX_C_SOURCE=199309L and _XOPEN_SOURCE defines 2014-03-24 19:38:20 -06:00
Jon Trulson
3c35e2d14d xtclient.c, spcd_event.c: stop referencing fds_bits directly 2014-03-24 19:37:09 -06:00
Jon Trulson
4312a1190b cleanup: eliminate missing sentinel warnings 2014-03-24 18:26:10 -06:00
Jon Trulson
165af415d1 dtcm/rfp.c: NULL is not 0 2014-03-24 17:49:19 -06:00
Jon Trulson
0a74d63db4 dtcm/reminders.c: NULL is not 0 2014-03-24 17:48:01 -06:00
Jon Trulson
9b699d3fb1 linux: build with thread safety and REENTRANT enabled.
There was a check in linux.cf for the Linux libc version that didn't
work, since these were never set anywhere.  Presumably current Xorg
imake sets these, but since we aren't using that... (yet)

As a result, the build assumed that thread-safe API's were not
supported.  Setting the default libc major version to '6' allows the
proper build to take place.  libc5 was never threadsafe and no one has
probably used it in over 10 years.

As a result, some earlier porting fixes that referenced '__fds_bits'
on linux systems had to be reverted as these are not valid in an MT
environment.  They are also not neccessary when building in such an
environment, as the normal 'fds_bits' works fine.

This patch defintely needs testing on many linux systems.
2014-03-24 17:15:40 -06:00
Jon Trulson
2f4072ee69 linux.cf: turn off writable strings warnings (write-strings)
There are about 1900 of them, if someone wants to go fix them, please
be my guest. :)
2014-03-24 16:34:58 -06:00
Jon Trulson
b2db23c0af cleanup: eliminate "implicit declaration" warnings.
Also fixed a potential core/memory corruption in dticon.
2014-03-24 15:58:11 -06:00
alx
f6adc98dd7 DtWidget: Don't free random pointer on Control widget destruction 2014-03-23 23:07:52 -06:00
Eugene Doudine
3ed9f06cce Fixed bug #32 dtfile table formatting bug with non-latin filenames 2014-03-23 13:53:44 -06:00
Eugene Doudine
5e9185dda5 Fixed bug #27 dtfile space handling bug 2014-03-23 13:53:44 -06:00
Eugene Doudine
cd82567977 Fixes the bug #17 dtsession can't validate passwords longer than 8 characters when the session is locked 2014-03-23 13:53:44 -06:00
Jon Trulson
23e62e5782 dtcm/server/: just return NULL, not the address of a dummy local variable. Geez. 2014-03-22 19:23:46 -06:00
Jon Trulson
9ed39fd5f2 MotifUI.C: NULL is not 0 2014-03-22 19:14:38 -06:00
Jon Trulson
78fec87fa6 Threads.C: NULL is not 0 2014-03-22 19:09:46 -06:00
Jon Trulson
23d2ba3445 localized/util/merge.h: include string.h and fix up some warnings 2014-03-22 19:06:54 -06:00
Jon Trulson
4568a22f99 Icon.c: include stdlib.h 2014-03-22 19:01:49 -06:00
Jon Trulson
daffaf7045 getdate.y: include string.h 2014-03-22 18:59:26 -06:00
Jon Trulson
b9d1a4114e pax.h: include stdio.h 2014-03-22 18:56:21 -06:00
Jon Trulson
57ac9e33f9 PrintTopics.c: fix up some warnings 2014-03-22 18:50:15 -06:00
alx
2c162726c7 dtstyle: enable palette editor on true/direct color screens 2014-03-22 18:00:56 -06:00
Jon Trulson
6b0d0cd71e Updated Greek (el_GR.UTF-8) translations from Antonis Tsolomitis. 2014-03-22 17:37:50 -06:00
Jon Trulson
ddb4933039 tt_xdr_utils.h: fix build error on linux/bsd introduced with illumos initial patch.
The linux's and BSD's need the 'struct XDR::xdr_ops ops' declaration,
whereas I guess sun does not.
2014-03-22 16:54:24 -06:00
Peter Tribble
468d576030 initial illumos port 2014-03-22 16:33:11 -06:00
Jon Trulson
3c14b8b5ce libcsa: fix up some stupidness. 2014-03-12 17:00:07 -06:00
Ulrich Wilkens
a9bf30d12b Fix cpp output on Ubuntu 13 2014-03-12 13:47:28 -06:00
Ulrich Wilkens
d24fd29b52 Fix dtfile and dtterm on NetBSD 2014-03-11 13:06:55 -06:00
Jon Trulson
550a805be2 linux: libDtSearch requires linking with -lm 2014-03-10 21:32:10 -06:00
Jon Trulson
1e0eb4e522 dtinfo: stub out XmPrint stuff if there is no XmPrint support. 2014-03-10 20:58:17 -06:00
Jon Trulson
7cbb2fa2a7 dtcm: stub out XmPrint stuff if there is no XmPrint support. 2014-03-10 20:43:32 -06:00
Jon Trulson
b282d3fa87 dtmail: stub out XmPrint stuff if there is no XmPrint support. 2014-03-10 20:30:24 -06:00
Jon Trulson
c39212f684 dtpad: stub out XmPrint stuff if there is no XmPrint support. 2014-03-10 20:07:16 -06:00
Jon Trulson
362a921245 dtdocbook/instant: *always* link with local libtcl.a
On some systems with libtcl installed, it might be linked into instant
rather than the locally provided version.  This can result in random
coredumps.

Seen on Ubuntu 12.04, x86_64.

Now, we force linking with ../tcl/libtcl.a.
2014-03-10 17:06:24 -06:00
Jon Trulson
9f0fbc3015 mp_rpc_server.C: limit iteration of svc_fdset to FD_SETSIZE, as per spec.
In init() there was code iterating over all of the possible file
descriptors in a svc_fdset.  fdsets are limited to FD_SETSIZE.  This
caused coredumps on FreeBSD 10, and possibly other hidden issues.

Moving to poll(), rather than select() would be better, but is a bigger
job.  For now, just limit to the FD_SETSIZE that select() requires.
2014-03-10 14:49:37 -06:00
Jon Trulson
9b9b3430ec linux: move dependancy handling out of linux.cf and into new lnxDep.rules file.
Include lnxDep.rules in linux.cf.
2014-03-09 17:59:18 -06:00
Jon Trulson
155fa2a4f7 linux.cf: fix typo and some formatting. 2014-03-09 14:52:43 -06:00
Jon Trulson
0394dde3f9 nsgmls: fix up some gcc 4.8 warnings. 2014-03-09 14:24:00 -06:00
Jon Trulson
de491a16de linux: Use installed X11 header files rather than requiring /imports/x11/include
With this patch, it is no longer neccessary to create the
/imports/x11/include/X11 symlink...

Also, remove the include of xfree86.cf from linux.cf, and define our
own DefaultCCOptions.  Setup to use only -ansi, not -pendantic.
2014-03-09 04:36:42 -06:00
Jon Trulson
b147e0ce12 libDtTerm: add include <stdio.h> so FILE is properly defined.
TermPrim/TermPrimDebug.h references FILE without including the
required header file.  I am not sure why this hasn't shown up before.
2014-03-09 00:21:40 -07:00
Jon Trulson
4d48253234 linux depend: stop using makedepend, use gcc instead
gcc can generate dependencies, so use that instead of building and
depending on the rather delicate and archaic 'makedepend'.

This fix removes makedepend from being built or used on linux, and
instead uses gcc to generate dependency data in .depend files.

I think pretty much every platform that uses gcc should do this.  I am
not sure if other compilers (intel, clang) can do this though.
2014-03-08 23:43:17 -07:00
Jon Trulson
ded1213316 building_release_archive: add some steps and clean up 2014-03-01 17:01:12 -07:00
Jon Trulson
3610364f13 update HISTORY file for 2.2.1, though a little too late :) 2014-03-01 16:49:09 -07:00
Jon Trulson
8f648927eb Version change to 2.2.1 2014-03-01 15:48:49 -07:00
Jon Trulson
d519628539 admin: add a BuildNotes dir for documenting release proceedures, etc 2014-03-01 15:47:34 -07:00
Ulrich Wilkens
b8a01219bd Fix UTF8 problem on non-linux systems 2014-02-28 11:31:30 -07:00
Eugene Doudine
1ff0741538 Addition of the en_US.UTF-8 locale: installation support 2014-02-26 19:49:20 -07:00
Eugene Doudine
46473a9ccb addition of en_US.UTF-8 locale: fonts.alias and fonts.dir files 2014-02-26 19:49:20 -07:00
Ulrich Wilkens
d0a57b6d57 Fix for dtinfo segfaults 2014-02-22 19:18:07 -07:00
Jon Trulson
c6038f4b51 Re-add NO_DTINFO blocks removed in NetBSD port patch 2014-02-22 19:16:34 -07:00
Ulrich Wilkens
2712d5f787 NetBSD port 2014-02-22 19:12:19 -07:00
Pascal Stumpf
a4f9413950 Fix dtcm build on OpenBSD-current.
libcompat and header files will be gone in the upcoming 5.5 release, so we
cannot use the ftime(3) interface there.  Fall back to the SVR4 version of the
code, but use the tm_gmtoff field of struct tm to get the timezone.
Unfortunately, that is not portable (because I really really would like to
remove that old and crummy struct timeb from the public API).
2014-02-22 19:09:37 -07:00
Eugene Doudine
23e217b329 Fixes segfault in dtprintinfo when used UTF-8 locale, bug was caused by unchecked return value of XmeRenderTableGetDefaultFont() 2014-02-22 19:07:52 -07:00
Eugene Doudine
4c56765da3 Fix for several segfaults in dtwm that happen with UTF-8 locale and were caused by unckeked XmeRenderTableGetDefaultFont return value 2014-02-22 19:07:52 -07:00
alx
46a6a58fbd wwl: fixed dtinfo segfault due to missing copy constructor in WArgList 2014-02-22 19:05:47 -07:00
alx
0e707fe71f dtscreen: cosmic flame fractals missing drawing code 2014-02-22 19:05:47 -07:00
alx
9dd8ea27bf dtfile: fclose called twice on same handle 2014-02-22 19:05:47 -07:00
Eugene Doudine
70987253b3 Bugfix for #9 Cut off fonts in titles 2014-02-18 00:24:35 -07:00
Jon Trulson
0b3f253ba4 Fix for xorg-xkb partially freezes dtwm when keyboard layout is changed.
Patch submitted by Eugene Doudine <dudinea@gmail.com>
2014-02-17 14:37:09 -07:00
Jon Trulson
cab52a91ef dtexec: use proper FD_CLOEXEC rather than a hardcoded 1 2013-12-29 15:41:56 -07:00
Jon Trulson
90baa59dc1 dtexec: fix a case on linux where an infinite loop could occur. 2013-12-29 15:00:16 -07:00
Jon Trulson
2fc37b0f45 Add dtwm.mgg Greek UTF translation from Antonis Tsolomitis 2013-12-29 12:54:55 -07:00
Ulrich Wilkens
6b0da8f335 Introduction of BSDArchitecture 2013-10-20 16:23:40 -06:00
Isaac Dunham
380867c31c Add -quiet option to dtlogin.
This should shut up the console spamming, for those who use VT1.
Default behavior is not changed.
2013-09-24 18:08:56 -06:00
Isaac Dunham
e3973a9320 dtlogin: use proper path to getty and /usr/local/bin in path on Linux 2013-09-24 18:05:37 -06:00
Ulrich Wilkens
2d08153289 correction of message files 2013-09-15 19:35:53 -06:00
Ulrich Wilkens
0f7bbcc209 No symlinks to libraries on OpenBSD (default install) 2013-09-05 11:21:53 -06:00
Jon Trulson
a493d3588d Merge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code 2013-09-03 11:53:03 -06:00
Peter Howkins
c742edcb2f dtstyle: Resolve 70 compiler warnings 2013-09-03 15:41:58 +01:00
Peter Howkins
d57739782f dtstyle: Alphabetically sort the backdrops in the backdrop list. 2013-09-03 14:34:11 +01:00
Pascal Stumpf
394e32bd0b Do not install symlinks to libraries on OpenBSD. 2013-08-31 17:34:01 -06:00
Jon Trulson
c6f1d5ac05 dtinfogen_worker: don't free variables then use them later.
In several places, variables were XFree()'d, but then used in system()
commands later.  This would cause various issues - on my system, I'd
get:

sh: 1: Syntax error: EOF in backquote substitution
system for rm failed; exiting...

while building the guides.
2013-08-31 17:18:53 -06:00
Ulrich Wilkens
219474c9c8 dtinfo activation 2013-08-29 19:50:02 -06:00
Ulrich Wilkens
4ec9658299 dtinfo other files 2013-08-29 19:47:51 -06:00
Ulrich Wilkens
acdae62484 documents for dtinfo 2013-08-29 19:46:29 -06:00
Ulrich Wilkens
92424bd169 dtinfo subdirectory mmdb 2013-08-29 19:45:18 -06:00
Ulrich Wilkens
eb698f32cf dtinfo subdirectory dtinfogen 2013-08-29 19:44:12 -06:00
Ulrich Wilkens
aef2830df2 dtinfo subdirectory dtinfo 2013-08-29 19:42:40 -06:00
Ulrich Wilkens
fbd81ef151 dtinfo subdirectory DtMmdb 2013-08-29 19:41:27 -06:00
Ulrich Wilkens
0be684281d Remove installation of motif man pages. 2013-08-29 19:40:02 -06:00
Pascal Stumpf
335a00c6f1 dtlp: Fix the path to DtFuncs.dtsh if CDE_INSTALLATION_TOP != /usr/dt.
While here, also point the man page to the correct default location.
2013-08-06 17:27:37 -06:00
Ulrich Wilkens
85993b42ab avoid identical Vector instantiations. 2013-07-29 19:17:20 -06:00
Pascal Stumpf
29f2ad7dd7 dtlogin: correct path to getty. 2013-07-25 18:36:34 -06:00
Ulrich Wilkens
a4ab06ac1e lib/DtHelp: added missing include. 2013-07-25 18:29:33 -06:00
Pascal Stumpf
1b319ff67d include unistd.h for read(2) prototype. Fixes dtdocbook on PowerPC.
There are a lot more warnings here, but this one was an actual bug.  Full
treatment pending ...
2013-07-23 19:01:13 -06:00
Pascal Stumpf
79486301d1 Make dtksh build on OpenBSD/powerpc. 2013-07-23 18:47:54 -06:00
Pascal Stumpf
c50eb571e3 OpenBSD.cf: don't include xorg.cf (leftover) 2013-07-23 18:46:31 -06:00
Pascal Stumpf
20081d15c9 ttsnoop: deal with iostream.h and missing sentinels.
Replacing strstream may be possible, but requires more work and a better
understanding of the code.
2013-07-23 18:44:56 -06:00
Pascal Stumpf
380232cb93 Kill iostream.h deprecation warnings on *BSD. 2013-07-23 18:43:05 -06:00
Pascal Stumpf
f9a70b5165 SECURITY fix for dtappintegrate: Use mktemp(1) to generate a template.
Using a fixed filename in /tmp is just begging for a symlink attack ...
2013-07-22 17:26:19 -06:00
Pascal Stumpf
6c42732461 error.ds.src: don't hardcode /usr/dt 2013-07-22 17:25:00 -06:00
Pascal Stumpf
aa470d2e3a Adapt dtlogin/config/_common.ksh.src for OpenBSD:
* ps(1) is totally different on BSD and Linux.  The OSF commandline works fine.
* fontpath is in /usr/X11R6 on OpenBSD.
2013-07-22 17:24:13 -06:00
Pascal Stumpf
2e6347984b Simplify programs/Imakefile a bit. dtksh, dtlogin and dtcm build everywhere. 2013-07-22 17:23:24 -06:00
Pascal Stumpf
57cfd2162d s,/usr/dt,CDE_INSTALLATION_TOP,g in dtlogin/config 2013-07-22 17:22:23 -06:00
Pascal Stumpf
5153c43c50 Xreset.src: Do not hardcode /usr/dt. 2013-07-22 17:21:20 -06:00
Pascal Stumpf
9bd98b70f2 Do not hardcode /usr/dt in print.dt. 2013-07-22 17:20:25 -06:00
Pascal Stumpf
7e0a9517e3 Silence lots of warnings in lib/DtHelp.
* 64bit warnings
* Missing prototypes
* explicit parentheses / brackets

There's still some work to be done, but, as always, it's a start ...
2013-07-22 17:19:13 -06:00
Pascal Stumpf
0c165f56f5 kill a few more warnings in DtPrint 2013-07-22 17:15:34 -06:00
Pascal Stumpf
387ae5bdab sync warning flags betseen cc and c++ on OpenBSD 2013-07-22 17:14:15 -06:00
Pascal Stumpf
c48771be2b Do not use -fpermissive in programs/nsgmls. It's not needed. 2013-07-22 17:13:11 -06:00
Pascal Stumpf
dc0e8ea74d Kill most warnings in lib/DtTerm.
Mostly missing headers, explicit parentheses and new prototypes.

Some Caveats:
* I haven't compile-tested the SVR4 getpty file, it might need another tweak
* There were operator precedence bugs in TermPrimCursor.c and TermPrimRender.c
  (^ vs. !=).  This might change behaviour, but at least I haven't experienced
  any crashes ...
* This adds a little more dependencies for include ordering, but unless we
  want to play the "headers that include headers that include headers..." game,
  this is unavoidable.
2013-07-22 17:12:07 -06:00
Pascal Stumpf
8f98ac92cd Kill lots of warnings in DtSvc. 2013-07-21 15:54:39 -06:00
alx
0d7568e843 dticon: fixed "rubber string" drawing on high/true color displays 2013-06-26 11:20:52 -06:00
Jon Trulson
f8567bff18 update for 2.2.0d release 2013-05-30 15:20:09 -06:00
Jon Trulson
1dca91cb11 update for release 2013-05-30 15:11:21 -06:00
Peter Howkins
6d5eec1855 Update date in copyright (and splash screen) 2013-05-30 16:08:58 +01:00
Ulrich Wilkens
6f56ab0e42 Fix screen locking for BSDs 2013-05-29 20:00:43 -06:00
Jon Trulson
1d8f86a6ba Revert "Enable the use of the TIRPC library on Linux."
This reverts commit 8a8619bfa8.

More work will need to be done to use tirpc on 64bit systems.  It
works 'accidentally' on 32b systems.  The issue is that tirpc
includes *must* be used, and there is some work required to properly
support this (like proper include paths, proper definition of XDR,
etc).

So for now, we revert this until that work can be completed and tested,
otherwise 64b linux builds are likely to have problems.
2013-05-27 19:34:08 -06:00
alx
006dbc0e33 Enable X11 screen saver extension on Linux 2013-05-26 21:10:48 -06:00
Jon Trulson
fae50f7b98 Merge branch 'master' into multi-monitor 2013-05-26 17:50:12 -06:00
Jon Trulson
7006fbc8bf Merge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code 2013-05-26 17:48:55 -06:00
Jon Trulson
8a8619bfa8 Enable the use of the TIRPC library on Linux.
This should avoid the need to run rpcbind in insecure mode.  You will
need to have the libtirpc-dev package, or equivalent installed.
2013-05-26 17:47:00 -06:00
Peter Howkins
3bd9b4c4da dtstyle: Sort color palette names into alphabetical order for displaying. 2013-05-20 15:53:44 +01:00
Jon Trulson
a71ee09728 dtksh: fix a build issue with Kubuntu x86_64.
Remove an apparently unnecessary 'mac' definition for feature/fs and
an unnecessary struct stat forward declaration.
2013-05-18 02:34:06 -06:00
Jon Trulson
fbe451187f Merge branch 'master' into multi-monitor 2013-05-17 23:55:51 -06:00
Jon Trulson
fe0e5904c3 dtksh: fix a build issue with Kubuntu x86_64.
Remove an apparently 'mac' definition for feature/fs and an
unnecessary struct stat forward declaration.
2013-05-17 23:22:33 -06:00
Jon Trulson
a198d898e8 TT RPC server: Don't search 538 million transients trying to allocate one.
Currently, mp_rpc_server.C tries 538 million ports to acquire an
available transient rpcbind port number.  This is bad when rpcbind is
running in secure mode (and you are not using tirpc) - Xsession will
'hang' at the dthello (blue) screen filling up your error logs with
RPC errors.

Now, just try +- 50 (for a total of 100 ports) before bailing.  The
dthello 'blue screen of death' is the most common problem in starting
CDE when rpcbind isn't set up properly.  This should at least not
cause the appearance of a 'hang'.
2013-05-17 16:16:17 -06:00
alx
86e5dc1f10 Fixed dtpad server crash when closing editor window associated with primary document 2013-04-15 17:54:25 -06:00
Ulrich Wilkens
e8cb780125 Build dtksh on more OSs 2013-03-30 17:33:07 -06:00
Jon Trulson
af7ba55f78 Add basic Xinerama support via new lib/DtXinerama
This adds a basic library and support to dtsession and dtlogin to
support Xinerama/Twinview, where multimple monitors are used to make
up an X11 screen.

The main goal here is to draw dialogs and such centered on a monitor,
rather than spread out over multiple monitors.

Might need to add sorting - as on my test system, what I would
consider monitor 0, appears to actually be monitor 1.  So a sort might
need to be added to sort the screens according to increasing x and y
offsets so it make sense to a user.

Also, this library is built statically and not documented.  Maybe it
could be 'filled' out and refactored/redesigned in the futre if need
be and suppoerted.

It is enabled via a define, CDE_USEXINERAMA in site.def.  It's a very
simple lib, so I do not expect any issues with the BSD's - it should
build and work fine, assuming your X server has the XINERAMA
extension, which I think pretty much all of them do at this point.
2013-03-26 19:49:50 -06:00
Jon Trulson
208c1e4999 Add initial Greek UTF-8 translations.
Supplied by Antonis Tsolomitis <antonis.tsolomitis@gmail.com>
2013-03-12 15:03:43 -06:00
Karsten Pedersen
69997241c5 Fixed building on FreeBSD 8.x 2013-02-26 17:28:17 -07:00
Karsten Pedersen
cc076d7756 Fixed colored border around workspace buttons 2013-02-26 17:28:10 -07:00
Pascal Stumpf
0ec1d6b692 Avoid negative array subscript; break out of the loop if that happens. 2012-11-27 23:46:12 -07:00
Pascal Stumpf
943aaadf86 Introduce DTKORNSHELL, analogous to KORNSHELL.
DTKORNSHELL is used to specify the install location of dtksh on your system,
preventing hardcoding of /usr/dt/bin/dtksh in Shebang lines and such.
2012-11-24 19:25:27 -07:00
Pascal Stumpf
b49a4ffc94 Keep track of the length of the string in ExpandVariables().
On OpenBSD, the 'S' option to malloc(3) enables guard pages (among other
things).  This loop could have triggered this trap when reading beyond the
buffer.  Also, the whole "while(*ip)" construct was based on the assumption that
the memory after the string is always zero-filled.
2012-11-24 19:25:19 -07:00
Jon Trulson
f84950100f Revert "Older Linux installations do not have svcfd_create()."
This reverts commit 44e384aedb.

This code is actually needed.  If svcfd_create() is not available, it
should be fixed only for those systems that it affects.
2012-11-24 19:16:58 -07:00
Pascal Stumpf
c64ac1985b Set NATIVEXBINDIR on OpenBSD. 2012-11-20 17:17:37 -07:00
Pascal Stumpf
c57d2191e8 Respect CDE_CONFIGURATION_TOP and CDE_INSTALLATION_TOP.
Do not hardcode /etc/dt and /usr/dt.
2012-11-20 17:17:33 -07:00
Pascal Stumpf
76c874b068 dtgreet: Do not crash if LANG is not set in the environment.
In that case, catopen() will have never been called, and we'd feed 0 as the
first argument to catgets().  This crashes, at least on OpenBSD.
2012-11-20 17:17:29 -07:00
Pascal Stumpf
0e5560cee4 Correct paths to xterm as failsafe client on the BSDs. 2012-11-20 17:17:25 -07:00
Pascal Stumpf
d821557ca4 Use same SIGCHLD handling for OpenBSD as for OSF. 2012-11-20 17:17:18 -07:00
Peter Howkins
e51d581782 dtaction: Resolve 8 warnings caused by -Wall 2012-11-20 16:22:04 +00:00
Peter Howkins
ea96eb624d dtcalc: Resolve 82 warnings causing by enabling -Wall 2012-11-20 14:49:40 +00:00
Pascal Stumpf
b64f79b1b8 On OpenBSD, use FILE_MAP_OPTIMIZED.
This has the effect of not performing a tt call each time in
ResolveLocalPathName() if we're on the local host anyway.  Drastically reduces
dtfile startup time.
2012-11-19 19:44:32 -07:00
Pascal Stumpf
5b9d3fc5ec Use /usr/sbin/sendmail as default mailer on OpenBSD. 2012-11-19 19:44:29 -07:00
Pascal Stumpf
6ecf213b63 Do not build motif manpages any more. 2012-11-19 19:44:24 -07:00
Pascal Stumpf
fad2d16d20 Remove hack adding csu objects to the linker command line on OpenBSD.
This is no longer needed now that $(CC) is used to link shared libraries.
2012-11-19 19:44:19 -07:00
Pascal Stumpf
38f3f5dcba set AvoidNullMakeCommand on OpenBSD to avoid make warnings 2012-11-19 19:44:15 -07:00
Peter Howkins
e56e3f74e6 dtcalc: Further remove K&R function prototypes and replace with ANSI. 2012-11-19 14:28:52 +00:00
Peter Howkins
f4339cd58e dtcalc: Convert functions from K&R to ansi declarations. 2012-11-16 17:03:10 +00: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
Peter Howkins
43cfaeaa65 libDtSearch: Resolve 137 -Wunused-variable warnings. 2012-11-12 17:13:36 +00:00
Peter Howkins
9040256676 libDtSearch: Resolve 38 -Wformat warnings 2012-11-12 16:26:11 +00:00
Peter Howkins
a10520c43c libDtPrint: Resolve 9 -Wunused-variable warnings. 2012-11-12 15:03:37 +00:00
Peter Howkins
21feacd159 libdthelp: Resolve 65 -Wunused-variable warnings 2012-11-09 17:20:46 +00:00
Peter Howkins
6f2a704bbd libcsa: Resolve 96 -Wunused-variable warnings.
This is not all of them, another ~90 exist in generated code.
2012-11-06 15:07:08 +00:00
Peter Howkins
37c30d32f7 lidtwidget: Resolve 74 -Wunused-variable warnings 2012-11-06 13:56:11 +00:00
Peter Howkins
a0da2db479 dtcalc: Resolve 43 warnings that would be introduced with -Wunused-variable or -Wall
Basically 43 local variables declared in functions and then never used.
2012-11-05 16:44:29 +00:00
Marcin Cieslak
2c10f0d62b Fix location of some SGML files 2012-10-24 18:17:06 -06:00
Ulrich Wilkens
8fd8a8a4db Fix dtappbuilder on Linux 2012-10-16 21:04:57 -06:00
Ulrich Wilkens
9b4fe61ea4 dtinfo other requirements 2012-10-15 17:59:26 -06:00
Ulrich Wilkens
f17d779dab dtinfo subtree clients 2012-10-15 17:59:11 -06:00
Ulrich Wilkens
5cdb889f7b dtinfo subtree tools 2012-10-15 17:59:00 -06:00
Ulrich Wilkens
07e886ba7c dtinfo subtree dtinfogen 2012-10-15 17:58:44 -06:00
Ulrich Wilkens
51b8929ebd dtinfo subtree dtinfo 2012-10-15 17:57:49 -06:00
Ulrich Wilkens
8275485b4a dtinfo subtree mmdb 2012-10-15 17:57:35 -06:00
Ulrich Wilkens
8c8363f4a5 dtinfo subtree DtMmdb 2012-10-15 17:57:14 -06:00
Marcin Cieslak
b92cf08899 Adobe Helvetica as -dt-interface system-
Use Adobe Helvetica as the sans serif user
interface font (among others, dtlogin, front
panel buttons, menu titles) instead of Lucida.

While there, move X Consortium comment back
to the top.

This change applies only to FreeBSD.
2012-10-08 19:31:24 +01:00
Peter Howkins
cd39eabb18 libdthelp: resolve 46 compiler warnings 2012-10-08 15:34:45 +01:00
Marcin Cieslak
c3c9abd86f Set CDE_RELEASE to 2.2.0 2012-10-06 18:42:35 +01:00
Jon Trulson
1c7b2005fe Update HISTORY for 2.2.0c release 2012-10-04 18:10:33 -06:00
Jon Trulson
7c9ca091be update CONTRIBUTORS 2012-10-04 18:06:47 -06:00
Jelle Hermsen
b8862cab32 Changed a couple of ifdefs for __FreeBSD__ to CSRG_BASED. These are all clearcut cases. I left the ones I had doubts about, or where I wasn't sure about the OpenBSD side of things to look at later. 2012-10-03 17:06:57 -06:00
David J.McBrayer
8cfdf21526 -Updated README.dtlogin -Update "# Provides:" in dtlogin LSB init script 2012-10-02 18:58:42 -06:00
Marcin Cieslak
40883b0165 Remove missing xmbind and uil from UDB
Remove xmbind and uil utilities we
do not build and install from the
packing lists.
2012-10-02 18:57:14 -06:00
Marcin Cieslak
aacfe3e5de dtfile: Fix crash when trying to open filter dialog
On 64-bit machine dtfile crashes when opening
list of file types to filter in Encaps.c:

   _DtShowDialog (parent=0x805c80900, map_parent=0x0, top_rec=0x805ce3600,
     dialog_data=0x805db25e0, change_proc=0x4489f0 <FilterChange+16>,
     change_data=0x805ce3600, close_proc=0x4489c0 <FilterClose+16>,
     close_data=0x805ce3600, workspaces=0x0, iconify_state=0 '\0',
     ignoreCache=0 '\0', title=0x0, classHints=0x0) at Encaps.c:531

531	        ResetFlag(NULL,fr->close);
2012-10-02 18:57:12 -06:00
Jon Trulson
cc5544354f linux.cf: use -fno-strict-aliasing, define DefaultGcc2i386Opt, use indenting to improve readability 2012-10-01 19:27:36 -06:00
Marcin Cieslak
de61ffa637 Use -O2 -fno-strict-aliasing optimization for FreeBSD
- Switching from -O to -O2 after the dthelp problem
  has been resolved
- Introducing -fno-strict-aliasing (currently FreeBSD's
  default) to avoid silent change of behaviour of legacy code.

  http://thiemonagel.de/2010/01/no-strict-aliasing/

  http://jeffreystedfast.blogspot.de/2010/01/weird-bugs-due-to-gcc-44-and-strict.html

Analysis of C99 aliasing (we are not C99 yet):

  http://davmac.wordpress.com/2010/02/26/c99-revisited/
2012-10-01 18:59:20 -06:00
Marcin Cieslak
775fb0f0f1 Don't break help with gcc -O2
libDtHelp is unable to read SDL help files
with -ftree-store-ccp optimization which
is enabled by -O2 on gcc 4.2.1.

GifUtils.c and decompress.c didn't work
properly with -ftree-store-ccp enabled.

GifUtils.c was repaired by fixing
those warnings:

GifUtils.c: In function 'create_pixmap':
GifUtils.c:1093: warning: return makes integer from pointer without a cast
GifUtils.c:1110: warning: return makes integer from pointer without a cast
GifUtils.c:1215: warning: return makes integer from pointer without a cast
GifUtils.c: In function 'gif_to_pixmap':
GifUtils.c:1242: warning: return makes integer from pointer without a cast

decompress.c didn't generate warnings, but the
only effect of the -ftree-store-cpp was to introduce
this change:

        addq    $1, %rax
        movq    %rax, (%rbx)
 .L90:
-       cmpl    $157, %edx
+       cmpl    $-99, %edx
        jne     .L86
        movl    8(%rbx), %eax
        subl    $1, %eax

Which corresponds to this source code:

bufioI.h

     57 #define BufFileGet(f)   ((f)->left-- ? *(f)->bufp++ : (*(f)->io) (f))

     42     int     (*io)(/* BufFilePtr f */);

decompress.c
     53 #ifdef NO_UCHAR
     54  typedef char   char_type;
     55 #else
     56  typedef        unsigned char   char_type;
     57 #endif /* UCHAR */
     58
     59 static  char_type magic_header[] = { "\037\235" };      /* 1F 9D */

    131     if ((BufFileGet(f) != (magic_header[0] & 0xFF)) ||
    132         (BufFileGet(f) != (magic_header[1] & 0xFF)))
    133     {
    134         return 0;
    135     }

BufFileGet() returns (int), so the (unsigned char) constants
got promoted to (int) with sign extension; therefore constant
157 decimal (0x9D) became -99 decimal, sign extended
(0xffffff9D), and the comparison was always false.

Tested using:
$ gcc -v
Using built-in specs.
Target: amd64-undermydesk-freebsd
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070831 patched [FreeBSD]

Running on:
FreeBSD 10.0-CURRENT (r240948M)
built Wed Sep 26 23:33:08 CEST 2012
2012-10-01 18:59:14 -06:00
Marcin Cieslak
48b76f8623 dtcreate: Don't crash when clicking "Find Set..."
dtcreate crashed on 64-bit system when clicking
"Find Set.." button.

Crash happens in libXm:

    new_w=0x805db4300, args=0x7fffffffb430, num_args=0x7fffffffb3dc)
    at Form.c:1955

$1 = {att = {{type = 4 '\004', w = 0x805db3700, percent = 0, offset = 0,
      value = 0, tempValue = 0}, {type = 1 '\001', w = 0x0, percent = 0,
      offset = 10, value = 0, tempValue = 0}, {type = 3 '\003',
      w = 0x805db3700, percent = 0, offset = 0, value = 0, tempValue = 0}, {
      type = 3 '\003', w = 0x800000000, percent = 0, offset = 10, value = 0,
      tempValue = 0}}, next_sibling = 0x0, sorted = 0 '\0',
  resizable = 1 '\001', preferred_width = 0, preferred_height = 0}

(...)

    at icon_selection_dialog.c:1768
1767            /* Creation of icon_scrolled_win */
1768            icon_scrolled_win = XtVaCreateManagedWidget( "icon_scrolled_win",
1769                            xmScrolledWindowWidgetClass,
1770                            icon_selection_dialog,
1771                            XmNscrollingPolicy, XmAUTOMATIC,
1772    /*                      XmNnavigationType, XmTAB_GROUP, */
1773                            XmNx, 282,
1774                            XmNy, 84,
1775                            XmNscrollBarDisplayPolicy, XmAS_NEEDED,
1776                            XmNrightOffset, 10,
1777                            XmNrightAttachment, XmATTACH_FORM,
1778                            XmNtopOffset, 0,
1779                            XmNtopWidget, icon_container_label,
1780                            XmNtopAttachment, XmATTACH_WIDGET,
1781                            XmNleftOffset, 0,
1782                            XmNleftWidget, icon_container_label,
1783                            XmNleftAttachment, XmATTACH_OPPOSITE_WIDGET,
1784                            XmNbottomOffset, 10,
1785                            XmNbottomWidget, XmATTACH_NONE,
1786                            XmNbottomAttachment, XmATTACH_WIDGET,
1787                            NULL );

What happens here is that ConstraintInitialize receives
four constraints, the last one is this:

    { type = 3 '\003', /* XmATTACH_WIDGET */
      w = 0x800000000, /* malformed XmATTACH_NONE ???
      percent = 0,
      offset = 10, /* specified as XmNbottomOffset */
      value = 0,
      tempValue = 0}

XmATTACH_* values are defined in <Xm/Xm.h> as follows:

   505  enum{   XmATTACH_NONE,                  XmATTACH_FORM,
   506          XmATTACH_OPPOSITE_FORM,         XmATTACH_WIDGET,
   507          XmATTACH_OPPOSITE_WIDGET,       XmATTACH_POSITION,
   508          XmATTACH_SELF
   509          } ;

What is not clear to why XmATTACH_NONE - which should be (int)0 -
becomes 0x800000000 - looks like a 64 bit bug somewhere.

Providing a long value on None (0L) as in this change fixes the
problem.

I understand is that it possible to use such an "empty" widget
is to create additional space at the bottom of the newly created
"icon_scrolled_win".

What needs to be clarified - shouldn't be such an (int) value be
automatically promoted to (long) (or XtArgVal, XtPointer, ...)
and preserve the value 0? Lots of parameters seem to be
passed as ints (for example dimensions) and they do not
appear to cause any trouble.
2012-09-30 11:11:21 -06:00
Jon Trulson
f40368caa2 XmPrivate.h: never try to build this automatically.
XmPrivate must be generated manually.  For this you work, you must
have a freshly compiled openmotif tree, and MLIBSRC must be pointing
to it.

Otherwise, it's possible during the includes phase for an attempt to
be made to regenerate this file, which will fail on the vast majority
of systems out there.

So, to regenerate,

cd include/Xm
rm XmPrivate.h
make XmPrivate.h
2012-09-29 20:46:27 -06:00
Marcin Cieslak
27bc7d6bec dtcreate: Add missing prototypes and more (64-bit)
- Fix missing prototypes
- Fix some 64-bit related problems (XtVaGetValues)
- Fix crash on dtcreate startup in create_applicationShell1()
- Add XmeFlushIconFileCache() prototype from <Xm/IconFileP.h>
2012-09-29 20:28:45 -06:00
Marcin Cieslak
3eaeffaf7e XmPrivate.h: Avoid whitespace problems (IMPROVED)
When applying a patch, "git am" strips
trailing whitespace, although they are
present in the git formatted-patch.

This way the committed file will be
slightly different than the file re-generated
by extractprototype.h

It shouldn't hurt, but next run of
extractprototype.h will add trailing spaces
again and the resulting diff on XmPrivate.h
will include more changes than actually
needed.

This may break some viscious circle after
applying the patch, so enabling regeneration
on LinuxArchitecture again.

This patch does not add XmeFlushIconFileCache()
needed by dtcreate.
2012-09-29 20:28:43 -06:00
Frederic Koehler
71962e580d dtcreate: Avoid trying to reuse closed help window
This fixes a segfault when trying to go to help a second
time, after closing the first window.
2012-09-29 19:29:02 -06:00
Frederic Koehler
4773d68153 dthelp: Avoid undefined behaviour in strcpy
Technically strcpy's ranges cannot overlap at all,
although in practice this is usually not an issue.
Does quiet a valgrind warning, however.
2012-09-29 19:21:27 -06:00
Marcin Cieslak
7948362829 dtfile: fix crash in RecheckFlag (64bit) 2012-09-28 19:13:29 -06:00
Jelle Hermsen
399915f0ce Teach ToolTalk config about NetBSD and adds HAS_STATVFS identifier which is consequently used in tt_file_system.C, because NetBSD switched to the POSIX/XOpen statvfs() calls in 2004. 2012-09-28 19:11:09 -06:00
James Woodcock
0ea703ed1e Use the system strcasestr() on Linux. 2012-09-27 18:01:24 -06:00
James Woodcock
44e384aedb Older Linux installations do not have svcfd_create().
svcfd_create() is only called if OPT_UNIX_SOCKET_RPC is defined, so a #ifdef
round that code should be OK.
2012-09-27 18:01:19 -06:00
James Woodcock
406fa95994 Use RPC_ANYSOCK instead of the magic number -1. 2012-09-27 18:01:14 -06:00
James Woodcock
407bb371f2 Remove unnecessary extern modifier from struct declaration. 2012-09-27 18:01:09 -06:00
Marcin Cieslak
ee82570104 Use typedef XDR from <rpc/xdr.h>
__rpc_xdr is no longer available on FreeBSD 10.
(XDR is typedef'd as "struct XDR" and not "struct __rpc_xdr").

By the way, why did we ever need this? Probably
it should be removed. Leaving for __OpenBSD__ for now.
2012-09-27 17:54:12 -06:00
Marcin Cieslak
5f8b6ba739 dticon: fix typo in the last commit 2012-09-27 17:54:09 -06:00
Marcin Cieslak
481e46a7b2 Update vendor logo for FreeBSD
- Improved font rendering and anti-aliasing
  by hand
- Let dticon recognize .bm file as X bitmap
2012-09-26 19:43:55 -06:00
Marcin Cieslak
0f6300008d dticon: make XVaGetValues() call 64-bit compliant 2012-09-26 19:43:00 -06:00
Marcin Cieslak
e1f9b57844 dtstyle: XVaGetValues() calls 2012-09-26 19:42:57 -06:00
Pascal Stumpf
b61e8ebad6 Add csu objects to shared libraries on OpenBSD.
This is required by recent changes to the stack protector code in gcc,
generating references to __guard_local instead of __guard, defined in
crtbeginS.o.

This is a temporary solution; strictly speaking, we shouldn't invoke ld
directly at all but use cc instead.
2012-09-25 11:37:23 -06:00
Marcin Cieslak
e7ad6b776e Dtlogin logo for FreeBSD
Install black and white and 128-color custom logos for FreeBSD.

The FreeBSD logo based on the artwork provided by The FreeBSD Foundation:
  http://www.freebsd.org/logo/logo-basic.png

  The mark FreeBSD is a registered trademark of The FreeBSD Foundation
  is are used by Common Desktop Enviroment (CDE) with
  the permission of The FreeBSD Foundation.

  The FreeBSD Logo is a trademark of The FreeBSD Foundation and is used
  by Common Desktop Environment (CDE) with the permission of
  The FreeBSD Foundation.

Use of logo subject to Trademark Usage Terms and Conditions:
    http://www.freebsdfoundation.org/documents/Guidelines.shtml
2012-09-25 11:35:29 -06:00
Marcin Cieslak
c697b943d4 Don't make /var group writable
* Use 0755 permissions for /var (not 0775)
  - this makes sendmail unhappy
* Don't change permissions on /var on dtlogin startup
2012-09-25 11:33:11 -06:00
Marcin Cieslak
663c251125 Install /usr/local/libdata/ldconfig/cde for FreeBSD
I mean really this time. Please.
2012-09-25 11:33:09 -06:00
Anthony Perkins
e7cb79e9b2 Corrected font aliases for "-b&h-lucidasans" on FreeBSD.
The following patch gets the Lucida Sans font working on my FreeBSD system. Before applying this, title bars and menu bars are displayed in the "-misc-fixed" font. This is on FreeBSD 9.0-RELEASE-p3.
2012-09-25 11:32:02 -06:00
Marcin Cieslak
0747780cdd FreeBSD: Add /usr/dt/lib to runtime linker - update
On Mon, 24 Sep 2012, Jon Trulson wrote:

> On Tue, 25 Sep 2012, Marcin Cieslak wrote:
>
> Applied.

I'm sorry - it turns out this one does not fully
work as expected.

This one is better (it's relative to the old master)
- so it might cause a conflict:
2012-09-24 19:21:12 -06:00
Jon Trulson
a658d226d1 Revert "FreeBSD: Add /usr/dt/lib to runtime linker"
This reverts commit 91f228411e.

Updated patch.
2012-09-24 19:20:56 -06:00
Marcin Cieslak
77ec7b56b8 2 warnings fixed (64-bit)
Fix XtVaGetValues() output for 64-bit
Fix filename comparison in Dts.c
2012-09-24 18:35:24 -06:00
Marcin Cieslak
91f228411e FreeBSD: Add /usr/dt/lib to runtime linker
Create $LOCALBASE/libdata/ldconfig/cde
which points the runtime linker to /usr/dt/lib

There is no need to invoke ldconfig manually
after this.
2012-09-24 18:34:30 -06:00
Marcin Cieslak
a8c2232e48 dtpdm: XtVaGetValues, XtPointer, XtArgVal, ...
Make XtVaGetValues return variables safe for 64-bit
2012-09-24 18:31:25 -06:00
Marcin Cieslak
917f7da191 157 warnings: remove -DXK_MISCELLANY from Makefiles
Fixes the following warning:

In file included from ../../../imports/x11/include/X11/Xutil.h:54,
                 from ../../../imports/x11/include/X11/Intrinsic.h:54,
                 from Action.c:64:
../../../imports/x11/include/X11/keysym.h:49:1: warning: "XK_MISCELLANY" redefined
<command-line>: warning: this is the location of the previous definition

<keysym.h> which includes all key symbols and loads <keysymdef.h>
is automaticlly included by the X Toolkit.

This patch removes #include <keysymdef.h> whenever not needed,
and adds #define XK_MISCALLANY in the source code where required.
2012-09-24 18:30:21 -06:00
Marcin Cieslak
c70978e986 dtmail: fix warning: comparison is always false
This warning was caused by a typo:

warning: comparison is always false due to limited range of data type
2012-09-24 18:27:45 -06:00
Marcin Cieslak
22a0f8f497 dtmail: fix warning: NULL used in arithmetic
NULL != NULL makes no sense, really...
2012-09-24 18:27:18 -06:00
Marcin Cieslak
e3564643ad dtmail: warning: 'DtMailBoolean' is promoted to (int)
Fix this warning:

RFCTransport.C: In function 'long unsigned int writeToFileDesc(const char*, int,
 __va_list_tag*)':
RFCTransport.C:91: warning: 'DtMailBoolean' is promoted to 'int' when passed thr
ough '...'
RFCTransport.C:91: warning: (so you should pass 'int' not 'DtMailBoolean' to 'va
_arg')
RFCTransport.C:91: note: if this code is reached, the program will abort
2012-09-24 18:26:27 -06:00
Marcin Cieslak
91bfe1e4dc dtmail: Fix XtVaGetValues() return value storage
At least one crash was caused by this
on the 64-bit system
2012-09-24 18:26:11 -06:00
Marcin Cieslak
3a246dfb9b Get rid of unpleasant cast, it causes SIGSEGV
Having a difficult choice between unplasant
cast to get a void * into an enumeration type
and "Something's wrong here" double cast
I decided for the latter.

At least it does not crash when the legal
value of zero is passed as the argument.
2012-09-24 18:25:28 -06:00
Marcin Cieslak
86cb67de90 dtpad: kill one warning 2012-09-23 19:46:21 -06:00
Marcin Cieslak
e077181a46 dtpad: Use XtArgVal for int conversion
Avoid overwrite of local variables when using
short (int, etc.) types with XtVaGetValues().

Cast XtPointer using (XtArgVal) without
the need to use C99 <stdint.h> and friends.
2012-09-23 19:45:56 -06:00
Marcin Cieslak
d089ff7599 dtpad: Fix 64-bit crash on file open/save
Fix SIGSEGV because of implicit declaration
of _XmStringUngenerate.

The error message reported to the user was:

TT_ERR_PROCID The process id passed is not valid.
2012-09-23 19:45:22 -06:00
Marcin Cieslak
d852a8bfa6 BSD: Remove libXX.so symlink before installing
Now we can run "make" in "lib/tt" again
and the symlink will be recreated.
2012-09-23 19:44:36 -06:00
Marcin Cieslak
c1b4c13398 dtprintinfo: sym2num needs ksh 2012-09-23 19:43:43 -06:00
Marcin Cieslak
df1da3432e dtprintinfo: Use 64-bit values for XtVaGetValues() pointers
XtArgVal should be a type that encompasses XtPointer
and long integer types. In the X.org implementation
it is currently defined as (long).

Don't use (unsigned int *) instead of (Window *).
2012-09-23 19:43:11 -06:00
Marcin Cieslak
fc0f1ff697 dtprintinfo: Use CUPS lpq for FreeBSD
Use /usr/local/bin/lpq from CUPS for FreeBSD
for now; this prevents immediate dtprintinfo
crash.

In the future we should handle both built-in
/usr/bin/lpq as well as CUPS /usr/local/bin/lpq
output in separate functions.

Code to support CUPS should probably shared between
other operating systems.
2012-09-23 19:41:32 -06:00
Marcin Cieslak
6ea7855841 Fix logic in dtprintinfo
Fix values for true/false and boolean type
2012-09-23 19:38:43 -06:00
Marcin Cieslak
18a78bbff5 dtfile: fix pointer to integer conversion
Use XtArgVal (usually (long)) to convert
(XtPointer) to (int) and back.

This provides safe way to convert and
avoids compiler warning.
2012-09-23 19:38:40 -06:00
Jon Trulson
359126b739 contrib/xinetd: xinetd file for cmsd and ttsdbserver
mailling list post from: Ecmel Ercan <ecmel.ercan@gmail.com>
2012-09-23 19:32:17 -06:00
Marcin Cieslak
6b1d497984 dttypes should not crash on 64-bit system
Casting (int) to (char **) will not
prevent crash on a 64-bit system.

A proper ANSI prototype has been added.
2012-09-22 19:04:27 -06:00
Marcin Cieslak
1041e08003 Fix dtfile crash on 64 bit
When asking for data using XtVaGetValue()
make sure that there is enough place for
the return value (which is sometimes XtPointer).
Providing pointer to (int) is not enough.

Cast XtPointer into requested int types
directly, which unfortunately introduces
compilation warning:

cast from pointer to integer of different size
2012-09-22 19:04:21 -06:00
Jon Trulson
9b77aa08b4 Xm/Imakefile: never try to regen XmPrivate.h on linux systems. It will always fail. 2012-09-18 10:14:33 -06:00
Jon Trulson
3a9bac86e3 Merge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code 2012-09-18 10:07:11 -06:00
Marcin Cieslak
1079b56422 dtfile: Add missing prototypes
Add missing prototypes and header files to the dtfile
code in order to move closer towards 64-bit compatibility.

Extract the following functions from Motif internal headers:

_XmGetWidgetExtData
_XmRecordEvent
_XmStringUngenerate
_XmTextFieldSetDestination
_XmGetActiveTopLevelMenu

Extract manually prototypes of the obsolete Motif interface:
_XmHighlightBorder
_XmUnhighlightBorder

Remove XmPrivate.h if extractprototype.awk fails

Make the following header files available via -I:
	codelibs/boolean.h
	codelibs/pathutils.h
	codelibs/shellutils.h
and remove shellutils.h from dtwm directory.
2012-09-18 09:59:11 -06:00
Peter Howkins
5e14a88e2c dtudcexch/dtudcfonted: Resolve 78 compiler warnings. 2012-09-18 12:00:05 +01:00
Peter Howkins
e2432556b8 Merge branch 'master' of ssh://localhost:3333/p/cdesktopenv/code 2012-09-18 11:59:42 +01:00
Jon Trulson
f55dfc34c0 CDE-MAN.udb: add /usr/dt/man symlink for linux, like freebsd 2012-09-17 18:26:14 -06:00
Jon Trulson
735bdff392 Merge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code 2012-09-17 18:23:31 -06:00
Marcin Cieslak
464bc5b3f6 Improve MANPATH control
* Revert changes to programs/dtsearchpath/libCliSrv/UnixEnv.C
  introduced by c3cb5b8aa6
  that could have produced disappearing Application Manager
  icons on FreeBSD
* Introduce SearchPath:useSystemPath() virtual method to tell
  dtsearchpath to leave some environment variables alone.

  It is currently overriden for FreeBSD only if the MANPATH
  is empty (system default). Other operating systems
  might want to override it if they prefer to have distribution
  specific control of a search path in effect.

* Symlink /usr/dt/share/man to /usr/dt/man for FreeBSD
  This allows dtsearchpath to actually include /usr/dt/man
  in the MANPATH when MANPATH override is in effect.
2012-09-17 18:23:14 -06:00
Peter Howkins
f3d2d238ed dtterm: Resolve 4 compiler warnings 2012-09-17 16:28:55 +01:00
Peter Howkins
dcdd21df34 dtstyle: Resolve 28 compiler warnings. 2012-09-17 14:56:06 +01:00
Marcin Cieslak
071da0d223 BSD: Add /usr/local/bin to the default PATH on login 2012-09-10 12:08:36 -06:00
Marcin Cieslak
c3cb5b8aa6 FreeBSD: Don't set MANPATH, use OS configuration
- make installer to set up man(1) paths using /usr/local/etc/man.d/*
- don't override empty/unset MANPATH with compiled in default
2012-09-10 12:08:34 -06:00
Mike Stroyan
f0a60e47b1 Don't use fstat for readable pipe chars in dtexec.
The dtexec code assumes that fstat reports pipe's readable chars.
Linux always reports 0 for st_size of a pipe.
Instead read one character when select reports readable.
Note EOF when select says readable but read returns 0.
2012-09-09 18:23:45 -06:00
Marcin Cieslak
bd70163b09 FreeBSD: Fix dtlogin failsafe session
We need to have /usr/local as the proper
X11 prefix to start mwm and xterm
2012-09-07 17:32:52 -06:00
Jon Trulson
1a51479e38 add HISTORY file 2012-09-06 13:33:58 -06:00
Jon Trulson
096f96be24 dtlogin: enable building on FreeBSD 2012-09-06 12:36:14 -06:00
Jon Trulson
6df4fac771 Update README file 2012-09-06 12:12:15 -06:00