Peter Gerwinski wrote:
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).
Thanks for the info!
But still I don't know how to get the system time in OS/2 or non-DPMI DOS (I was using the DPMI call only to call a DOS int, since I'm not sure if calling int 21 directly is OK) -- or some other way to init random; AFAICS, the system unit v1.00 doesn't do any random initialization at all... Besides, I couldn't test it with EMX, anyway. So I won't change it now. If someone who has EMX can change it, please do so and post the result here.
-- Frank Heckenbach, Erlangen, Germany heckenb@mi.uni-erlangen.de http://home.pages.de/~fjf/links.htm