ewx: (Default)
[personal profile] ewx
If anyone has convenient access to platforms missing from the table at http://www.greenend.org.uk/rjk/2001/06/poll.html, or can fill in the existing gaps, it would be nice to hear from you.

(no subject)

Date: 2004-03-06 06:50 am (UTC)
pm215: (Default)
From: [personal profile] pm215

I notice that you're including sys/poll.h; POSIX says it's poll.h (and indeed intent doesn't provide sys/poll.h). Also, you don't return any value from main.

intent doesn't support socketpair() (we do support actual TCP/IP sockets, just not UNIX domain sockets); we return POLLIN for both regular file and pipe.

In related news, I see that POSIX's select() says that the 3rd fdset should include both 'exceptional conditions' and 'pending errors', whatever they are. (I think that pending error should result in the fd being marked as both readable and writeable, but what do I know?)

(no subject)

Date: 2004-03-06 06:53 am (UTC)
ext_8103: (Default)
From: [identity profile] ewx.livejournal.com
Pending error probably means getsockopt with SO_ERROR.

(no subject)

Date: 2004-03-06 06:56 am (UTC)
pm215: (Default)
From: [personal profile] pm215

But that's a socket-specific thing, and the poll() specification explicitly says that 'pending error' is a generic condition and not file-type-specific.

November 2025

S M T W T F S
      1
2345678
91011121314 15
1617 181920 2122
23242526272829
30      

Most Popular Tags

Expand Cut Tags

No cut tags