open, close, dup, dup2, lseek, read, write, fileno, etc.
Neal Alexander
wqeqweuqy at hotmail.com
Fri Feb 8 04:52:51 PST 2008
TJanice Caron wrote:
> open, close, dup, dup2, lseek, read, write, fileno, etc....
>
> Is there any good reason why these functions are available in Phobos
> for the Linux version of D only, but not for the Windows version?
>
> These functions certainly do exists on Windows (albeit with names
> preceeded by a single underscore). In C and C++, you just have to
> #include <io.h>
>
> I looked at the source code for std.streams, just to end my confusion
> about what File does, and it turns out it's full of lots of
> conditional code, with Windows using Windowsy functions like
> CreateFileW() and CreateFileA(). I'm sure there's probably a good
> reason for this - I just don't know what it is. Can anyone explain?
>
> Thanks.
I think theres some limitations to the POSIX subsystem on win32. Dunno heh.
http://support.microsoft.com/kb/149902
http://support.microsoft.com/kb/101270
http://support.microsoft.com/kb/308259
More information about the Digitalmars-d
mailing list