On Tue, Mar 21, 2000 at 02:57:57PM -0500, Mark Mielke wrote:
> On Tue, Mar 21, 2000 at 05:30:04PM +0000, "Graham Barr" wrote:
> > On Tue, Mar 21, 2000 at 04:10:45PM +0000, Nick Ing-Simmons wrote:
> > > But when Event says "handle is readable" how is perl code going to
> > > do its IO to read it? - right now <$fh> or even sysread($fh,...)
> > > call MS stdio to do that - which will fail if Handles are in async mode.
> > sysread() used the MS stdio layer ? If so then perl is broken. sysread
> > should bypass stdio.
>
> Unfortunately, by "sysread()", perl means the read() "system call", which
> on MS Win32, is actually emulated.
>
> In Win32, there is no such thing _really_ as a "file descriptor" (integer).
Don't confuse the issue of read/sysread with FILE*/integer. I know that is
what it is on UNIX but perl does not require it. The difference from
perl's perspective is buffered vs raw.
Just because MS does not have an integer file descriptor does not mean that
sysread cannot be done.
Graham.