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

12 years agoutil/dttypes: Resolve -Wformat-security warnings
Peter Howkins [Wed, 29 Aug 2012 17:02:22 +0000 (18:02 +0100)]
util/dttypes: Resolve -Wformat-security warnings

12 years agodtterm: Resolve -Wformat-security warnings
Peter Howkins [Wed, 29 Aug 2012 15:13:22 +0000 (16:13 +0100)]
dtterm: Resolve -Wformat-security warnings

12 years agolibDtTerm: Resolve all -Wformat-security warnings.
Peter Howkins [Mon, 27 Aug 2012 19:36:59 +0000 (20:36 +0100)]
libDtTerm: Resolve all -Wformat-security warnings.

12 years agoMerge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code
Peter Howkins [Mon, 27 Aug 2012 19:25:14 +0000 (20:25 +0100)]
Merge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code

12 years agolibDtSearch: resolve -Wformat-secuirty warning
Peter Howkins [Mon, 27 Aug 2012 19:24:06 +0000 (20:24 +0100)]
libDtSearch: resolve -Wformat-secuirty warning

12 years agoAdd pax files generated by dtksh to .gitignore
Marcin Cieslak [Fri, 24 Aug 2012 08:24:53 +0000 (10:24 +0200)]
Add pax files generated by dtksh to .gitignore

It seems that after changing -O2 to -O for FreeBSD
pax started to build successfully. Interesting.

12 years agolibtt: Resolve all remaining format-security warnings.
Peter Howkins [Sun, 26 Aug 2012 21:19:27 +0000 (22:19 +0100)]
libtt: Resolve all remaining format-security warnings.

12 years agolibtt: Warning prevention
Peter Howkins [Sun, 26 Aug 2012 18:48:55 +0000 (19:48 +0100)]
libtt: Warning prevention

One missing stdlib include and one security warning about not
using varargs func correctly.

12 years agoAdd missing includes [for modern systems] to lndir.c
David Cantrell [Thu, 23 Aug 2012 20:58:20 +0000 (16:58 -0400)]
Add missing includes [for modern systems] to lndir.c

12 years agoFix udbParseLib.awk so it doesn't generate warnings with gawk.
David Cantrell [Thu, 23 Aug 2012 19:52:06 +0000 (15:52 -0400)]
Fix udbParseLib.awk so it doesn't generate warnings with gawk.

Tested this change with both gawk and nawk and it worked fine.  If
the extra escape character is present and gawk is used, you'll get
warnings from gawk telling you it's ignoring the escape sequence
and just treating it as the character to begin with.

12 years agoFreeBSD: Use -O instead of -O2
Marcin Cieslak [Thu, 23 Aug 2012 21:09:43 +0000 (23:09 +0200)]
FreeBSD: Use -O instead of -O2

12 years agoUse KORNSHELL variable instead of /bin/ksh
Marcin Cieslak [Thu, 23 Aug 2012 15:49:26 +0000 (17:49 +0200)]
Use KORNSHELL variable instead of /bin/ksh

This patch removes instances of hardcoded
invocation of /bin/ksh and allows to
replace it with, for, example,
/usr/local/bin/ksh93

Also "ksh93" is accepted whenever "ksh" is.

Tested using the following /bin/ksh:

----8<----
WHAT=`ps -o command= -p $PPID`
msg="Something tried to call /bin/ksh: $PPID: $WHAT"
print -u2 "$msg"
logger user.warn "$msg"
exit 99
----8<----
(Warning: first two lines are FreeBSD specific)

Scripts from Makefiles should now be executed either
with

$(KORNSHELL) korn-shell-script

or

$(SHELL) bourne-shell-script

therefore #!/bin/ksh has not been changed everywhere.

/usr/dt/bin/ scripts have been converted (e.g. Xsession)

Whenever possible Imake and CPP facilities have been used.

For C and C++ programs KORNSHELL needs to be defined to
"/path/to/your/ksh" (with quotes) so that it can make
a valid C constant.

Therefore, when adding KORNSHELL to Imakefile for C files,
you have to add

CXXEXTRA_DEFINES = -DKORNSHELL=\"$(KORNSHELL)\"

or similar (for example, see programs/dtprintinfo)

But for simple shell script substitution we usually change

 LOCAL_CPP_DEFINES = -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
                     -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
                     -DCDE_LOGFILES_TOP=$(CDE_LOGFILES_TOP)

