oweals/cde.git
10 years agoupdate for 2.2.0d release 2.2.0d
Jon Trulson [Thu, 30 May 2013 21:20:09 +0000 (15:20 -0600)]
update for 2.2.0d release

10 years agoupdate for release
Jon Trulson [Thu, 30 May 2013 21:11:21 +0000 (15:11 -0600)]
update for release

10 years agoUpdate date in copyright (and splash screen)
Peter Howkins [Thu, 30 May 2013 15:08:58 +0000 (16:08 +0100)]
Update date in copyright (and splash screen)

10 years agoFix screen locking for BSDs
Ulrich Wilkens [Tue, 28 May 2013 22:30:06 +0000 (00:30 +0200)]
Fix screen locking for BSDs

10 years agoRevert "Enable the use of the TIRPC library on Linux."
Jon Trulson [Tue, 28 May 2013 01:34:08 +0000 (19:34 -0600)]
Revert "Enable the use of the TIRPC library on Linux."

This reverts commit 8a8619bfa8a25342d898d2cc4decd7bb66b9c060.

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.

10 years agoEnable X11 screen saver extension on Linux
alx [Mon, 27 May 2013 00:13:27 +0000 (02:13 +0200)]
Enable X11 screen saver extension on Linux

10 years agoMerge branch 'master' into multi-monitor
Jon Trulson [Sun, 26 May 2013 23:50:12 +0000 (17:50 -0600)]
Merge branch 'master' into multi-monitor

10 years agoMerge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code
Jon Trulson [Sun, 26 May 2013 23:48:55 +0000 (17:48 -0600)]
Merge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code

10 years agoEnable the use of the TIRPC library on Linux.
Jon Trulson [Sun, 26 May 2013 23:47:00 +0000 (17:47 -0600)]
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.

10 years agodtstyle: Sort color palette names into alphabetical order for displaying.
Peter Howkins [Mon, 20 May 2013 14:53:44 +0000 (15:53 +0100)]
dtstyle: Sort color palette names into alphabetical order for displaying.

10 years agodtksh: fix a build issue with Kubuntu x86_64.
Jon Trulson [Sat, 18 May 2013 05:22:33 +0000 (23:22 -0600)]
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.

10 years agoMerge branch 'master' into multi-monitor
Jon Trulson [Sat, 18 May 2013 05:55:51 +0000 (23:55 -0600)]
Merge branch 'master' into multi-monitor

10 years agodtksh: fix a build issue with Kubuntu x86_64.
Jon Trulson [Sat, 18 May 2013 05:22:33 +0000 (23:22 -0600)]
dtksh: fix a build issue with Kubuntu x86_64.

Remove an apparently 'mac' definition for feature/fs and an
unnecessary struct stat forward declaration.

10 years agoTT RPC server: Don't search 538 million transients trying to allocate one.
Jon Trulson [Fri, 17 May 2013 22:16:17 +0000 (16:16 -0600)]
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'.

11 years agoFixed dtpad server crash when closing editor window associated with primary document
alx [Tue, 2 Apr 2013 20:44:14 +0000 (22:44 +0200)]
Fixed dtpad server crash when closing editor window associated with primary document

11 years agoBuild dtksh on more OSs
Ulrich Wilkens [Tue, 26 Mar 2013 03:08:13 +0000 (04:08 +0100)]
Build dtksh on more OSs

11 years agoAdd basic Xinerama support via new lib/DtXinerama
Jon Trulson [Wed, 27 Mar 2013 01:49:50 +0000 (19:49 -0600)]
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.

11 years agoAdd initial Greek UTF-8 translations.
Jon Trulson [Tue, 12 Mar 2013 21:03:43 +0000 (15:03 -0600)]
Add initial Greek UTF-8 translations.

Supplied by Antonis Tsolomitis <antonis.tsolomitis@gmail.com>

11 years agoFixed building on FreeBSD 8.x
Karsten Pedersen [Tue, 26 Feb 2013 19:12:35 +0000 (19:12 +0000)]
Fixed building on FreeBSD 8.x

11 years agoFixed colored border around workspace buttons
Karsten Pedersen [Tue, 26 Feb 2013 19:09:17 +0000 (19:09 +0000)]
Fixed colored border around workspace buttons

11 years agoAvoid negative array subscript; break out of the loop if that happens.
Pascal Stumpf [Tue, 27 Nov 2012 20:12:23 +0000 (21:12 +0100)]
Avoid negative array subscript; break out of the loop if that happens.

