Mail Archives: djgpp/2004/05/04/06:45:17
B Thomas <thomasb AT math DOT ohio-state DOT edu> wrote:
> Hi,
> I am trying to port an X-Windows application to MSDOS
> using Desqview/X 2.10 and a DJGPP development environment
> that comes along with it (version 1 - see http://www.chsoft.com/dv/).
That's rather heavy reconstructive archeology you're doing there, man.
DJGPP V1 is ancient history.
> GCC complains that it can not find the definition of the signal
> SIGABRT. This is indeed not there in sis/signals.h .
> Would SIGKILL be a good substitute? Could you please advice.
Hard to tell. It depends on the usage. SIGABRT has a distinctly
different meaning from SIGKILL. The major difference is that SIGABRT
can have a handler installed which will be called, and which can do
some useful work, like freeing OS resources used by the processes
which may remain locked otherwise. SIGHUP or SIGINT would be closer
matches than SIGKILL.
> Also if you are aware of a better solution to porting X-Windows
> application to DOS , please do suggest.
There once was a port of the core X libraries to DJGPP V1 without the
need for Desqview/X (which was expensive back then), but that would have
all the same problems you're already encountering.
I'm not aware of any actively maintained "good" solution. The problem
may just be too huge for that. It's like a clash of cultures. DOS is
single-tasking, single-user and doesn't intrinsically support any kind
of networking, whereas X11 is multi-user and network-oriented. In a
nutshell: the best solution might be to forget about porting and
either run it on some other system (Cygwin on Win32 comes with X11),
or rewrite the entire GUI part from scratch, to be used on DOS.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -