Porting Apps From Unix To Windows NT

Porting Apps From Unix To Windows NT

Post by mitchcu.. » Fri, 28 Apr 2000 04:00:00

Does anyone know if there exists a UNISTD library for Unix that is also
available for NT?  There are functions in the Unix library that I need
to port over to NT or understand them enough to rewite them for NT.


Sent via Deja.com http://www.deja.com/
Before you buy.


1. Porting UNIX apps to Windows NT - IPC Mechanisms

I'm looking at porting some UNIX based software to Windows NT with
the following options:

1) Porting to the POSIX subsystem
2) Porting to the Win32 subsystem by rewriting code to make Win32 calls
3) Porting to the Win32 subsystem by providing a UNIX -> Win32 emulation
library (ie: mapping UNIX APIs onto Win32 APIs via a library).

My preference would be 1) followed by 3) followed a distant last by 2)
mainly because I really want to keep a single line of source, which
is as close as possible to POSIX compatibility.

Most serious commercial UNIX apps use some form of IPC mechanisms (such as
shared memory, sockets, message queues, etc).
The main problem with 1) is the lack of support for IPC mechanisms in
the POSIX subsystem - which from my looking at it makes the subsystem
next to useless (apart from enabling NT to be passed as a POSIX compliant
OS on government tenders :).

Has anyone made any attempt to call APIs intended for other subsystems
(such as WINSOCK DLLs) from the POSIX subsystem?

Does anyone know of any 3rd party work (or work by Microsoft themselves) for
additional APIs under the POSIX subsystem?

Does anyone know of any 3rd party products which would satisfy 3), or would
we be stuck with developing such a library ourselves?

Does anyone have any good references for carrying out 2) or 3) (BTW, I don't
call the 5 page memo put out by Microsoft good :)?
I would appreciate any pointers on difficult porting areas from anyone who
has carried out a port using method 2) or 3).

Replies by mail would be greatly appreciated during this silly season
(while I won't get to read much news).
John MacLean.

Snail:    John MacLean c/- Tower Technology             Fax:   +61 2 427 7072
          1 Apollo Place,                               Home:  +61 2 449 5930
          Lane Cove, NSW 2066, Australia.

2. Can Windows XP be legally sold?

3. Windows NT|2000 Linux 2.2 port (was Linux apps in win2000 port news!)

4. YPBINDPROC_DOMAIN errors, but YPPASSWS & YPSERVER not installed.

5. Porting Unix apps to NT

6. SIOCADDFLAGS: device or resource busy

7. Display setting question

8. Porting Unix app to NT

9. Need Info on porting MS-Windows app. to Unix (Linux).

10. Porting MS Windows apps to UNIX

11. ===HELP: How to port UNIX + Motif client/server app to a WWW app ?? ===