oweals/cde.git
12 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.

12 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.

12 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.

12 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.

12 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.

12 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

12 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

12 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

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

12 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.

12 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

12 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

12 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.

12 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.

12 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:

12 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.

12 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

12 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.

12 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

12 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.

12 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

12 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...

12 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

12 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

12 years agoGet rid of unpleasant cast, it causes SIGSEGV
Marcin Cieslak [Mon, 24 Sep 2012 11:36:13 +0000 (13:36 +0200)]
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.

12 years agodtpad: kill one warning
Marcin Cieslak [Mon, 24 Sep 2012 01:15:21 +0000 (03:15 +0200)]
dtpad: kill one warning

12 years agodtpad: Use XtArgVal for int conversion
Marcin Cieslak [Mon, 24 Sep 2012 01:15:20 +0000 (03:15 +0200)]
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.

12 years agodtpad: Fix 64-bit crash on file open/save
Marcin Cieslak [Mon, 24 Sep 2012 01:15:19 +0000 (03:15 +0200)]
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.

12 years agoBSD: Remove libXX.so symlink before installing
Marcin Cieslak [Mon, 24 Sep 2012 01:15:18 +0000 (03:15 +0200)]
BSD: Remove libXX.so symlink before installing

Now we can run "make" in "lib/tt" again
and the symlink will be recreated.

12 years agodtprintinfo: sym2num needs ksh
Marcin Cieslak [Mon, 24 Sep 2012 01:15:04 +0000 (03:15 +0200)]
dtprintinfo: sym2num needs ksh

12 years agodtprintinfo: Use 64-bit values for XtVaGetValues() pointers
Marcin Cieslak [Mon, 24 Sep 2012 01:15:03 +0000 (03:15 +0200)]
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 *).

12 years agodtprintinfo: Use CUPS lpq for FreeBSD
Marcin Cieslak [Mon, 24 Sep 2012 01:15:02 +0000 (03:15 +0200)]
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.

12 years agoFix logic in dtprintinfo
Marcin Cieslak [Mon, 24 Sep 2012 01:15:01 +0000 (03:15 +0200)]
Fix logic in dtprintinfo

Fix values for true/false and boolean type

12 years agodtfile: fix pointer to integer conversion
Marcin Cieslak [Mon, 24 Sep 2012 01:14:34 +0000 (03:14 +0200)]
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.

12 years agocontrib/xinetd: xinetd file for cmsd and ttsdbserver
Jon Trulson [Mon, 24 Sep 2012 01:32:17 +0000 (19:32 -0600)]
contrib/xinetd: xinetd file for cmsd and ttsdbserver

mailling list post from: Ecmel Ercan <ecmel.ercan@gmail.com>

12 years agodttypes should not crash on 64-bit system
Marcin Cieslak [Fri, 21 Sep 2012 20:44:28 +0000 (22:44 +0200)]
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.

12 years agoFix dtfile crash on 64 bit
Marcin Cieslak [Sat, 22 Sep 2012 10:05:57 +0000 (12:05 +0200)]
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

12 years agoXm/Imakefile: never try to regen XmPrivate.h on linux systems. It will always fail.
Jon Trulson [Tue, 18 Sep 2012 16:14:33 +0000 (10:14 -0600)]
Xm/Imakefile: never try to regen XmPrivate.h on linux systems.  It will always fail.

12 years agoMerge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code
Jon Trulson [Tue, 18 Sep 2012 16:07:11 +0000 (10:07 -0600)]
Merge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code

12 years agodtfile: Add missing prototypes
Marcin Cieslak [Tue, 18 Sep 2012 02:02:28 +0000 (04:02 +0200)]
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.

12 years agodtudcexch/dtudcfonted: Resolve 78 compiler warnings.
Peter Howkins [Tue, 18 Sep 2012 11:00:05 +0000 (12:00 +0100)]
dtudcexch/dtudcfonted: Resolve 78 compiler warnings.

12 years agoMerge branch 'master' of ssh://localhost:3333/p/cdesktopenv/code
Peter Howkins [Tue, 18 Sep 2012 10:59:42 +0000 (11:59 +0100)]
Merge branch 'master' of ssh://localhost:3333/p/cdesktopenv/code

