Pascal Stumpf
71f3ed16f8
Patches for dtscreen, dtsearchpath, dtsession on OBSD.
...
Do not redefine round(3), and provide a manpath for OpenBSD.
(this is one of the few things that need to be adjusted for other BSDs)
2012-08-11 20:06:44 -06:00
Pascal Stumpf
43bae997c8
OpenBSD patches for ttsnoop.
...
Mostly adding std:: for strstream interfaces.
2012-08-11 20:06:44 -06:00
Pascal Stumpf
76984653b4
OpenBSD patches for dtpdmd and dtprintinfo.
...
Casts, #ifdefs, SIGCLD ...
2012-08-11 20:06:44 -06:00
Pascal Stumpf
d418376944
OpenBSD #ifdefs for imake templates for localisations.
2012-08-11 20:06:44 -06:00
Pascal Stumpf
205e26b3ef
Make nsgmls compile on OpenBSD.
...
As far as I can tell, the duplicate instantiations from entmgr_inst.m4 are
unnecessary and only cause compile failures without -fpermissive.
2012-08-11 20:06:43 -06:00
Pascal Stumpf
e3ad7e24e3
Current state of my dtmail work.
...
Mostly #ifdefs and casts; also, do not redefine strcasestr(). This will
probably be needed for Linux too when compiling without -fpermissive.
2012-08-11 19:53:02 -06:00
Pascal Stumpf
7c3a972d32
Make dtlogin compile on OpenBSD.
...
Most importantly, we *cannot* do the utmp stuff this code is attempting.
It is SysV-specific.
2012-08-11 19:51:35 -06:00
Pascal Stumpf
a8d5c1f0ba
Make dtinfo work on OpenBSD.
...
strstream.h is now called "strstream" and is obsolete, but use it anyway until
all code is converted over. This also needs std:: added, at least for GCC
4.2.1. Lastly, when hardcoding the path to perl, /usr/bin/perl should be used
rather than anything else.
2012-08-11 19:48:18 -06:00
Pascal Stumpf
3e4517dc2a
OpenBSD patches for dtcalc, dtdocbook, dthelp and dtimsstart.
2012-08-11 19:43:41 -06:00
William Schaub
b17e52a269
dtcreate: Fix double free inside ProcessExecString()
2012-08-11 19:33:22 -06:00
William Schaub
562da5af1b
dtcreate: fix exit with TT_ERR_PTYPE and fix several sprintf related segfaults.
2012-08-11 19:32:48 -06:00
Jon Trulson
fdcbdbe0d0
re-enable building of dtmail, except on OpenBSD
2012-08-11 19:26:04 -06:00
Pascal Stumpf
131c7a9e04
Imakefile diffs for OpenBSD.
2012-08-11 19:23:43 -06:00
Chris Wareham
045c80dd78
imake: Convert function prototypes and signatures to ANSI format.
2012-08-10 15:05:06 -06:00
Pascal Stumpf
eaec696ad6
Fixes for dtfile on OpenBSD, plus missing prototypes. Use statfs() on BSD to find out if a file system is NFS.
2012-08-10 14:13:45 -06:00
Pascal Stumpf
57463ec10e
OpenBSD fixes for dtcm. There are no global "timezone" and "tzname" symbols on BSD. Apart from that, mainly #ifdefs.
2012-08-10 14:11:54 -06:00
Pascal Stumpf
3718075b7c
OpenBSD fixes for DtWidget, dtaction, dtappbuilder.
2012-08-10 14:10:52 -06:00
Pascal Stumpf
8bbf5a7a1b
Allow dtterm to at least allocate a pty on OpenBSD. Display is still mangled, however, and it frequently crashes (64bit issue).
2012-08-10 14:08:48 -06:00
Pascal Stumpf
19647809e4
OpenBSD fixes for lib/DtTerm: values.h, #ifdef's and some constants that are not defined on BSD. Also, leave out utmp stuff that does not work on BSD. Note that this terminal allocation does not work properly yet, but this will be fixed later.
2012-08-10 14:07:36 -06:00
Jon Trulson
f5a8836bff
historical: mv some old files that we want to preserve out of the top level
...
Some of these older files just clutter up things and do not contribute
much information that is not historical in nature, so preserve them
in an out of the way location.
2012-08-10 07:17:27 -06:00
Pascal Stumpf
3b77d7c065
Tooltalk fixes for OpenBSD. This consists mainly of #ifdefs, casts and some small type nits.
2012-08-10 06:24:29 -06:00
Pascal Stumpf
3d5a492038
OpenBSD fixes for DtPrint and csa.
2012-08-10 06:18:28 -06:00
Jon Trulson
8b67d1ccba
New top level README from Christopher Turkel <turkelchris@aol.com>
2012-08-10 06:09:53 -06:00
Frederic Koehler
44dfebe9d2
dtwm: Cleanup some implicit definitions
...
Mostly this is adding appropriate #includes and declarations,
but for WmImage.c we also change from using the proper name
for XmeGetMask, rather than the identical but renamed
version _DtGetMask which is not exported in any header.
2012-08-10 05:54:52 -06:00
Pascal Stumpf
185ec24999
OpenBSD fixed for lib/DtSvc.
2012-08-10 05:51:37 -06:00
Pascal Stumpf
78053ff2a4
SIGPWR is not present everywhere.
2012-08-10 05:44:49 -06:00
Jon Trulson
b9ae3ae76e
OpenBSD.cf, from Pascal Stumpf
2012-08-10 05:37:12 -06:00
Pascal Stumpf
6fc45220c4
Provide support for installation under OpenBSD. Don't override PATH in the install script, it may hide needed tools, and the location of these binaries is highly OS-dependent anyway.
...
Also, allow overriding some variables in the install script.
2012-08-09 14:26:45 -06:00
Pascal Stumpf
f9c844aada
recognise OpenBSD version
2012-08-09 14:15:42 -06:00
Pascal Stumpf
18dd384068
Rename getline() to not conflict with the standard POSIX interface of the same name.
2012-08-09 14:15:25 -06:00
James Woodcock
d1848610a7
Remove ambiguity in string compare.
2012-08-09 13:55:54 -06:00
James Woodcock
f646b8b1a1
Remove unnecessary extern modifier on struct declarations.
2012-08-09 13:55:54 -06:00
James Woodcock
3f11777812
"ISO C++ forbids declaration of [X] with no type" warning fixes.
2012-08-09 13:55:54 -06:00
Jon Trulson
f8e046ee33
Merge branch 'master' of ssh://git.code.sf.net/p/cdesktopenv/code
2012-08-09 12:56:25 -06:00
Jon Trulson
1f332de27b
Use socklen_t where available.
...
Patch from <Pascal.Stumpf@cubes.de>
This should use socklen_t where available, really ...
2012-08-09 12:27:58 -06:00
Jon Trulson
686bcfadc7
Use SIGCHLD rather than SIGCLD.
...
Patch from Pascal Stumpf <Pascal.Stumpf@cubes.de>
The official POSIX name for this signal is SIGCHLD. Linux probably
has SIGCLD only for SysV compatibility, but BSD does not.
2012-08-09 12:24:56 -06:00
Jon Trulson
0d2f7866ac
At least on OpenBSD/amd64, this macro returns a bogus value if its argument is NULL.
...
Patch from Pascal Stumpf <Pascal.Stumpf@cubes.de>
So check for this first like the other macros in this file do, and
don't cast an istring to int.
2012-08-09 12:21:43 -06:00
Jon Trulson
491ff2228f
Deal with the fact that modern compilers assume different scoping rules
...
Patch from Pascal Stumpf <Pascal.Stumpf@cubes.de>:
So here are all the patches that deal with the fact that modern
compilers assume different scoping rules for variables declared in for
loops. On Linux, -fpermissive has been added as a compiler flag to
compensate for this old C code, but I think it is the wrong approach.
Sorry, couldn't help sneaking in a || defined(CSRG_BASED) and some casts
needed for other reasons ...
2012-08-09 12:18:30 -06:00
Jon Trulson
1bb40f1f0b
This adds the basic config bits needed for OpenBSD.
...
Patch from Pascal Stumpf <Pascal.Stumpf@cubes.de>
Most is just copied from the existing imake installation in
/usr/X11R6. Additionally:
* Allow overriding CDESharedRev, X11ProjectRoot and ProjectRoot
* Add a new define to be able to override MINCLUDESRC too
(this allows me to build CDE without symlinking any include directories)
2012-08-09 12:11:13 -06:00
Marc Balmer
1d935059fb
Fix more sprintf calls.
2012-08-09 11:57:34 -06:00
Marc Balmer
24c0f2010c
Build with debug symbols enabled.
2012-08-09 11:54:51 -06:00
Marc Balmer
bb21797684
Use a more robust idiom When converting sprintf() to snprintf()
...
don't use the idiom
char foo[BUFSIZ];
snprintf(foo, BUFSIZ, ....);
but
char foo[BUFSIZ];
snprintf(foo, sizeo foo, ....);
because this will automatically catch situations where the size of foo
is later changed, e.g. like foo[BUFSIZ + 8];
Fix another use of sprintf.
2012-08-09 11:52:17 -06:00
Adam Robinson
117258766b
Fix for dtmail execution group error
2012-08-09 11:47:11 -06:00
Robert Tomsick
5787b85d52
dtscreen: include stdlib to avoid exit redeclaration
...
Signed-off-by: Robert Tomsick <robert@tomsick.net>
2012-08-09 11:33:25 -06:00
Robert Tomsick
ab926254fd
dtscreen: include stdlib where appropriate
...
Signed-off-by: Robert Tomsick <robert@tomsick.net>
2012-08-09 11:33:25 -06:00
Robert Tomsick
c12927e208
dthelpview: Util.c include stdlib to avoid redeclaring exit()
...
Signed-off-by: Robert Tomsick <robert@tomsick.net>
2012-08-09 11:33:25 -06:00
Robert Tomsick
974053aab1
dthelpview: Main.c - Cleanup variable init
...
Signed-off-by: Robert Tomsick <robert@tomsick.net>
2012-08-09 11:33:25 -06:00
Peter Howkins
d2e1f3158b
dtcalc: warning prevention, add <stdlib.h> include for prototype of free()
2012-08-09 12:08:46 +01:00
Peter Howkins
697c1522fb
dtcalc: warning prevention, do not use NULL when you mean 0.
2012-08-09 12:07:53 +01:00
Jon Trulson
70e1c5a55a
dtaction: Fix unsafe use of sprintf
...
Patch from Robert Tomsick <robert+cde@tomsick.net>:
I believe this fixes vulnerability #3 from CERT CA-1999-11.[1] The other
uses of sprintf in DtAction seem to be safe.
[1] https://www.cert.org/advisories/CA-1999-11.html
2012-08-08 20:17:17 -06:00