N
Nick Keighley
On Fri, 30 Jul 2010 21:20:03 -0400, Eric Sosman
I think of a dominant implementation as a virtual interface.
dup, dup2
These POSIX functions are deprecated beginning in Visual C++ 2005.
On Fri, 30 Jul 2010 21:20:03 -0400, Eric Sosman
I think of a dominant implementation as a virtual interface.
comp.std.c appears to be alive
Code is more fun than standards.
So, they concocoted this "What's in the standard and only what's in the
standard" nonsense and made a pact to stand by it. Part of that pact
was that they had to pretend not to understand or know anything about
the Unix-y stuff (or any other so-called "system specific" stuff). That
was the price paid to ward off the evils of "lpParm".
dup, dup2
These POSIX functions are deprecated beginning in Visual C++ 2005.
OTOH, you have to draw the line somewhere. Otherwise, people would
consider any and every library which is callable from C to be on-topic.
If it's written in C why not.
I'm not sure to what extent Mr. Sosman seeks to edify and
to what extent he seeks to amuse, but I don't think I'm alone
in saying that programming for a non-Unix system has no
conceivable purpose in the ivory tower. Non-Unix programmers have
some other purpose: avarice for filthy lucre, writing viruses,
etc.
In a newsgroup on restaurants we wouldn't be condemned if we
assumed OP is not some villain serving rat poison to customers.
Why then, in a C programming forum, do we ask why OP isn't some
sado-masochist programming a system without open() and close()?
Besides, the FAQ *already* describes the O.P.'s counter-exemplary
technique, prefacing it with "It may be possible, in a nonportable
way, ..." *and* giving source code. So the O.P. is not only parochial
but also an inattentive reader, and (IMHO) deserving of a ration of
mild mockery.
If it's written in C why not.
On Sat, 31 Jul 2010 08:51:26 -0700 (PDT), Nick Keighle
I meant linux as a dominant implementation.
Just a note for the files - it's actually comp.unix.programmer that he
needs. AFAIK, comp.unix.programming is a myth.
If it's written in C why not.
Nobody said:Having said that, I don't take the view that using anything outside of the
standard library makes a question off-topic, ...
E.g. how you structure data and code is heavily influenced by the
language you're using, so I don't consider it unreasonable to ask
"design" questions here if you're writing in C.
The regs do.
The regs do.
For Windows XP:
a) download Windows Services for UNIX Version 3.5
http://www.microsoft.com/downloads/...88-601b-44f1-81a4-02878ff11778&displaylang=en
b) get hotfixes and apply
http://www.rockbox.org/wiki/InterixDevelopment
c) add complete toolset from sua community site
http://www.suacommunity.com/SUA.aspx
ftp://ftp.interopsystems.com/pkgs/bundles/pkg-current-bundlecomplete35.exe
Looks POSIXy to me ...
However, ignore their advice about compiling gmake 3.81. It flops.
Just use the gmake package installed by the next step.
I have to ask: Why bother with this?
Note: Any day now, one of the regs is going to notice this thread and
make the usual snarky notes about:
Off topic. Not portable. Cant discuss it here. Blah, blah, blah.
And then it will all be over.
But, that aside, I have to ask: Why bother with this? And by that I
mean:
1) If you want to run Linux on a PC, then, gee, get Linux and install
it on your PC and - bang! - you're running Linux on your PC.
2) If your goal is to compile Unix-y tools from source into Windows
executables, then get Cygwin. It works (very well, in fact) and
I'm sure it beats the pants off all these other "Linux on
Windows" products.
I mean, seriously, does anyone really expect Microsoft to get this right???
John Kelly said:ATM, I don't want to compile Unix-y source into Windows executables. I
want a subsystem that emulates POSIX on my Windows workstation so I can
compile Linux source without rebooting or running VMWare.
I still have to ask then: Why not Cygwin? Isn't that a lot easier to
setup and use than all this stuff?
Note: I could be wrong - it could be either better or easier than Cygwin
(or both) - but I have used Cygwin a lot over the years and have found
it to be pretty damn complete.
Cygwin is not a way to magically make native Windows apps aware of UNIX
® functionality, like signals, ptys, etc.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.