Alberto,
I must agree, you can do it this way. Furthermore, there are lots of
libraries that do just that (e.g. PWLib - Open H323 project by Equivalence -
http://www.openh323.org/ this does it all: sync objecs, threads, gui, yopu
name it).
Hope this helps,
Stas
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Moreira, Alberto
Sent: Friday, June 01, 2001 8:35 AM
To: NT Developers Interest List
Subject: [ntdev] RE: OS call Porting
Actually, maybe it isn’t that out of topic. What I would do is to
implement a dll of Unix entry points, mapping each Unix call to NT OS calls
as appropriate. This will probably be mostly negotiable at Ring 3 level,
although there may be some odd call or another that will require escaping
into Ring 0 and doing it inside a special driver. This would keep your
source code more or less untouched: instead of converting the Unix call, you
just write code to implement it on top of the existing NT/2K OS API. Given
that the NT API is way more comprehensive than its Unix counterpart, this
shouldn’t be that hard to do. And then, again, when you really run into
trouble you can always punt to your device driver.
For example, you could map Unix processes to NT threads, signals to events
or mutexes, fork() to CreateThread(), and so on.
Maybe such a library is already available out there, somewhere ? Hope this
helps,
Alberto.
-----Original Message-----
From: Stas Desy [mailto:xxxxx@actcom.co.il]
Sent: Friday, June 01, 2001 1:16 PM
To: NT Developers Interest List
Subject: [ntdev] RE: OS call Porting
Hi,
Can you be more specific ?
From what you descibe it is ipossible to convert 3 params into 5 params,
shouldn’t you agree ?
Regards,
Stas.
BTW this is of topic here !
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of GVSN Naik
Sent: Thursday, May 31, 2001 11:49 PM
To: NT Developers Interest List
Subject: [ntdev] OS call Porting
Hi all,
I am working on a application where I need to port some of basic OS
calls written in UNIX to NT, say for example
my application ( )
{
my_UNIX_call () // This call need to convert in to equivalent NT
call
}
I need to convert my_UNIX_call ( ) to appropriate NT calls, I
identified all evident UNIX to NT conversions, Pls suggest how to write that
NT call in place of UNIX and if Unix call has 3 arguments and NT has more
than 3 critical argument for the said call, How to map??
Pls suggest how to port those calls. Waiting for your prompt response
regards
GVSN Naik
Member of DCM Technologies Ltd,
125 Udyog Vihar Phase # 1 Gurgaon -122016 INDIA
Tel : 91-124-6398001 Fax : 91-124-6398009
You are currently subscribed to ntdev as: xxxxx@actcom.co.il
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: xxxxx@actcom.co.il
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com