to:

 LOCAL_CPP_DEFINES = -DCDE_CONFIGURATION_TOP=$(CDE_CONFIGURATION_TOP) \
                     -DCDE_INSTALLATION_TOP=$(CDE_INSTALLATION_TOP) \
                     -DCDE_LOGFILES_TOP=$(CDE_LOGFILES_TOP) \
                     -DKORNSHELL=$(KORNSHELL) \
                     -DXPROJECTROOT=X11ProjectRoot

since we don't want quotes for shell scripts.

12 years ago64bit: Fix crash in dtexec
Marcin Cieslak [Thu, 23 Aug 2012 14:40:38 +0000 (16:40 +0200)]
64bit: Fix crash in dtexec

No ANSI prototype for malloc() caused
the returned pointer to be truncated
to 32 bits.

12 years agoFreeBSD: scan /usr/local/lib/X11/fonts/ for fontpath
Marcin Cieslak [Thu, 23 Aug 2012 14:40:37 +0000 (16:40 +0200)]
FreeBSD: scan /usr/local/lib/X11/fonts/ for fontpath

12 years agoUse FreeBSD-specific invocation of /bin/ps
Marcin Cieslak [Thu, 23 Aug 2012 14:40:36 +0000 (16:40 +0200)]
Use FreeBSD-specific invocation of /bin/ps

12 years agoexamples/tt now runs on FreeBSD
Marcin Cieslak [Wed, 22 Aug 2012 20:49:19 +0000 (22:49 +0200)]
examples/tt now runs on FreeBSD

12 years agolibtt: resolve implicit delaration of free() and exit() warnings
Peter Howkins [Wed, 22 Aug 2012 11:39:25 +0000 (12:39 +0100)]
libtt: resolve implicit delaration of free() and exit() warnings

12 years agolib/DtHelp: Include <stdio.h> to prevent warnings about implicit declartion of free()
Peter Howkins [Wed, 22 Aug 2012 11:10:10 +0000 (12:10 +0100)]
lib/DtHelp: Include <stdio.h> to prevent warnings about implicit declartion of free()

12 years agolibcsa: Warning prevention
Peter Howkins [Wed, 22 Aug 2012 10:53:08 +0000 (11:53 +0100)]
libcsa: Warning prevention

Remove 'implicit declaration' warnings by included correct ANSI C headers.
Correct some format strings for long ints.

12 years agodtcalc: Resolve "format not a string literal and no format arguments [-Wformat-securi...
Peter Howkins [Wed, 22 Aug 2012 10:28:36 +0000 (11:28 +0100)]
dtcalc: Resolve "format not a string literal and no format arguments [-Wformat-security]" warnings.

Fix warnings related to secruity concerns on varargs functions. By specifying
"%s" on single string calls to sprintf() (and related) it's not possible to
have a % in the input string causing random data to be read off the stack.

12 years agodtcalc: Resolve "missing sentinel in function call [-Wformat]" warnings
Peter Howkins [Wed, 22 Aug 2012 09:44:33 +0000 (10:44 +0100)]
dtcalc: Resolve "missing sentinel in function call [-Wformat]" warnings

Caused by XtVaGetValues() and XtVaSetValues() variable arguments lists
needing to be terminated by NULL not 0.

12 years agoSimple compiler warning fixes in programs/dthelp.
David Cantrell [Wed, 22 Aug 2012 01:53:33 +0000 (21:53 -0400)]
Simple compiler warning fixes in programs/dthelp.

12 years agoUse mkstemp() and handle /usr/lib64 in imake.c
David Cantrell [Wed, 22 Aug 2012 01:51:56 +0000 (21:51 -0400)]
Use mkstemp() and handle /usr/lib64 in imake.c

tmpnam() usage replaced with mkstemp().  Find a suitable tmp directory
checking the TMPDIR environment variable first, then the P_tmpdir
macro and finally /tmp directly.

On 64-bit Linux platforms, check to see if libc.so exists in /usr/lib64.
If found, use it over /usr/lib/libc.so.

12 years agoFix basic compiler warnings in ccimake.c
David Cantrell [Wed, 22 Aug 2012 01:51:06 +0000 (21:51 -0400)]
Fix basic compiler warnings in ccimake.c

main() always returns an int.

