Re: Making Event work for Win32

[email protected] ("Mark Mielke")
Newsgroups perl.loop
Message-ID <[email protected]>
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).

mark

-- 
[email protected]/[email protected]/[email protected] __________________________
.  .  _  ._  . .   .__    .  . ._. .__ .   . . .__  | SIR Tools          (7H12)
|\/| |_| |_| |/    |_     |\/|  |  |_  |   |/  |_   | Nortel Networks
|  | | | | \ | \   |__ .  |  | .|. |__ |__ | \ |__  | Ottawa, Ontario, Canada

  One ring to rule them all, one ring to find them, one ring to bring them all
                       and in the darkness bind them...

                           http://mark.mielke.cc/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.