11 years agoIntroduce DTKORNSHELL, analogous to KORNSHELL.
Pascal Stumpf [Thu, 22 Nov 2012 14:49:51 +0000 (15:49 +0100)]
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.

11 years agoKeep track of the length of the string in ExpandVariables().
Pascal Stumpf [Thu, 22 Nov 2012 13:27:26 +0000 (14:27 +0100)]
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.

11 years agoRevert "Older Linux installations do not have svcfd_create()."
Jon Trulson [Sun, 25 Nov 2012 02:16:58 +0000 (19:16 -0700)]
Revert "Older Linux installations do not have svcfd_create()."

This reverts commit 44e384aedb3b8aabbd3c556af28848fc58c09c60.

This code is actually needed.  If svcfd_create() is not available, it
should be fixed only for those systems that it affects.

11 years agoSet NATIVEXBINDIR on OpenBSD.
Pascal Stumpf [Tue, 20 Nov 2012 19:08:34 +0000 (20:08 +0100)]
Set NATIVEXBINDIR on OpenBSD.

11 years agoRespect CDE_CONFIGURATION_TOP and CDE_INSTALLATION_TOP.
Pascal Stumpf [Tue, 20 Nov 2012 21:42:29 +0000 (22:42 +0100)]
Respect CDE_CONFIGURATION_TOP and CDE_INSTALLATION_TOP.

Do not hardcode /etc/dt and /usr/dt.

11 years agodtgreet: Do not crash if LANG is not set in the environment.
Pascal Stumpf [Tue, 20 Nov 2012 18:42:33 +0000 (19:42 +0100)]
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.

11 years agoCorrect paths to xterm as failsafe client on the BSDs.
Pascal Stumpf [Tue, 20 Nov 2012 21:03:30 +0000 (22:03 +0100)]
Correct paths to xterm as failsafe client on the BSDs.

11 years agoUse same SIGCHLD handling for OpenBSD as for OSF.
Pascal Stumpf [Tue, 20 Nov 2012 09:09:16 +0000 (10:09 +0100)]
Use same SIGCHLD handling for OpenBSD as for OSF.

11 years agodtaction: Resolve 8 warnings caused by -Wall
Peter Howkins [Tue, 20 Nov 2012 16:22:04 +0000 (16:22 +0000)]
dtaction: Resolve 8 warnings caused by -Wall

11 years agodtcalc: Resolve 82 warnings causing by enabling -Wall
Peter Howkins [Tue, 20 Nov 2012 14:49:40 +0000 (14:49 +0000)]
dtcalc: Resolve 82 warnings causing by enabling -Wall

11 years agoOn OpenBSD, use FILE_MAP_OPTIMIZED.
Pascal Stumpf [Mon, 19 Nov 2012 15:22:47 +0000 (16:22 +0100)]
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.

11 years agoUse /usr/sbin/sendmail as default mailer on OpenBSD.
Pascal Stumpf [Sun, 18 Nov 2012 23:26:54 +0000 (00:26 +0100)]
Use /usr/sbin/sendmail as default mailer on OpenBSD.

11 years agoDo not build motif manpages any more.
Pascal Stumpf [Sun, 18 Nov 2012 22:43:05 +0000 (23:43 +0100)]
Do not build motif manpages any more.

11 years agoRemove hack adding csu objects to the linker command line on OpenBSD.
Pascal Stumpf [Sun, 18 Nov 2012 17:36:48 +0000 (18:36 +0100)]
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.

11 years agoset AvoidNullMakeCommand on OpenBSD to avoid make warnings
Pascal Stumpf [Sun, 18 Nov 2012 17:25:07 +0000 (18:25 +0100)]
set AvoidNullMakeCommand on OpenBSD to avoid make warnings

11 years agodtcalc: Further remove K&R function prototypes and replace with ANSI.
Peter Howkins [Mon, 19 Nov 2012 14:28:52 +0000 (14:28 +0000)]
dtcalc: Further remove K&R function prototypes and replace with ANSI.

11 years agodtcalc: Convert functions from K&R to ansi declarations.
Peter Howkins [Fri, 16 Nov 2012 17:03:10 +0000 (17:03 +0000)]
dtcalc: Convert functions from K&R to ansi declarations.

11 years agodtscreen: Resolve (all) 11 warnigns caused by -Wall
Peter Howkins [Fri, 16 Nov 2012 15:57:36 +0000 (15:57 +0000)]
dtscreen: Resolve (all) 11 warnigns caused by -Wall