12 years agoCDE-MAN.udb: add /usr/dt/man symlink for linux, like freebsd
Jon Trulson [Tue, 18 Sep 2012 00:26:14 +0000 (18:26 -0600)]
CDE-MAN.udb: add /usr/dt/man symlink for linux, like freebsd

12 years agoMerge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code
Jon Trulson [Tue, 18 Sep 2012 00:23:31 +0000 (18:23 -0600)]
Merge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code

12 years agoImprove MANPATH control
Marcin Cieslak [Mon, 17 Sep 2012 10:45:40 +0000 (12:45 +0200)]
Improve MANPATH control

* Revert changes to programs/dtsearchpath/libCliSrv/UnixEnv.C
  introduced by c3cb5b8aa6997138dfa06da39142bf793baeae60
  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.

12 years agodtterm: Resolve 4 compiler warnings
Peter Howkins [Mon, 17 Sep 2012 15:28:55 +0000 (16:28 +0100)]
dtterm: Resolve 4 compiler warnings

12 years agodtstyle: Resolve 28 compiler warnings.
Peter Howkins [Mon, 17 Sep 2012 13:56:06 +0000 (14:56 +0100)]
dtstyle: Resolve 28 compiler warnings.

12 years agoBSD: Add /usr/local/bin to the default PATH on login
Marcin Cieslak [Mon, 10 Sep 2012 02:38:04 +0000 (04:38 +0200)]
BSD: Add /usr/local/bin to the default PATH on login

12 years agoFreeBSD: Don't set MANPATH, use OS configuration
Marcin Cieslak [Mon, 10 Sep 2012 02:21:16 +0000 (04:21 +0200)]
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

12 years agoDon't use fstat for readable pipe chars in dtexec.
Mike Stroyan [Sun, 9 Sep 2012 21:44:45 +0000 (15:44 -0600)]
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.

12 years agoFreeBSD: Fix dtlogin failsafe session
Marcin Cieslak [Fri, 7 Sep 2012 21:04:44 +0000 (23:04 +0200)]
FreeBSD: Fix dtlogin failsafe session

We need to have /usr/local as the proper
X11 prefix to start mwm and xterm

12 years agoadd HISTORY file 2.2.0b
Jon Trulson [Thu, 6 Sep 2012 19:33:58 +0000 (13:33 -0600)]
add HISTORY file

12 years agodtlogin: enable building on FreeBSD
Jon Trulson [Thu, 6 Sep 2012 18:36:14 +0000 (12:36 -0600)]
dtlogin: enable building on FreeBSD

12 years agoUpdate README file
Jon Trulson [Thu, 6 Sep 2012 18:12:15 +0000 (12:12 -0600)]
Update README file

12 years agoAllow building on FreeBSD
Marcin Cieslak [Thu, 6 Sep 2012 11:45:11 +0000 (13:45 +0200)]
Allow building on FreeBSD

- build shared libraries with major number only (libtt.so.2)
- don't build dtlogin and dtinfo

FreeBSD support for the installer:
- work around awk issue
- create post_install FreeBSD scripts
- install only cmsd on /etc/inetd.conf
  skip dtspc and ttdbserver for now

Note to users: please check
if you are affected by awk bug
in udbParseLib.awk if you can.

12 years agoUpdate CONTRIBUTORS file.
Jon Trulson [Thu, 6 Sep 2012 01:38:24 +0000 (19:38 -0600)]
Update CONTRIBUTORS file.

12 years agoFix for __va_copy on FreeBSD i386.
Ulrich Wilkens [Wed, 5 Sep 2012 14:49:35 +0000 (16:49 +0200)]
Fix for __va_copy on FreeBSD i386.

12 years agoFixes for dtlogin and dtcm on FreeBSD.
Ulrich Wilkens [Wed, 5 Sep 2012 14:26:28 +0000 (16:26 +0200)]
Fixes for dtlogin and dtcm on FreeBSD.

12 years agolinux.cf: add libtirpc support. Disabled by default.
Jon Trulson [Tue, 4 Sep 2012 01:50:10 +0000 (19:50 -0600)]
linux.cf: add libtirpc support.  Disabled by default.