12 years agoAccount for multilib Linux installations in imake.
David Cantrell [Tue, 21 Aug 2012 13:34:23 +0000 (09:34 -0400)]
Account for multilib Linux installations in imake.

The libc.so file is not always in /usr/lib.  On multilib systems, the
file we care about could be in /usr/lib64.  Likewise, common Linux
conventions call for 64-bit libraries to go in lib64 directories, so
check there first when on a Linux 64-bit system.

12 years agoInclude stdlib.h in cde/config/imake/ccimake.c
David Cantrell [Fri, 17 Aug 2012 19:41:00 +0000 (15:41 -0400)]
Include stdlib.h in cde/config/imake/ccimake.c

stdlib.h defines exit(3) on Linux systems.

12 years agoFix localized build on OpenBSD.
Pascal Stumpf [Sun, 19 Aug 2012 17:35:38 +0000 (19:35 +0200)]
Fix localized build on OpenBSD.

Use the same set of langs as on Linux and FreeBSD (no Japanese), don't
redefine a needed macro as no-op, and unset LC_CTYPE in the environment
when building cat files.

12 years agoAdd mkcatdefs and book.* to .gitignore
Marcin Cieslak [Sun, 19 Aug 2012 20:40:01 +0000 (22:40 +0200)]
Add mkcatdefs and book.* to .gitignore

12 years agoBuild dtksh on OpenBSD.
Pascal Stumpf [Sun, 19 Aug 2012 16:33:42 +0000 (18:33 +0200)]
Build dtksh on OpenBSD.

This needs ksh93 to bootstrap, available in the openbsd-wip for now as a port,
due to be committed some time soon ...

12 years agoOpenBSD still uses GNU iconv, so the second argument to iconv(3) is not const.
Pascal Stumpf [Sun, 19 Aug 2012 16:19:40 +0000 (18:19 +0200)]
OpenBSD still uses GNU iconv, so the second argument to iconv(3) is not const.

12 years agoFix dttypes for BSD systems
Ulrich Wilkens [Sun, 19 Aug 2012 14:04:03 +0000 (16:04 +0200)]
Fix dttypes for BSD systems

12 years agoFind correct system includes and libs on FreeBSD.
Ulrich Wilkens [Sun, 19 Aug 2012 00:32:18 +0000 (02:32 +0200)]
Find correct system includes and libs on FreeBSD.

12 years agoAdd mkcatdefs program and make the imake changes so it can be used.
Jon Trulson [Sat, 18 Aug 2012 02:11:11 +0000 (20:11 -0600)]
Add mkcatdefs program and make the imake changes so it can be used.

12 years agoBuild missing Xm.cat Mrm.cat Uil.cat for LANG=C
Marcin Cieslak [Thu, 16 Aug 2012 22:04:40 +0000 (00:04 +0200)]
Build missing Xm.cat Mrm.cat Uil.cat for LANG=C

We need to use mkcatdefs to build those.

mkcatdefs needs to be built from the open motif
source tree (localized/util/mkcatdefs.c)
and installed as:

cde/imports/motif/localized/util/mkcatdefs

12 years agodtcreate: Replace broken GetBaseName with basename
Frederic Koehler [Fri, 17 Aug 2012 04:06:25 +0000 (00:06 -0400)]
dtcreate: Replace broken GetBaseName with basename

GetBaseName causes segfaults, because when the pathname
ends in a "/" it returns NULL. This happens when trying
to give a valid filename to dtcreate for an icon.

12 years agodtcreate: Fix some memory management issues
Frederic Koehler [Fri, 17 Aug 2012 02:34:26 +0000 (22:34 -0400)]
dtcreate: Fix some memory management issues

ProcessExecString thought it was returning an array of size 3; however
in C arrays are second-class and there is no direct way to return an
array like this; GCC warning triggered because it was actually
just returning a pointer to local storage. Fixed using malloc.

Also fix some obviously wrong usages of sizeof, although they were
relatively harmless. A little other warning quieting using 0 instead of
NULL.

12 years agodtcreate: Fix another buffer overflow issue
Frederic Koehler [Fri, 17 Aug 2012 02:17:39 +0000 (22:17 -0400)]
dtcreate: Fix another buffer overflow issue

12 years agoMerge branch 'EnvControl-fixes'
Jon Trulson [Fri, 17 Aug 2012 12:01:19 +0000 (06:01 -0600)]
Merge branch 'EnvControl-fixes'