11 years agodtscreen: Resolve a -Wformat-security warning.
Peter Howkins [Fri, 16 Nov 2012 15:29:50 +0000 (15:29 +0000)]
dtscreen: Resolve a -Wformat-security warning.

11 years agolibDtSearch: Resolve 137 -Wunused-variable warnings.
Peter Howkins [Mon, 12 Nov 2012 17:13:36 +0000 (17:13 +0000)]
libDtSearch: Resolve 137 -Wunused-variable warnings.

11 years agolibDtSearch: Resolve 38 -Wformat warnings
Peter Howkins [Mon, 12 Nov 2012 16:26:11 +0000 (16:26 +0000)]
libDtSearch: Resolve 38 -Wformat warnings

11 years agolibDtPrint: Resolve 9 -Wunused-variable warnings.
Peter Howkins [Mon, 12 Nov 2012 15:03:37 +0000 (15:03 +0000)]
libDtPrint: Resolve 9 -Wunused-variable warnings.

11 years agolibdthelp: Resolve 65 -Wunused-variable warnings
Peter Howkins [Fri, 9 Nov 2012 17:20:46 +0000 (17:20 +0000)]
libdthelp: Resolve 65 -Wunused-variable warnings

11 years agolibcsa: Resolve 96 -Wunused-variable warnings.
Peter Howkins [Tue, 6 Nov 2012 15:07:08 +0000 (15:07 +0000)]
libcsa: Resolve 96 -Wunused-variable warnings.

This is not all of them, another ~90 exist in generated code.

11 years agolidtwidget: Resolve 74 -Wunused-variable warnings
Peter Howkins [Tue, 6 Nov 2012 13:56:11 +0000 (13:56 +0000)]
lidtwidget: Resolve 74 -Wunused-variable warnings

11 years agodtcalc: Resolve 43 warnings that would be introduced with -Wunused-variable or -Wall
Peter Howkins [Mon, 5 Nov 2012 16:44:29 +0000 (16:44 +0000)]
dtcalc: Resolve 43 warnings that would be introduced with -Wunused-variable or -Wall

Basically 43 local variables declared in functions and then never used.

11 years agoFix location of some SGML files
Marcin Cieslak [Wed, 24 Oct 2012 15:39:55 +0000 (17:39 +0200)]
Fix location of some SGML files

11 years agoFix dtappbuilder on Linux
Ulrich Wilkens [Tue, 16 Oct 2012 10:14:56 +0000 (12:14 +0200)]
Fix dtappbuilder on Linux

11 years agodtinfo other requirements
Ulrich Wilkens [Sun, 14 Oct 2012 16:26:30 +0000 (18:26 +0200)]
dtinfo other requirements

11 years agodtinfo subtree clients
Ulrich Wilkens [Sun, 14 Oct 2012 16:04:35 +0000 (18:04 +0200)]
dtinfo subtree clients

11 years agodtinfo subtree tools
Ulrich Wilkens [Sun, 14 Oct 2012 15:24:56 +0000 (17:24 +0200)]
dtinfo subtree tools

11 years agodtinfo subtree dtinfogen
Ulrich Wilkens [Sun, 14 Oct 2012 15:13:07 +0000 (17:13 +0200)]
dtinfo subtree dtinfogen

11 years agodtinfo subtree dtinfo
Ulrich Wilkens [Sun, 14 Oct 2012 15:03:44 +0000 (17:03 +0200)]
dtinfo subtree dtinfo

11 years agodtinfo subtree mmdb
Ulrich Wilkens [Sun, 14 Oct 2012 14:38:15 +0000 (16:38 +0200)]
dtinfo subtree mmdb

11 years agodtinfo subtree DtMmdb
Ulrich Wilkens [Sun, 14 Oct 2012 13:38:27 +0000 (15:38 +0200)]
dtinfo subtree DtMmdb

11 years agoAdobe Helvetica as -dt-interface system-
Marcin Cieslak [Sat, 6 Oct 2012 22:51:58 +0000 (00:51 +0200)]
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.

11 years agolibdthelp: resolve 46 compiler warnings
Peter Howkins [Mon, 8 Oct 2012 14:34:45 +0000 (15:34 +0100)]
libdthelp: resolve 46 compiler warnings

11 years agoSet CDE_RELEASE to 2.2.0
Marcin Cieslak [Fri, 5 Oct 2012 10:10:16 +0000 (12:10 +0200)]
Set CDE_RELEASE to 2.2.0

11 years agoUpdate HISTORY for 2.2.0c release 2.2.0c
Jon Trulson [Fri, 5 Oct 2012 00:10:33 +0000 (18:10 -0600)]
Update HISTORY for 2.2.0c release