Currently on Linux, you must run rpcbind in insecure mode (-i) in
order for ttsession to register with rpcbind (the portmapper).  This
is because, on most systems, libc contains an older sun-based rpc
library embedded within it.  The sun-rpc code does not know how to
authenticate with rpcbind when run as a non-privileged user.

Using libtirpc, ttsession can register with rpcbind without requiring
it to be run in insecure mode.  You must have the libtirpc-dev, or
equivalent package installed to use it.

If you want to try this:

- install libtirpc-dev or equivalent
- if your rpcbind process is already running in insecure mode (-i
  option), remove that option and restart it.
- edit config/host.def, (create if it doesn't exist) and add:

  #define HasTIRPCLib  YES

- rebuild CDE (make World).  It's probably a good idea to remove
  /usr/dt/* beforehand to avoid contamination.

Some linux systems seem to incorporate tirpc directly into libc (as
all of the BSD's do AFAIK) so this may not be needed.

I know that at least on Ubuntu systems defining HasTIRPCLib to YES is
required in order to run rpcbind without -i.

12 years agomessage catalogs: fix comment lines, also remove linux hack in merge.c
Jon Trulson [Mon, 3 Sep 2012 21:12:57 +0000 (15:12 -0600)]
message catalogs: fix comment lines, also remove linux hack in merge.c

According to the spec, blank lines in message catalogs or lines
beginning with '$ ' are valid comments.

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

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

... unknown directive `': line ignored

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

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

Build logs are a lot smaller and cleaner now.

12 years agolibDtSvc: Resolve 89 compiler warnings.
Peter Howkins [Sat, 1 Sep 2012 20:35:10 +0000 (21:35 +0100)]
libDtSvc: Resolve 89 compiler warnings.

12 years agolibDtSearch: Resolve 26 compiler warnings.
Peter Howkins [Sat, 1 Sep 2012 19:54:23 +0000 (20:54 +0100)]
libDtSearch: Resolve 26 compiler warnings.

12 years agodtpdmd: Resolving warnings.
Peter Howkins [Sat, 1 Sep 2012 19:37:02 +0000 (20:37 +0100)]
dtpdmd: Resolving warnings.

12 years agoMerge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code
Peter Howkins [Sat, 1 Sep 2012 17:30:13 +0000 (18:30 +0100)]
Merge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code

12 years agoinstallCDE: remove \c from installing... Log lines
Jon Trulson [Sat, 1 Sep 2012 01:57:29 +0000 (19:57 -0600)]
installCDE: remove \c from installing... Log lines

12 years agolinux.cf: add some gcc system include paths to makedepend. Shaves about 5150 more...
Jon Trulson [Fri, 31 Aug 2012 22:31:26 +0000 (16:31 -0600)]
linux.cf: add some gcc system include paths to makedepend.  Shaves about 5150 more warnings off (makedepend) :)

This is on ubuntu.  You may wany to add additional -I... entries for
other linux systems, if the ones I added for i386 and x86_64 don't
help.

12 years agodtpdm: Resolve 4 compiler warnings
Peter Howkins [Fri, 31 Aug 2012 20:41:32 +0000 (21:41 +0100)]
dtpdm: Resolve 4 compiler warnings

12 years agobuild: linux.cf, remove the space in the -isystem include of the X11 headers
Peter Howkins [Fri, 31 Aug 2012 18:07:47 +0000 (19:07 +0100)]
build: linux.cf, remove the space in the -isystem include of the X11 headers

this was causing build failures on the make depend step.

12 years agobuild: on linux include the X11 and Xm headers with -isystem rather than -I,
Peter Howkins [Fri, 31 Aug 2012 17:35:20 +0000 (18:35 +0100)]
build: on linux include the X11 and Xm headers with -isystem rather than -I,
this means the compiler treats them as system headers and does not give you
excessive warnings from them. This is used because X11 does not like the
-ansi and -pedantic warnings that CDE is compiled with.

12 years agoinclude: remove includes:: XmPrivate.h from includes Imakefile
Jon Trulson [Fri, 31 Aug 2012 02:23:33 +0000 (20:23 -0600)]
include: remove includes:: XmPrivate.h from includes Imakefile

Having this dependancy in here is a problem.  Depending on how the src
is packaged, or, unpacked, an attempt could be made to regenerate this
file, which cannot succeed unless imports/motif is setup to point to a
compiled motif tree.

This file can be manually regenerated by removing XmPrivate.h, and then
doing a 'make XmPrivate.h' in the include/Xm dir.

12 years agodthelp: fix build failure introduced by commit 71f8af6943b9f0ea6d290c1497bf1b3a78be18c0
Jon Trulson [Fri, 31 Aug 2012 02:22:04 +0000 (20:22 -0600)]
dthelp: fix build failure introduced by commit 71f8af6943b9f0ea6d290c1497bf1b3a78be18c0

Tsk Tsk Peter :)

12 years agodtcm: fix typo introduced by commit ca9da25d44b258d8ca933808d24668cddd727449
Jon Trulson [Fri, 31 Aug 2012 02:19:23 +0000 (20:19 -0600)]
dtcm: fix typo introduced by commit ca9da25d44b258d8ca933808d24668cddd727449

12 years agoDtWidget: Improve portability of Motif interface
Marcin Cieslak [Thu, 30 Aug 2012 23:17:48 +0000 (01:17 +0200)]
DtWidget: Improve portability of Motif interface

- Add missing includes and prototypes
- Improve type compatibility
- Use <Xm/XmPrivate.h> for unofficial libXm headers

With this patch, dtpad no longer crashes on startup
on FreeBSD/amd64 because of a truncated 64-bit pointer.

12 years agoFix warnings in dtwm
Marcin Cieslak [Thu, 30 Aug 2012 23:17:47 +0000 (01:17 +0200)]
Fix warnings in dtwm

- Improve pointer/int compatibility
- Include unpublished Dt headers in Dt
- Use <Xm/XmPrivate.h> for unpublished Motif functions

There are still warnings left generated because
ElementValue.parsed_value should really be a union.

There are also some warnings left because of XtPointer
casting and some unused variables and functions.

12 years agoIntroduce <Xm/XmPrivate.h>
Marcin Cieslak [Thu, 30 Aug 2012 23:17:46 +0000 (01:17 +0200)]
Introduce <Xm/XmPrivate.h>

We need ANSI C prototypes of certain Motif
functions that are not published in the official
header files.

<Xm/XmPrivate.h> header file contains
the prototypes extracted from the Motif source.

To re-create <Xm/XmPrivate.h>:

1) Make sure you have sources of libXm
(lib/Xm directory of the Motif distribution)
accessible via imports/motif/lib/Xm

2) rm include/Xm/XmPrivate.h

3) make includes

12 years agodtpad: Resolve 6 compiler warnings.
Peter Howkins [Thu, 30 Aug 2012 21:40:55 +0000 (22:40 +0100)]
dtpad: Resolve 6 compiler warnings.

12 years agodtlogin: Resolve 7 compiler warnings.
Peter Howkins [Thu, 30 Aug 2012 21:30:36 +0000 (22:30 +0100)]
dtlogin: Resolve 7 compiler warnings.

12 years agodtlogin: Resolve all -Wformat-security warnings
Peter Howkins [Thu, 30 Aug 2012 21:19:49 +0000 (22:19 +0100)]
dtlogin: Resolve all -Wformat-security warnings

12 years agodtimsstart: Resolve 3 compiler warnings.
Peter Howkins [Thu, 30 Aug 2012 21:15:13 +0000 (22:15 +0100)]
dtimsstart: Resolve 3 compiler warnings.

12 years agoMerge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code
Peter Howkins [Thu, 30 Aug 2012 20:38:11 +0000 (21:38 +0100)]
Merge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code

12 years agodthelp: Resolve 106 compiler warnings.
Peter Howkins [Thu, 30 Aug 2012 20:37:25 +0000 (21:37 +0100)]
dthelp: Resolve 106 compiler warnings.

12 years agoDefine AMD64Architecture for FreeBSD
Marcin Cieslak [Thu, 30 Aug 2012 20:27:15 +0000 (22:27 +0200)]
Define AMD64Architecture for FreeBSD

12 years agoRudimentary LSBBitOrder for FreeBSD
Marcin Cieslak [Thu, 30 Aug 2012 19:57:07 +0000 (21:57 +0200)]
Rudimentary LSBBitOrder for FreeBSD

12 years agoMerge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code
Jon Trulson [Thu, 30 Aug 2012 19:53:37 +0000 (13:53 -0600)]
Merge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code

12 years agodthello: Resolve 5 compiler warnings.
Peter Howkins [Thu, 30 Aug 2012 18:57:56 +0000 (19:57 +0100)]
dthello: Resolve 5 compiler warnings.

12 years agodtfile: Remove 97 compiler warnings
Peter Howkins [Thu, 30 Aug 2012 18:54:01 +0000 (19:54 +0100)]
dtfile: Remove 97 compiler warnings

12 years agodthelp/text.c: use snprintf
Jon Trulson [Thu, 30 Aug 2012 18:44:50 +0000 (12:44 -0600)]
dthelp/text.c: use snprintf

12 years agodtfile: Resolve implicit imcompatible declaration warnings.
Peter Howkins [Thu, 30 Aug 2012 17:25:49 +0000 (18:25 +0100)]
dtfile: Resolve implicit imcompatible declaration warnings.

12 years agodtexec: On Linux use the variation of signal handlers that takes an int arg
Peter Howkins [Thu, 30 Aug 2012 17:18:20 +0000 (18:18 +0100)]
dtexec: On Linux use the variation of signal handlers that takes an int arg

Warning Prevention.

12 years agodtdspmsg: Warning prevention
Peter Howkins [Thu, 30 Aug 2012 17:14:15 +0000 (18:14 +0100)]
dtdspmsg: Warning prevention

12 years agodtcreate: warning prevention.
Peter Howkins [Thu, 30 Aug 2012 17:07:16 +0000 (18:07 +0100)]
dtcreate: warning prevention.

12 years agodsdm: Include ansi C headers to prevent implicit incompatible declaration warnings.
Peter Howkins [Thu, 30 Aug 2012 16:59:34 +0000 (17:59 +0100)]
dsdm: Include ansi C headers to prevent implicit incompatible declaration warnings.

12 years agodtaction: main() returns an int and -Wformat-security fixes
Peter Howkins [Thu, 30 Aug 2012 16:55:43 +0000 (17:55 +0100)]
dtaction: main() returns an int and -Wformat-security fixes

12 years agodticon: Fix some warnings related to mixing NULL, 0 and '\0' randomly.
Peter Howkins [Thu, 30 Aug 2012 16:48:26 +0000 (17:48 +0100)]
dticon: Fix some warnings related to mixing NULL, 0 and '\0' randomly.

12 years agodtcalc: Fix some warnings related to mixing NULL, 0 and '\0' randomly.
Peter Howkins [Thu, 30 Aug 2012 15:45:52 +0000 (16:45 +0100)]
dtcalc: Fix some warnings related to mixing NULL, 0 and '\0' randomly.

12 years agoTwo fixes for dtmail
Ulrich Wilkens [Thu, 30 Aug 2012 01:09:48 +0000 (03:09 +0200)]
Two fixes for dtmail

12 years agoCorrection of paths for BSDs
Ulrich Wilkens [Thu, 30 Aug 2012 00:12:16 +0000 (02:12 +0200)]
Correction of paths for BSDs

12 years agodtcm: Resolve all -Wformat-security warnings.
Peter Howkins [Wed, 29 Aug 2012 19:16:01 +0000 (20:16 +0100)]
dtcm: Resolve all -Wformat-security warnings.

12 years agodtsr: include stdlib.h to resolve 20 incompaible implicit declaration warnings.
Peter Howkins [Wed, 29 Aug 2012 17:25:32 +0000 (18:25 +0100)]
dtsr: include stdlib.h to resolve 20 incompaible implicit declaration warnings.

12 years agodtsr: Resolve all -Wformat-security warnings.
Peter Howkins [Wed, 29 Aug 2012 17:21:05 +0000 (18:21 +0100)]
dtsr: Resolve all -Wformat-security warnings.