Mail Archives: djgpp/2004/05/18/21:01:49
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f
|
From: | 048321887-0001 AT t-online DOT de (Udo Kuhnt)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Using DR-DOS fork in DJGPP
|
Date: | 18 May 2004 17:53:02 -0700
|
Organization: | http://groups.google.com
|
Lines: | 20
|
Message-ID: | <4d201f78.0405181653.16a677b6@posting.google.com>
|
NNTP-Posting-Host: | 217.227.201.38
|
X-Trace: | posting.google.com 1084927982 11118 127.0.0.1 (19 May 2004 00:53:02 GMT)
|
X-Complaints-To: | groups-abuse AT google DOT com
|
NNTP-Posting-Date: | Wed, 19 May 2004 00:53:02 +0000 (UTC)
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Hi,
I am running DJGPP in DR-DOS and wondered if it might be possible to use the
DR-DOS multitasking API in DJGPP programs. Since the implementation of fork()
in the C lib itself seems to be just a dummy and will not create a new task
even if the underlying DOS supports it, I thought that one could perhaps
call the DR-DOS dom_fork system call directly, as it apparently does more or
less the things that are being expected from the POSIX fork() function.
(See http://www.drdos.com/dosdoc/multtask/index.htm for reference.)
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. 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.
I would be glad if someone could comment on this and provide some additional
info.
Udo
- Raw text -