X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: 19 May 2004 08:35:35 +0200 Message-Id: From: Eli Zaretskii To: djgpp AT delorie DOT com In-reply-to: <4d201f78.0405181653.16a677b6@posting.google.com> (048321887-0001 AT t-online DOT de) Subject: Re: Using DR-DOS fork in DJGPP References: <4d201f78 DOT 0405181653 DOT 16a677b6 AT posting DOT google DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: 048321887-0001 AT t-online DOT de (Udo Kuhnt) > Newsgroups: comp.os.msdos.djgpp > Date: 18 May 2004 17:53:02 -0700 > > I am running DJGPP in DR-DOS and wondered if it might be possible to use the > DR-DOS multitasking API in DJGPP programs. This discussion should probably be moved to djgpp-workers AT delorie DOT com. That's where DJGPP development is normally discussed. > However, I do not know how this function would have to be called from a > DJGPP program, as I am not familiar with calling DOS functions in protected > mode. Sections 18.1 to 18.5 of the DJGPP FAQ list explain that, and you have real-life examples in the library sources (djlsr203.zip). > Also, since this functionality is normally part of the C lib on other > platforms, I do not know whether calling this system call directly would > interfere with functions in the library or cause any other problems. Well, I'm not sure whether this could be used by DJGPP, given the DPMI limitations (I will read the stuff whose URL you posted and try to figure that out), but the first question would be: how can we find out whether a program runs on this specific flavor of DOS? That's because `fork', if rewritten to support this API, will have to use it only when the program runs on DR-DOS that provides these services. So: what version(s) of DR-DOS support this API, and how can a DJGPP program know whether it runs on such a version of DR-DOS?