Mail Archives: djgpp/2000/08/18/05:15:34
> From: the Icefalcon <kourino AT hotmail DOT com>
> Newsgroups: comp.os.msdos.djgpp
> Date: Fri, 18 Aug 2000 05:33:03 GMT
>
> Any general issues that I should know trying to port POSIX and other
> *nix apps to DOS with DJGPP?
In general, that works and is relatively easy (portability from Unix
and Posix compliance are two of DJGPP's main goals). There are some
gory details, but no general show-stoppers.
> (Other than the fact that all the calls in unistd return amusing,
> prefabricated values ^^; )
Some, but not all. Quite a few of Posix functions actually provide
non-trivial emulation of the Unix functionality.
> This is a matter
> of some interest to me, mostly to give me something to do, but also
> because there are some apps I'd like to use under DOS, and porting
> them would be good experience for me.
I suggest to download one of the source distributions from the v2gnu
directory on DJGPP ftp sites, and look in the djgpp subdirectory
there. That will give you some idea about what is involved in making
the port build.
> Out of curiosity to see how much
> work this would entail, I changed a few things in the make file so GNU
> make would like it and got easily 70 compile-time errors. I tried
> capturing this to a file but it failed.
I suggest to download the DJGPP FAQ list (v2/faq230b.zip from the same
place you get DJGPP) and search its indices for any problem you might
have, when you encounter that problem. Many ``popular'' problems are
already solved there; this particular one is in section 6.15.
- Raw text -