11 years agoupdate CONTRIBUTORS
Jon Trulson [Fri, 5 Oct 2012 00:06:47 +0000 (18:06 -0600)]
update CONTRIBUTORS

11 years agoChanged a couple of ifdefs for __FreeBSD__ to CSRG_BASED. These are all clearcut...
Jelle Hermsen [Sat, 29 Sep 2012 11:14:57 +0000 (13:14 +0200)]
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.

11 years ago-Updated README.dtlogin -Update "# Provides:" in dtlogin LSB init script
David J.McBrayer [Mon, 1 Oct 2012 16:29:20 +0000 (12:29 -0400)]
-Updated README.dtlogin -Update "# Provides:" in dtlogin LSB init script

11 years agoRemove missing xmbind and uil from UDB
Marcin Cieslak [Wed, 3 Oct 2012 00:33:48 +0000 (02:33 +0200)]
Remove missing xmbind and uil from UDB

Remove xmbind and uil utilities we
do not build and install from the
packing lists.

11 years agodtfile: Fix crash when trying to open filter dialog
Marcin Cieslak [Tue, 2 Oct 2012 16:03:41 +0000 (18:03 +0200)]
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);

11 years agolinux.cf: use -fno-strict-aliasing, define DefaultGcc2i386Opt, use indenting to impro...
Jon Trulson [Tue, 2 Oct 2012 01:27:36 +0000 (19:27 -0600)]
linux.cf: use -fno-strict-aliasing, define DefaultGcc2i386Opt, use indenting to improve readability

11 years agoUse -O2 -fno-strict-aliasing optimization for FreeBSD
Marcin Cieslak [Tue, 2 Oct 2012 00:10:35 +0000 (02:10 +0200)]
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/

11 years agoDon't break help with gcc -O2
Marcin Cieslak [Tue, 2 Oct 2012 00:10:34 +0000 (02:10 +0200)]
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

11 years agodtcreate: Don't crash when clicking "Find Set..."
Marcin Cieslak [Sat, 29 Sep 2012 22:16:33 +0000 (00:16 +0200)]
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.

11 years agoXmPrivate.h: never try to build this automatically.
Jon Trulson [Sun, 30 Sep 2012 02:46:27 +0000 (20:46 -0600)]
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

11 years agodtcreate: Add missing prototypes and more (64-bit)
Marcin Cieslak [Sat, 29 Sep 2012 22:16:31 +0000 (00:16 +0200)]
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>

11 years agoXmPrivate.h: Avoid whitespace problems (IMPROVED)
Marcin Cieslak [Sat, 29 Sep 2012 20:23:33 +0000 (22:23 +0200)]
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.

11 years agodtcreate: Avoid trying to reuse closed help window
Frederic Koehler [Fri, 28 Sep 2012 18:22:27 +0000 (14:22 -0400)]
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.

11 years agodthelp: Avoid undefined behaviour in strcpy
Frederic Koehler [Fri, 28 Sep 2012 18:21:12 +0000 (14:21 -0400)]
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.

11 years agodtfile: fix crash in RecheckFlag (64bit)
Marcin Cieslak [Fri, 28 Sep 2012 14:38:08 +0000 (16:38 +0200)]
dtfile: fix crash in RecheckFlag (64bit)

11 years agoTeach ToolTalk config about NetBSD and adds HAS_STATVFS identifier which is consequen...
Jelle Hermsen [Thu, 27 Sep 2012 01:03:27 +0000 (03:03 +0200)]
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.

11 years agoUse the system strcasestr() on Linux.
James Woodcock [Thu, 6 Sep 2012 19:47:11 +0000 (20:47 +0100)]
Use the system strcasestr() on Linux.

11 years agoOlder Linux installations do not have svcfd_create().
James Woodcock [Thu, 6 Sep 2012 19:24:13 +0000 (20:24 +0100)]
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.

11 years agoUse RPC_ANYSOCK instead of the magic number -1.
James Woodcock [Thu, 6 Sep 2012 19:22:36 +0000 (20:22 +0100)]
Use RPC_ANYSOCK instead of the magic number -1.

11 years agoRemove unnecessary extern modifier from struct declaration.
James Woodcock [Fri, 10 Aug 2012 10:42:16 +0000 (11:42 +0100)]
Remove unnecessary extern modifier from struct declaration.

11 years agoUse typedef XDR from <rpc/xdr.h>
Marcin Cieslak [Thu, 27 Sep 2012 08:32:50 +0000 (10:32 +0200)]
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.

11 years agodticon: fix typo in the last commit
Marcin Cieslak [Thu, 27 Sep 2012 08:27:43 +0000 (10:27 +0200)]
dticon: fix typo in the last commit

11 years agoUpdate vendor logo for FreeBSD
Marcin Cieslak [Wed, 26 Sep 2012 10:29:40 +0000 (12:29 +0200)]
Update vendor logo for FreeBSD

- Improved font rendering and anti-aliasing
  by hand
- Let dticon recognize .bm file as X bitmap

11 years agodticon: make XVaGetValues() call 64-bit compliant
Marcin Cieslak [Wed, 26 Sep 2012 10:14:53 +0000 (12:14 +0200)]
dticon: make XVaGetValues() call 64-bit compliant

11 years agodtstyle: XVaGetValues() calls
Marcin Cieslak [Wed, 26 Sep 2012 10:14:52 +0000 (12:14 +0200)]
dtstyle: XVaGetValues() calls

11 years agoAdd csu objects to shared libraries on OpenBSD.
Pascal Stumpf [Mon, 24 Sep 2012 19:50:19 +0000 (21:50 +0200)]
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.

11 years agoDtlogin logo for FreeBSD
Marcin Cieslak [Tue, 25 Sep 2012 13:12:13 +0000 (15:12 +0200)]
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

11 years agoDon't make /var group writable
Marcin Cieslak [Tue, 25 Sep 2012 14:50:23 +0000 (16:50 +0200)]
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

11 years agoInstall /usr/local/libdata/ldconfig/cde for FreeBSD
Marcin Cieslak [Tue, 25 Sep 2012 13:41:18 +0000 (15:41 +0200)]
Install /usr/local/libdata/ldconfig/cde for FreeBSD

I mean really this time. Please.

11 years agoCorrected font aliases for "-b&h-lucidasans" on FreeBSD.
Anthony Perkins [Tue, 25 Sep 2012 13:32:40 +0000 (13:32 +0000)]
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.

11 years agoFreeBSD: Add /usr/dt/lib to runtime linker - update
Marcin Cieslak [Tue, 25 Sep 2012 00:59:06 +0000 (00:59 +0000)]
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:

11 years agoRevert "FreeBSD: Add /usr/dt/lib to runtime linker"
Jon Trulson [Tue, 25 Sep 2012 01:20:56 +0000 (19:20 -0600)]
Revert "FreeBSD: Add /usr/dt/lib to runtime linker"

This reverts commit 91f228411ea3017dd445aa3834c29fe970cfd94f.

Updated patch.

11 years ago2 warnings fixed (64-bit)
Marcin Cieslak [Mon, 24 Sep 2012 23:52:12 +0000 (01:52 +0200)]
2 warnings fixed (64-bit)

Fix XtVaGetValues() output for 64-bit
Fix filename comparison in Dts.c

11 years agoFreeBSD: Add /usr/dt/lib to runtime linker
Marcin Cieslak [Mon, 24 Sep 2012 23:48:27 +0000 (01:48 +0200)]
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.

11 years agodtpdm: XtVaGetValues, XtPointer, XtArgVal, ...
Marcin Cieslak [Mon, 24 Sep 2012 16:11:36 +0000 (18:11 +0200)]
dtpdm: XtVaGetValues, XtPointer, XtArgVal, ...

Make XtVaGetValues return variables safe for 64-bit

11 years ago157 warnings: remove -DXK_MISCELLANY from Makefiles
Marcin Cieslak [Mon, 24 Sep 2012 15:52:58 +0000 (17:52 +0200)]
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.

11 years agodtmail: fix warning: comparison is always false
Marcin Cieslak [Mon, 24 Sep 2012 11:36:17 +0000 (13:36 +0200)]
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

11 years agodtmail: fix warning: NULL used in arithmetic
Marcin Cieslak [Mon, 24 Sep 2012 11:36:16 +0000 (13:36 +0200)]
dtmail: fix warning: NULL used in arithmetic

NULL != NULL makes no sense, really...

11 years agodtmail: warning: 'DtMailBoolean' is promoted to (int)
Marcin Cieslak [Mon, 24 Sep 2012 11:36:15 +0000 (13:36 +0200)]
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

11 years agodtmail: Fix XtVaGetValues() return value storage
Marcin Cieslak [Mon, 24 Sep 2012 11:36:14 +0000 (13:36 +0200)]
dtmail: Fix XtVaGetValues() return value storage

At least one crash was caused by this
on the 64-bit system