TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: you
from: Jerry Coffin
date: 2003-08-04 20:21:28
subject: Re: MSVC / .NIX Porting

From: jcoffin{at}taeus.com
To: c_echo{at}yahoogroups.com

At 12:52 AM 8/3/2003 +0100, you wrote:

>  * Author: Robert Todd
>
>Hi folks!  Was wondering if MSVC would support the porting of *NIX based
>C++ code over to Win32?

Yes and no.  MSVC out of the box supports _some_ POSIX-like functions (e.g
the whole open/creat/lread/lwrite family) but nowhere close to all of them
(e.g. fork is missing).

Windows NT/2K/XP also has a POSIX subsystem, and MS supports using their
compiler to develop for it.  Using this, you get a complete (certified)
implementation of POSIX.1, but that's only a relatively small part of POSIX
(e.g. it's missing all the real-time stuff, multithreading, networking, etc.)

MS also has Interix, which I believe is more or less on the order of a more
complete POSIX subsystem for the same OSes -- but I've never really used
this, so I can't say a lot more about it.

The Cygwin port of gcc has its own POSIX layer for Win32.  This has both
good and bad points -- it does run under the Win32 subsystem (mostly a good
thing) and supports some things missing from the MS POSIX subsystem, if I'm
not mistaken.  OTOH, some things in it are distressingly slow, and all
programs compiled with it require a set of support DLLs (and fairly large
ones at that).

There are also, of course, quite a few more compilers for Win32.  Most of
the others support many of the same *NIX functions as MSVC, but in most
cases the emulation of UNIX is relatively loose at best (e.g. it would be
trivial to make file names case sensitive like they are on UNIX, but I've
yet to see a standard library routine that did so).  Lest this should be
misread, I'll point out that MSVC doesn't treat this case sensitively
either -- I don't mean to impugn the other compilers as inferior to MS in
this area, only to say that though most include functions with the right
names to compile *NIX programs, they may or may not be useful to you.
         Later,
         Jerry.




At 12:52 AM 8/3/2003 +0100, you wrote:
 * Author: Robert
Todd
Hi folks!  Was wondering if MSVC would support the porting of *NIX
based 
C++ code over to Win32?
Yes and no.  MSVC out of the box supports _some_ POSIX-like
functions (e.g the whole open/creat/lread/lwrite family) but nowhere
close to all of them (e.g. fork is missing).
Windows NT/2K/XP also has a POSIX subsystem, and MS supports using their
compiler to develop for it.  Using this, you get a complete
(certified) implementation of POSIX.1, but that's only a relatively small
part of POSIX (e.g. it's missing all the real-time stuff, multithreading,
networking, etc.)
MS also has Interix, which I believe is more or less on the order of a
more complete POSIX subsystem for the same OSes -- but I've never really
used this, so I can't say a lot more about it.
The Cygwin port of gcc has its own POSIX layer for Win32.  This has
both good and bad points -- it does run under the Win32 subsystem (mostly
a good thing) and supports some things missing from the MS POSIX
subsystem, if I'm not mistaken.  OTOH, some things in it are
distressingly slow, and all programs compiled with it require a set of
support DLLs (and fairly large ones at that).
There are also, of course, quite a few more compilers for Win32. 
Most of the others support many of the same *NIX functions as MSVC, but
in most cases the emulation of UNIX is relatively loose at best (e.g. it
would be trivial to make file names case sensitive like they are on UNIX,
but I've yet to see a standard library routine that did so).  Lest
this should be misread, I'll point out that MSVC doesn't treat this case
sensitively either -- I don't mean to impugn the other compilers as
inferior to MS in this area, only to say that though most include
functions with the right names to compile *NIX programs, they may or may
not be useful to you.
        Later,
        Jerry.







Yahoo! Groups
Sponsor


ADVERTISEMENThttp://rd.yahoo.com/M=251812.3170658.4537139.1261774/D=egroupweb/S=1705006764:HM/A=1693352/R=0/SIG=
11tralmvc/*http://www.netflix.com/Default?mqso=60178293&partid=3170658"
alt="">http://us.a1.yimg.com/us.yimg.com/a/ne/netflix/yhoo0803_a_300250A.gif"
alt="click here" width="300" height="250"
border="0">


;">http://us.adserver.yahoo.com/l?M=251812.3170658.4537139.1261774/D=egroupmail/S=:HM/A=1693352/rand=412140781">;







Your use of Yahoo! Groups is subject to the Yahoo!">http://docs.yahoo.com/info/terms/">Yahoo! Terms of
Service.




--- SoupGate-Win32 v1.05
 * Origin: jcoffin{at}taeus.com (2:292/516.666)
SEEN-BY: 633/267 270
@PATH: 292/516 854 140/1 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.