According to Frank Heckenbach:
Kevin A. Foss wrote:
Unfortunately, I know of no easy way to test for what operating system EMX is currently using.
Neither do I, that's the problem...
You can get this information at run-time - and *only* at run-time since one and the same executable can run both on DOS (with and without DPMI) and on OS/2. If the variable `__osmode' contains a nonzero value, it is OS/2; if it is DOS and the variable `__emx_env' and $0180 is nonzero, it is DPMI (RSX).
Greetings,
Peter
Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [970201] maintainer GNU Pascal [970714] - http://home.pages.de/~gnu-pascal/ [970125]