12 years agoMerge branch 'master' of https://git.code.sf.net/p/cdesktopenv/code
Peter Howkins [Fri, 17 Aug 2012 09:26:09 +0000 (10:26 +0100)]
Merge branch 'master' of https://git.code.sf.net/p/cdesktopenv/code

12 years agodtcreate: Fix major buffer overflow
Frederic Koehler [Fri, 17 Aug 2012 01:04:56 +0000 (21:04 -0400)]
dtcreate: Fix major buffer overflow

This code always buffer overflowed, because exactly 2 bytes
less than were used were allocated. This led to dtcreate
crashing when hitting "Find Set..."

12 years agoDtSvc:EnvControl: Use more modern and less dangerous methods of manipulating the...
Jon Trulson [Fri, 17 Aug 2012 00:26:50 +0000 (18:26 -0600)]
DtSvc:EnvControl: Use more modern and less dangerous methods of manipulating the env.

This should work for both linux and the BSD's... It should hopefully
solve the corrupted environment errors Marcin sees on fbsd 9 amd64.

12 years agonew dtlogin rc script for linux from David McBrayer <d9j0m.dev@gmail.com>
Jon Trulson [Thu, 16 Aug 2012 23:05:38 +0000 (17:05 -0600)]
new dtlogin rc script for linux from David McBrayer <d9j0m.dev@gmail.com>

12 years agodtdocbook: on some systems SIGLOST = SIGPWR and they should not be in the same case...
William Schaub [Thu, 16 Aug 2012 17:55:41 +0000 (13:55 -0400)]
dtdocbook: on some systems SIGLOST = SIGPWR and they should not be in the same case statement.

12 years agoAdd support for building 32bit SPARC binaries under Linux.
William Schaub [Thu, 16 Aug 2012 02:35:49 +0000 (22:35 -0400)]
Add support for building 32bit SPARC binaries under Linux.

12 years agoProvide basic font aliases for FreeBSD
Marcin Cieslak [Thu, 16 Aug 2012 00:59:58 +0000 (02:59 +0200)]
Provide basic font aliases for FreeBSD

The following font families
(or their aliases) will be used:

-adobe-courier-bold-o-normal--*-
-adobe-courier-bold-r-normal--*-
-adobe-courier-medium-o-normal--*-
-adobe-courier-medium-r-normal--*-
-adobe-helvetica-bold-o-normal--*-
-adobe-helvetica-bold-r-normal--*-
-adobe-helvetica-medium-o-normal--*-
-adobe-helvetica-medium-r-normal--*-
-adobe-symbol-medium-r-normal--*-
-adobe-times-bold-i-normal--*-
-adobe-times-bold-r-normal--*-
-adobe-times-medium-i-normal--*-
-adobe-times-medium-r-normal--*-
-b&h-lucidasans-medium-r-normal-sans-*-
-b&h-lucidatypewriter-bold-r-normal-sans-*-
-b&h-lucidatypewriter-medium-r-normal-sans-*-

The files will be installed in

/usr/dt/config/xfonts/C

This directory should be added to the
X server font path:

   xset fp+ /usr/dt/config/xfonts/C

and/or via

   FontPath         "/usr/dt/config/xfonts/C"

in the "Files" section of the xorg.conf file.

12 years agoFix compiler warnings in dtsession
Marcin Cieslak [Thu, 16 Aug 2012 00:10:55 +0000 (02:10 +0200)]
Fix compiler warnings in dtsession

12 years agoMerge branch 'master' of https://git.code.sf.net/p/cdesktopenv/code
Peter Howkins [Thu, 16 Aug 2012 14:41:15 +0000 (15:41 +0100)]
Merge branch 'master' of https://git.code.sf.net/p/cdesktopenv/code

12 years agoModern BSDs don't need union wait
Marcin Cieslak [Wed, 15 Aug 2012 17:46:02 +0000 (19:46 +0200)]
Modern BSDs don't need union wait

We have

pid_t
wait3(int *status, int options, struct rusage *rusage);

on FreeBSD and we don't need (union wait) handling.

Another good candidate for one #ifdef from imake templates.
We have already OPT_BSD_WAIT in ToolTalk's tt_options.h

