) Steve Hay <[EMAIL PROTECTED]> writes:
) >I tried returning the fileno() of the C file stream from the XS foo()
) >and then effectively doing an fdopen() on that back in the Perl:
) >
) >    my $fd = Foo::foo("test.txt", "r");
) >    open(my $fh, "<&=$fd");
) >
) >(in which the "<" is deduced from the "r").
) >
) >This works OK, 

Excerpts from the mail message of Nick Ing-Simmons:
) 
) Until you want to port to Win32 or some other place where fileno() is 
) an alien concept which does not work very well.

I don't see any reason why that wouldn't work under Win32.
I've used code quite similar to that there.  Win32 just
adds a layer under "file descriptor" but the layers above
are fairly compatible.
-- 
Tye McQueen    Nothing is obvious unless you are overlooking something

Reply via email to