Re: kqueue, NOTE_EOF

2003-11-12 Thread marius aamodt eriksen
* Jason Thorpe <[EMAIL PROTECTED]> [031112 14:00]: > On Nov 12, 2003, at 10:57 AM, marius aamodt eriksen wrote: > > >right - the idea was to preserve existing semantics, while leaving the > >poll-like semantics optional. > > I'm not sure the "existing

Re: kqueue, NOTE_EOF

2003-11-12 Thread marius aamodt eriksen
* Jason Thorpe <[EMAIL PROTECTED]> [031112 13:54]: > On Nov 12, 2003, at 10:40 AM, marius aamodt eriksen wrote: > > >correct - this is the difference, kqueue will not yield any event at > >EOF. > > So, kqueue should simply be changed to report the event. I don&#x

Re: kqueue, NOTE_EOF

2003-11-12 Thread marius aamodt eriksen
* Bill Studenmund <[EMAIL PROTECTED]> [031112 12:27]: > > I'm not sure I understand what is the exact issue. > > I'm only responding to the notes also. > > > Why would this be necessary or what does this exactly solve? AFAIK > > poll() doesn't set any flags in this case neither, so I don't > > s

kqueue, NOTE_EOF

2003-11-10 Thread marius aamodt eriksen
hi - in order to be able to preserve consistent semantics across poll, select, and kqueue (EVFILT_READ), i propose the following change: on EVFILT_READ, add an fflag NOTE_EOF which will return when the file pointer *is* at the end of the file (effectively always returning on EVFILT_READ, but sett