12 years agoFreeBSD does not need extern char *sys_errlist[]
Marcin Cieslak [Wed, 15 Aug 2012 17:46:01 +0000 (19:46 +0200)]
FreeBSD does not need extern char *sys_errlist[]

Add preprocessor directives not to try
to redefine sys_errlist[] or sys_nerr

There are already definitions:

 extern __const char *__const sys_errlist[];
 extern __const int sys_nerr;

in <stdio.h>

Actually we should have something like
NeedSysErrlist in imake definitions
to get rid of those #ifdefs.

12 years agoProcess sgml and man files in doc directory for FreeBSD.
Ulrich Wilkens [Wed, 15 Aug 2012 20:43:43 +0000 (22:43 +0200)]
Process sgml and man files in doc directory for FreeBSD.

12 years agoFreeBSD updates for dtspcd, dtfile and others
Marcin Cieslak [Wed, 15 Aug 2012 17:46:03 +0000 (19:46 +0200)]
FreeBSD updates for dtspcd, dtfile and others

* Add libraries where necesary
* Point to Freetype2 includes for dtfile
* Define default manpath

12 years agoMerge branch 'master' of https://git.code.sf.net/p/cdesktopenv/code
Peter Howkins [Wed, 15 Aug 2012 16:07:35 +0000 (17:07 +0100)]
Merge branch 'master' of https://git.code.sf.net/p/cdesktopenv/code

12 years agomp_session: Always use global displayname
Frederic Koehler [Wed, 15 Aug 2012 01:49:14 +0000 (21:49 -0400)]
mp_session: Always use global displayname

This code tried to automatically generate the X DISPLAY
from the combination of the hostname and display number;
however 127.0.0.1:0 is normally rejected by X11, so this
technique is no good. Fixes dticon hang on startup, caused by
XOpenDisplay failure leading to this message from tttrace:
tt_default_session_set(0x0x875190=="X 127.0.0.1 0") = 1032 (TT_ERR_ACCESS)

12 years agoconst char maze: unbreak ToolTalk build
Marcin Cieslak [Wed, 15 Aug 2012 02:07:01 +0000 (04:07 +0200)]
const char maze: unbreak ToolTalk build

Follow up to de82eebdd56c02ae200bf2d9ec60df053919e7e7

12 years agoUse $(KORNSHELL) for dtksh as well
Marcin Cieslak [Wed, 15 Aug 2012 01:45:39 +0000 (03:45 +0200)]
Use $(KORNSHELL) for dtksh as well

This commit updates master at de82eebdd56c02ae200bf2d9ec60df053919e7e7
to include bits from

   Message-Id: <1344951117-33716-3-git-send-email-saper@saper.info>
   http://thread.gmane.org/gmane.comp.desktop.cde.devel/283/focus=301

not included in the

   Message-Id: <1344951117-33716-1-git-send-email-saper@saper.info>
   http://thread.gmane.org/gmane.comp.desktop.cde.devel/283/focus=299

that was commited as d3206f451496035dbd5db5ed62a95e67e499c712

Also remove two generated files from the repository:
programs/dtksh/ksh93/man/man1/sh.1
programs/dtksh/ksh93/man/man3/nval.3

Conflicts:

cde/programs/dtksh/ksh93/Imakefile

12 years agoDeal with *.tmp.msg after mkcatdefs failure
Marcin Cieslak [Wed, 15 Aug 2012 01:30:48 +0000 (03:30 +0200)]
Deal with *.tmp.msg after mkcatdefs failure

BSD make interrupts shell pipeline after
if it cannot run the command:

rm -f Mrm.msg
ln -s ../../../../imports/motif/localized/de_DE.ISO8859-1/msg/Mrm.msg Mrm.msg
Running mkcatdefs for Mrm.cat with LANG set to de_DE.ISO8859-1
(  rm -f Mrm.cat Mrm.tmp.msg;  LANG=de_DE.ISO8859-1;  export LANG;  ../../../../imports/motif/localized/util/mkcatdefs Mrm Mrm.msg -h > Mrm.tmp.msg;  gencat  Mrm.cat Mrm.tmp.msg;  rm -f Mrm.tmp.msg  )
../../../../imports/motif/localized/util/mkcatdefs: not found
*** Error code 127

After this, an empty Mrm.tmp.msg is left.

12 years agoHave to pass a const char * to function expecting char * here, otherwise it fails...
Chris Wareham [Tue, 14 Aug 2012 11:59:44 +0000 (12:59 +0100)]
Have to pass a const char * to function expecting char * here, otherwise it fails to link thanks to the declaration of a stub wth non-const param.

12 years agoFix most of the following classes of warnings in the ToolTalk libraries:
Chris Wareham [Tue, 14 Aug 2012 10:49:53 +0000 (11:49 +0100)]
Fix most of the following classes of warnings in the ToolTalk libraries:

- Const strings referenced by non-const variables.
- Incorrect format specifers for printing addresses
- Unused variables
- Signed comparison to unsigned

Also fix an incorrect enumeration value in a switch statement.

12 years agoUse $(SHELL) and $(KORNSHELL) for shell scripts
Marcin Cieslak [Tue, 14 Aug 2012 13:31:56 +0000 (15:31 +0200)]
Use $(SHELL) and $(KORNSHELL) for shell scripts

Introduce KORNSHELL make variable to point
to the implementation of the Korn Shell.

Use $(SHELL) or $(KORNSHELL) explicitly for
make programs that do not automatically call
shell scripts from the current directory.

12 years agoCompile dtksh on FreeBSD
Marcin Cieslak [Tue, 14 Aug 2012 13:31:55 +0000 (15:31 +0200)]
Compile dtksh on FreeBSD

dtksh can be now compiled on FreeBSD. Work in progress.

Needs a real Korn shell to bootstrap as $(KSHELL).
KSHELL is set by default to /usr/local/bin/ksh93
(generic POSIX shell may not work)

Tested on:

  FreeBSD 9.0-BETA1 #0 r224912M amd64

Known issues:

xvmstat:
* sleep does not work well (SIGSTOP is delivered)
xpong:
* xpong: line 220:  ball1x = max_x * 2.2 / 3 : arithmetic syntax error
* dtksh is rebuilt uncondtionally every time make is invoked

12 years agoconfigRun.src: remove -s from inetd cmd, only run inetd if it exists.
ibid_ag@lavabit.com [Tue, 14 Aug 2012 03:14:09 +0000 (21:14 -0600)]
configRun.src: remove -s from inetd cmd, only run inetd if it exists.

12 years agoFreeBSD port: dtsearch, dtterm, dtwidget, dthelp
Marcin Cieslak [Mon, 13 Aug 2012 15:57:16 +0000 (17:57 +0200)]
FreeBSD port: dtsearch, dtterm, dtwidget, dthelp

FreeBSD portability of dtsearch, dtterm, dtwidget, dthelp

Work in progress for dtlogin and dtmail

12 years agodtbuilder: manually fix up istr.h (from Pascal) since the broken patch had already...
Jon Trulson [Tue, 14 Aug 2012 01:48:57 +0000 (19:48 -0600)]
dtbuilder: manually fix up istr.h (from Pascal) since the broken patch had already been reverted.

12 years agoWIP to make dtbuilder work on 64bit.
Pascal Stumpf [Mon, 13 Aug 2012 15:35:34 +0000 (17:35 +0200)]
WIP to make dtbuilder work on 64bit.

Fixes many, though not all 64bit-warnings.  In lots of places, pointers are
cast to ints to be then used as array subscripts.  The only way to deal with
this is to change them to long.  Additionally, use calloc() to allocate the
int_array in istr.c and drop the (wrong) macro patch to istr.h.  Should make
dtbuilder work on 32bit again.

12 years agolib/csa: Use ANSI C prototypes
Marcin Cieslak [Mon, 13 Aug 2012 10:10:37 +0000 (12:10 +0200)]
lib/csa: Use ANSI C prototypes

Improve type compatibility and enable
ANSI C prototypes.

12 years agoCast registerrpc args to xdrproc_t explicitly
Marcin Cieslak [Mon, 13 Aug 2012 10:08:04 +0000 (12:08 +0200)]
Cast registerrpc args to xdrproc_t explicitly

Fixes:
agent.c: In function '_DtCm_init_agent':
agent.c:160: warning: passing argument 5 of 'registerrpc' from incompatible pointer type
agent.c:160: warning: passing argument 6 of 'registerrpc' from incompatible pointer type
agent.c:167: warning: passing argument 5 of 'registerrpc' from incompatible pointer type
agent.c:167: warning: passing argument 6 of 'registerrpc' from incompatible pointer type